#include <graphFace.h>
Public Types | |
Type definitions | |
typedef std::list< Vertex * >::iterator | VertexIterator |
typedef std::list< Vertex * >::const_iterator | ConstVertexIterator |
typedef std::list< Edge * >::iterator | EdgeIterator |
typedef std::list< Edge * >::const_iterator | ConstEdgeIterator |
Public Member Functions | |
Constructors and Destructors | |
GraphFace () throw () | |
Default constructor. | |
GraphFace (const GraphFace< Vertex, Edge, Face > &face, bool deep=false) throw () | |
Copy constructor. | |
virtual | ~GraphFace () throw () |
Destructor. | |
Assignments | |
void | set (const GraphFace< Vertex, Edge, Face > &face, bool deep=false) throw () |
Assign from another GraphFace. | |
GraphFace< Vertex, Edge, Face > & | operator= (const GraphFace< Vertex, Edge, Face > &face) throw () |
Assign from another GraphFace. | |
Accessors | |
void | insert (Vertex *vertex) throw () |
Insert a new vertex to the GraphFace. | |
void | insert (Edge *edge) throw () |
Insert a new edge to the GraphFace. | |
void | remove (Vertex *vertex) throw () |
Remove a vertex from the GraphFace. | |
void | remove (Edge *edge) throw () |
Remove an edge from the GraphFace. | |
Position | numberOfVertices () const throw () |
Return the number of vertices of the GraphFace. | |
Position | numberOfEdges () const throw () |
Return the number of edges of the GraphFace. | |
void | setIndex (Index index) throw () |
Set the index of the GraphFace. | |
Index | getIndex () const throw () |
Return the index of the GraphFace. | |
bool | getEdges (const Vertex *vertex, Edge *&edge1, Edge *&edge2) const throw () |
Find the two edges of the GraphFace that belong to the given vertex. | |
bool | getEdge (const Vertex *vertex1, const Vertex *vertex2, Edge *&edge) const throw () |
Find the edge of the GraphFace that belongs to the two given vertices. | |
Edge * | getSimilarEdge (const Edge *edge) const throw () |
Find the edge of the GraphFace that is similar to the given edge. | |
bool | substitute (const Vertex *old_vertex, Vertex *new_vertex) throw () |
Substitute a vertex by an other one. | |
bool | substitute (const Edge *old_edge, Edge *new_edge) throw () |
Substitute an edge by an other one. | |
Predicates | |
virtual bool | operator== (const Face &face) const throw () |
Equality operator. | |
virtual bool | operator!= (const Face &face) const throw () |
Inequality operator. | |
virtual bool | operator *= (const Face &face) const throw () |
Similarity operator. | |
Vertex * | has (Vertex *vertex) const throw () |
Test whether a vertex is meber of the face. | |
Edge * | has (Edge *edge) const throw () |
Test whether an edge is meber of the face. | |
External Iterators | |
VertexIterator | beginVertex () throw () |
ConstVertexIterator | beginVertex () const throw () |
VertexIterator | endVertex () throw () |
ConstVertexIterator | endVertex () const throw () |
EdgeIterator | beginEdge () throw () |
ConstEdgeIterator | beginEdge () const throw () |
EdgeIterator | endEdge () throw () |
ConstEdgeIterator | endEdge () const throw () |
Protected Attributes | |
std::list< Vertex * > | vertex_ |
std::list< Edge * > | edge_ |
Index | index_ |
Friends | |
Class friends | |
| |
class | GraphVertex<Vertex,Edge,Face> |
class | GraphEdge<Vertex,Edge,Face> |
|
Default constructor. This method creates a new GraphFace object. |
|
Copy constructor. Create a new GraphFace object from another. |
|
Destructor. Destructs the GraphFace object. |
|
Find the edge of the GraphFace that belongs to the two given vertices.
|
|
Find the two edges of the GraphFace that belong to the given vertex.
|
|
Return the index of the GraphFace.
|
|
Find the edge of the GraphFace that is similar to the given edge.
|
|
Test whether an edge is meber of the face.
|
|
Test whether a vertex is meber of the face.
|
|
Insert a new edge to the GraphFace.
|
|
Insert a new vertex to the GraphFace.
|
|
Return the number of edges of the GraphFace.
|
|
Return the number of vertices of the GraphFace.
|
|
Similarity operator.
|
|
Inequality operator.
|
|
Assign from another GraphFace. The GraphFace object is linked to the neighbours of the GraphFace object to assign from.
|
|
Equality operator.
|
|
Remove an edge from the GraphFace.
|
|
Remove a vertex from the GraphFace.
|
|
Assign from another GraphFace.
|
|
Set the index of the GraphFace.
|
|
Substitute an edge by an other one.
|
|
Substitute a vertex by an other one.
|