Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <class OutEdgeList,
- class VertexList,
- class Directed,
- class VertexProperties,
- class EdgeProperties,
- class FaceProperties,
- class GraphProperties,
- class EdgeList
- >
- class HEDIGraph : public boost::adjacency_list< OutEdgeList, // out-edges stored in a std::list
- VertexList, // vertex set stored here
- Directed, // bidirectional graph.
- VertexProperties, // vertex properties
- EdgeProperties, // edge properties
- GraphProperties,
- EdgeList
- >
- {
- public:
- typedef unsigned int HEFace;
- typedef boost::adjacency_list< OutEdgeList,
- VertexList,
- Directed,
- VertexProperties,
- EdgeProperties,
- GraphProperties,
- EdgeList
- > BGLGraph;
- /// use base class operator[] for vertex and edge properties
- using BGLGraph::operator[];
- /// operator[] to access face properties
- FaceProperties& operator[](HEFace f) {
- return faces[f];
- }
- /// const operator[] for accessing face properties
- const FaceProperties& operator[](HEFace f) const {
- return faces[f];
- }
- //DATA
- std::vector<FaceProperties> faces;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement