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;
133 static Vertex
none() {
return This( (Pointed*)0 ); }
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 );
196 #endif // BIOPROCESSING_GRAPH_BASEVERTEX virtual bool operator>=(const This &other) const
BaseVertex Pointed
Pointed object type.
carto::rc_ptr< BaseVertex > Base
Base class type.
static Vertex none()
Empty pointer factory.
Pointed::Vertex Vertex
Useable type.
std::ostream & operator<<(std::ostream &os, const bio::BVclass &thing)
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
BaseVertexRef(const Base &other)
Copy constructor (copies the reference, it does not duplicate the pointed object) ...
BaseVertexRef()
Default constructor.
BaseVertexRef Ref
RC pointer to the type.
BaseVertexRef Vertex
Useable type (its RC pointer)
BaseVertex This
Type of *this.
virtual bool operator<=(const This &other) const
virtual bool operator!=(const This &other) const
virtual bool operator==(const This &other) const
Reference counting pointer to a BaseVertex.
BaseVertex()
Default constructor.
virtual bool operator<(const This &other) const
BaseVertexRef This
Type of *this.