bioprocessing
5.1.2
|
Reference counting pointer to a BaseEdge. More...
#include <bioprocessing/graph/baseedge.h>
Public Types | |
typedef Pointed::Vertex | Vertex |
Usable vertex type. More... | |
typedef Pointed::Edge | Edge |
Usable edge type. More... | |
typedef Pointed::Edge | Ref |
Reference type. More... | |
Public Member Functions | |
BaseEdgeRef (Pointed *e) | |
Constructor from a pointer (the pointer should either be created by new , or be already referenced by a rc_ptr. More... | |
BaseEdgeRef (const Base &other) | |
Copy constructor (it copies the reference, it does not duplicate the pointed object) More... | |
virtual | ~BaseEdgeRef () |
virtual Vertex | x () |
access the first vertex (arbitrary choice for non oriented edges) More... | |
virtual const Vertex | x () const |
access the first vertex (arbitrary choice for non oriented edges) More... | |
virtual Vertex | y () |
access the second vertex (arbitrary choice for non oriented edges) More... | |
virtual const Vertex | y () const |
access the second vertex (arbitrary choice for non oriented edges) More... | |
virtual Vertex | other (const Vertex &v) |
access the vertex that is not v More... | |
virtual 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 pointers are none, or if both pointed objects are equal. More... | |
virtual bool | operator!= (const This &other) const |
virtual bool | operator> (const This &other) const |
virtual bool | operator< (const This &other) const |
virtual bool | operator>= (const This &other) const |
virtual bool | operator<= (const This &other) const |
Static Public Member Functions | |
static Edge | none () |
Empty pointer factory. More... | |
Protected Types | |
typedef BaseEdgeRef< V > | This |
Type of *this. More... | |
typedef carto::rc_ptr< BaseEdge< V > > | Base |
Base class. More... | |
typedef BaseEdge< V > | Pointed |
Pointed object type. More... | |
Protected Member Functions | |
BaseEdgeRef () | |
Default constructor (creates an empty pointer) More... | |
Friends | |
class | BaseEdge< V > |
Reference counting pointer to a BaseEdge.
These objects also have full access to BaseEdge methods (without having to dereference the pointer)
Definition at line 101 of file baseedge.h.
|
protected |
Base class.
Definition at line 106 of file baseedge.h.
typedef Pointed::Edge bio::BaseEdgeRef< V >::Edge |
Usable edge type.
Definition at line 110 of file baseedge.h.
|
protected |
Pointed object type.
Definition at line 107 of file baseedge.h.
typedef Pointed::Edge bio::BaseEdgeRef< V >::Ref |
Reference type.
Definition at line 111 of file baseedge.h.
|
protected |
Type of *this.
Definition at line 105 of file baseedge.h.
typedef Pointed::Vertex bio::BaseEdgeRef< V >::Vertex |
Usable vertex type.
Definition at line 109 of file baseedge.h.
|
inlineprotected |
Default constructor (creates an empty pointer)
Definition at line 116 of file baseedge.h.
|
inline |
Constructor from a pointer (the pointer should either be created by new
, or be already referenced by a rc_ptr.
See rc_ptr for more details on reference counting pointers)
Definition at line 121 of file baseedge.h.
|
inline |
Copy constructor (it copies the reference, it does not duplicate the pointed object)
Definition at line 124 of file baseedge.h.
|
inlinevirtual |
Definition at line 125 of file baseedge.h.
|
inlinestatic |
|
inlinevirtual |
Reimplemented in bio::SetEdgeRef< V >.
Definition at line 161 of file baseedge.h.
References bio::BaseEdgeRef< V >::other().
|
inlinevirtual |
Reimplemented in bio::SetEdgeRef< V >.
Definition at line 172 of file baseedge.h.
References bio::BaseEdgeRef< V >::other().
|
inlinevirtual |
Reimplemented in bio::SetEdgeRef< V >.
Definition at line 183 of file baseedge.h.
|
inlinevirtual |
There is equality if both pointers are none, or if both pointed objects are equal.
Reimplemented in bio::SetEdgeRef< V >.
Definition at line 152 of file baseedge.h.
References bio::BaseEdgeRef< V >::other().
|
inlinevirtual |
Reimplemented in bio::SetEdgeRef< V >.
Definition at line 165 of file baseedge.h.
References bio::BaseEdgeRef< V >::other().
|
inlinevirtual |
Reimplemented in bio::SetEdgeRef< V >.
Definition at line 179 of file baseedge.h.
References bio::BaseEdgeRef< V >::other().
|
inlinevirtual |
access the vertex that is not v
Definition at line 144 of file baseedge.h.
Referenced by bio::BaseEdgeRef< V >::operator!=(), bio::SetEdgeRef< V >::operator!=(), bio::BaseEdgeRef< V >::operator<(), bio::SetEdgeRef< V >::operator<(), bio::SetEdgeRef< V >::operator<=(), bio::BaseEdgeRef< V >::operator==(), bio::SetEdgeRef< V >::operator==(), bio::BaseEdgeRef< V >::operator>(), bio::SetEdgeRef< V >::operator>(), bio::BaseEdgeRef< V >::operator>=(), and bio::SetEdgeRef< V >::operator>=().
|
inlinevirtual |
access the vertex that is not v
Definition at line 146 of file baseedge.h.
|
inlinevirtual |
access the first vertex (arbitrary choice for non oriented edges)
Definition at line 136 of file baseedge.h.
|
inlinevirtual |
access the first vertex (arbitrary choice for non oriented edges)
Definition at line 138 of file baseedge.h.
|
inlinevirtual |
access the second vertex (arbitrary choice for non oriented edges)
Definition at line 140 of file baseedge.h.
|
inlinevirtual |
access the second vertex (arbitrary choice for non oriented edges)
Definition at line 142 of file baseedge.h.
|
friend |
Definition at line 183 of file baseedge.h.