Class GraphUnitCell
alps::GraphUnitCell
Synopsis
class GraphUnitCell {
public:
typedef std::vector< int > offset_type;
typedef ::alps::coordinate_type coordinate_type;
typedef boost::adjacency_list< boost::vecS, boost::vecS, boost::directedS, boost::property< coordinate_t, coordinate_type, boost::property< vertex_type_t, type_type > >, boost::property< target_offset_t, offset_type, boost::property< source_offset_t, offset_type, boost::property< edge_type_t, type_type, boost::property< bond_vector_t, coordinate_type > > > > > graph_type;
GraphUnitCell();
GraphUnitCell(const EmptyUnitCell &);
GraphUnitCell(const XMLTag &, std::istream &);
GraphUnitCell(const std::string &, std::size_t);
const GraphUnitCell & operator=(const EmptyUnitCell &);
void write_xml(oxstream &) const;
graph_type & graph();
const graph_type & graph() const;
std::size_t dimension() const;
const std::string & name() const;
std::size_t add_vertex(int, const coordinate_type &);
std::size_t add_edge(int, uint32_t, const offset_type &, uint32_t,
const offset_type &);
void update_bond_vectors();
};
Description
GraphUnitCell
public
construct/copy/destruct
GraphUnitCell();
GraphUnitCell(const EmptyUnitCell & e);
GraphUnitCell(const XMLTag &, std::istream &);
GraphUnitCell(const std::string & name, std::size_t dim);
const GraphUnitCell & operator=(const EmptyUnitCell & e);
GraphUnitCell
public member functions
void write_xml(oxstream &) const;
graph_type & graph();
const graph_type & graph() const;
std::size_t dimension() const;
const std::string & name() const;
std::size_t add_vertex(int type, const coordinate_type & coord);
std::size_t add_edge(int type, uint32_t si, const offset_type & so,
uint32_t ti, const offset_type & to);
GraphUnitCell
private member functions
void update_bond_vectors();