|
bioprocessing
5.0.5
|
Edges: set implementation of non-oriented edges. More...
#include <bioprocessing/graph/setedge.h>


Public Types | |
| typedef V | Vertex |
| Usable vertex type. More... | |
| typedef SetEdgeRef< V > | Edge |
| Usable edge type. More... | |
| typedef SetEdgeRef< V > | Ref |
| Reference type. More... | |
| typedef VertexSet::const_iterator | const_iterator |
| typedef VertexSet::iterator | iterator |
Public Types inherited from bio::BaseEdge< V > | |
| typedef V | Vertex |
| Vertex type. More... | |
| typedef BaseEdgeRef< V > | Edge |
| Usable Edge type (RC) More... | |
| typedef BaseEdgeRef< V > | Ref |
| Reference type. More... | |
Public Member Functions | |
| SetEdge (const Vertex &x, const Vertex &y) | |
| Constructor from a pair of vertices. More... | |
| SetEdge (const This &other) | |
| Copy constructor. More... | |
| SetEdge (const Base &other) | |
| Copy constructor from base class. More... | |
| virtual | ~SetEdge () |
| const_iterator | begin () const |
| const_iterator | end () const |
| iterator | begin () |
| iterator | end () |
| Vertex | x () |
| access the first vertex (x is the smaller vertex) More... | |
| const Vertex | x () const |
| access the first vertex (x is the smaller vertex) More... | |
| Vertex | y () |
| access the second vertex (y is the bigger vertex) More... | |
| const Vertex | y () const |
| access the second vertex (y is the bigger vertex) More... | |
| Vertex | other (const Vertex &v) |
| access the vertex that is not v More... | |
| const Vertex | other (const Vertex &v) const |
| access the vertex that is not v More... | |
| virtual bool | operator== (const This &other) const |
| there is equality if both vertices are equal More... | |
| virtual bool | operator!= (const This &other) const |
| there is equality if both vertices are equal More... | |
| virtual bool | operator> (const This &other) const |
| For inequality we first look at x, and if they are equal, we look at y. More... | |
| virtual bool | operator< (const This &other) const |
| For inequality we first look at x, and if they are equal, we look at y. More... | |
| virtual bool | operator>= (const This &other) const |
| For inequality we first look at x, and if they are equal, we look at y. More... | |
| virtual bool | operator<= (const This &other) const |
| For inequality we first look at x, and if they are equal, we look at y. More... | |
Public Member Functions inherited from bio::BaseEdge< V > | |
| virtual | ~BaseEdge () |
Public Attributes | |
| VertexSet | _set |
Protected Types | |
| typedef SetEdge< V > | This |
| Type of *this. More... | |
| typedef BaseEdge< V > | Base |
| Base class type. More... | |
| typedef std::set< V > | VertexSet |
| Vertex set type. More... | |
Protected Types inherited from bio::BaseEdge< V > | |
| typedef BaseEdge< V > | This |
| Type of *this. More... | |
Friends | |
| class | SetEdgeRef< V > |
Edges: set implementation of non-oriented edges.
This class implements an edge with a set of Vertex. By construction, this et is always of size 2.
It is templated on a vertex type (prefer a VertexRef type)
|
protected |
| typedef VertexSet::const_iterator bio::SetEdge< V >::const_iterator |
| typedef SetEdgeRef<V> bio::SetEdge< V >::Edge |
| typedef VertexSet::iterator bio::SetEdge< V >::iterator |
| typedef SetEdgeRef<V> bio::SetEdge< V >::Ref |
|
protected |
| typedef V bio::SetEdge< V >::Vertex |
|
protected |
|
inline |
Constructor from a pair of vertices.
Definition at line 52 of file setedge.h.
References bio::SetEdge< V >::_set.
|
inline |
|
inline |
Copy constructor from base class.
Definition at line 60 of file setedge.h.
References bio::SetEdge< V >::_set, bio::BaseEdge< V >::x(), and bio::BaseEdge< V >::y().
|
inlinevirtual |
|
inline |
Definition at line 71 of file setedge.h.
References bio::SetEdge< V >::_set.
Referenced by bio::SetEdge< V >::operator<(), bio::SetEdge< V >::operator>(), bio::SetEdge< V >::other(), bio::SetEdge< V >::x(), and bio::SetEdge< V >::y().
|
inline |
Definition at line 73 of file setedge.h.
References bio::SetEdge< V >::_set.
|
inline |
Definition at line 72 of file setedge.h.
References bio::SetEdge< V >::_set.
Referenced by bio::SetEdge< V >::operator<(), and bio::SetEdge< V >::operator>().
|
inline |
Definition at line 74 of file setedge.h.
References bio::SetEdge< V >::_set.
|
inlinevirtual |
there is equality if both vertices are equal
Reimplemented from bio::BaseEdge< V >.
Definition at line 107 of file setedge.h.
References bio::BaseEdge< V >::x(), bio::SetEdge< V >::x(), bio::BaseEdge< V >::y(), and bio::SetEdge< V >::y().
|
inlinevirtual |
For inequality we first look at x, and if they are equal, we look at y.
(alphabetical ordering)
Reimplemented from bio::BaseEdge< V >.
Definition at line 127 of file setedge.h.
References bio::SetEdge< V >::begin(), and bio::SetEdge< V >::end().
|
inlinevirtual |
For inequality we first look at x, and if they are equal, we look at y.
(alphabetical ordering)
Reimplemented from bio::BaseEdge< V >.
Definition at line 147 of file setedge.h.
References bio::SetEdge< V >::other().
|
inlinevirtual |
there is equality if both vertices are equal
Reimplemented from bio::BaseEdge< V >.
Definition at line 102 of file setedge.h.
References bio::BaseEdge< V >::x(), bio::SetEdge< V >::x(), bio::BaseEdge< V >::y(), and bio::SetEdge< V >::y().
|
inlinevirtual |
For inequality we first look at x, and if they are equal, we look at y.
(alphabetical ordering)
Reimplemented from bio::BaseEdge< V >.
Definition at line 113 of file setedge.h.
References bio::SetEdge< V >::begin(), and bio::SetEdge< V >::end().
|
inlinevirtual |
For inequality we first look at x, and if they are equal, we look at y.
(alphabetical ordering)
Reimplemented from bio::BaseEdge< V >.
Definition at line 141 of file setedge.h.
References bio::SetEdge< V >::other().
|
inlinevirtual |
access the vertex that is not v
Reimplemented from bio::BaseEdge< V >.
Definition at line 87 of file setedge.h.
References bio::SetEdge< V >::begin().
Referenced by bio::SetEdgeRef< V >::operator!=(), bio::SetEdge< V >::operator<=(), bio::SetEdgeRef< V >::operator<=(), bio::SetEdge< V >::operator>=(), and bio::SetEdgeRef< V >::operator>=().
|
inlinevirtual |
access the vertex that is not v
Reimplemented from bio::BaseEdge< V >.
Definition at line 93 of file setedge.h.
References bio::SetEdge< V >::begin().
|
inlinevirtual |
access the first vertex (x is the smaller vertex)
Reimplemented from bio::BaseEdge< V >.
Definition at line 79 of file setedge.h.
References bio::SetEdge< V >::begin().
Referenced by bio::SetEdge< V >::operator!=(), and bio::SetEdge< V >::operator==().
|
inlinevirtual |
access the first vertex (x is the smaller vertex)
Reimplemented from bio::BaseEdge< V >.
Definition at line 81 of file setedge.h.
References bio::SetEdge< V >::begin().
|
inlinevirtual |
access the second vertex (y is the bigger vertex)
Reimplemented from bio::BaseEdge< V >.
Definition at line 83 of file setedge.h.
References bio::SetEdge< V >::begin().
Referenced by bio::SetEdge< V >::operator!=(), and bio::SetEdge< V >::operator==().
|
inlinevirtual |
access the second vertex (y is the bigger vertex)
Reimplemented from bio::BaseEdge< V >.
Definition at line 85 of file setedge.h.
References bio::SetEdge< V >::begin().
|
friend |
| VertexSet bio::SetEdge< V >::_set |
Definition at line 153 of file setedge.h.
Referenced by bio::SetEdge< V >::begin(), bio::SetEdge< V >::end(), and bio::SetEdge< V >::SetEdge().