11 #ifndef BIOPROCESSING_GRAPH_VALUEVERTEX 12 #define BIOPROCESSING_GRAPH_VALUEVERTEX 17 #include <cartobase/smart/rcptr.h> 84 typedef Pointed::Type
Type;
106 static Vertex
none() {
return This( (Pointed*)0 ); }
111 const Type &
value()
const {
return ((Pointed*)(this->
get()))->value(); }
113 Type
value() {
return ((Pointed*)(this->
get()))->value(); }
118 #endif // BIOPROCESSING_GRAPH_VALUEVERTEX ValueVertexRef< T > Ref
Reference type.
ValueVertexRef(Pointed *v)
Constructor from a pointer (the pointer should either be created by new, or be already referenced by ...
ValueVertexRef(const Base &other)
Copy constructor (it copies the reference, it does not duplicate the pointed object) ...
ValueVertexRef()
Default constructor (builds a non pointer)
ValueVertexRef< T > This
Type of *this.
BaseVertexRef Base
Base class (rc_ptr)
ValueVertexRef(const Type &val)
Constructor from a value (creates a new instance)
ValueVertexRef< T > Vertex
Useable type (RC)
Pointed::Vertex Vertex
Useable type (RC)
const Type & value() const
Const accessor to th value.
virtual ~ValueVertexRef()
Pointed::Type Type
Value type.
Type value()
Non const accessor to the value.
Type value()
Non const accessor to th value.
Reference counting pointer to a ValueVertex.
Reference counting pointer to a BaseVertex.
ValueVertex< T > This
Type of *this.
static Vertex none()
Empty pointer factory.
ValueVertex(const Type &val)
Constructor from a value.
BaseVertex Base
Base class.
ValueVertex< T > Pointed
Pointed object type.
const Type & value() const
Const accessor to th value.