11 #ifndef BIOPROCESSING_GRAPH_BASEVERTEX
12 #define BIOPROCESSING_GRAPH_BASEVERTEX
15 #include <cartobase/smart/rcptr.h>
60 return this == &other;
64 return this != &other;
68 return this <= &other;
72 return this >= &other;
109 typedef carto::rc_ptr<BaseVertex>
Base;
141 if( !(*
this) && !other )
143 else if( !(*
this) || !other )
146 return *(this->get()) == *(other.get());
150 return !( *
this == other );
157 return this > &other;
164 return this < &other;
168 return ( *
this == other ) || ( *
this > other );
172 return ( *
this == other ) || ( *
this < other );
std::ostream & operator<<(std::ostream &os, const bio::BaseVertex &v)
Print of a BaseVertex.
Reference counting pointer to a BaseVertex.
BaseVertexRef This
Type of *this.
static Vertex none()
Empty pointer factory.
BaseVertexRef()
Default constructor.
virtual bool operator>=(const This &other) const
virtual bool operator!=(const This &other) const
BaseVertexRef(Pointed *v)
Constructor from a pointer (the pointer should either be created by new, or be already referenced by ...
virtual bool operator<(const This &other) const
virtual bool operator==(const This &other) const
There is equality if both pointers are none, or if both pointed objects are equal.
Pointed::Vertex Vertex
Useable type.
virtual bool operator>(const This &other) const
carto::rc_ptr< BaseVertex > Base
Base class type.
BaseVertex Pointed
Pointed object type.
virtual bool operator<=(const This &other) const
BaseVertexRef(const Base &other)
Copy constructor (copies the reference, it does not duplicate the pointed object)
BaseVertex This
Type of *this.
virtual bool operator==(const This &other) const
BaseVertex()
Default constructor.
virtual bool operator>=(const This &other) const
virtual bool operator>(const This &other) const
BaseVertexRef Ref
RC pointer to the type.
BaseVertexRef Vertex
Useable type (its RC pointer)
virtual bool operator<(const This &other) const
virtual bool operator<=(const This &other) const
virtual bool operator!=(const This &other) const