MorphoGraphX
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
mgx::graph::WeakVertex< VertexContent, Alloc > Class Template Reference
+ Inheritance diagram for mgx::graph::WeakVertex< VertexContent, Alloc >:

Public Types

typedef vertex_identity_t identity_t
 Type of the identifier of the vertex.
 
typedef VertexContent content_t
 Type of the content of the vertex.
 
typedef Vertex< VertexContent,
Alloc > 
strong_ref
 Strong reference corresponding to the weak one.
 
typedef VertexContent * pointer
 Type of the equivalent pointer.
 
- Public Types inherited from mgx::graph::Vertex< VertexContent, Alloc >
typedef vertex_identity_t identity_t
 Type of the identifier of the vertex.
 
typedef VertexContent content_t
 Type of the content of the vertex.
 
typedef WeakVertex
< VertexContent, Alloc > 
weak_ref_t
 
typedef VertexContent * pointer
 Type of the equivalent pointer.
 

Public Member Functions

 WeakVertex ()
 Construct an empty weak vertex. More...
 
 WeakVertex (const strong_ref &v)
 Construct a weak reference from a strong one.
 
 WeakVertex (const WeakVertex &copy)
 Copy constructor.
 
 WeakVertex (const identity_t &id)
 Construct a weak reference from an id.
 
WeakVertexoperator= (const WeakVertex &other)
 Set the content of the weak reference.
 
WeakVertexoperator= (const identity_t &id)
 
WeakVertexoperator= (const strong_ref &other)
 
bool isNull () const
 
- Public Member Functions inherited from mgx::graph::Vertex< VertexContent, Alloc >
 Vertex ()
 Creates a new vertex with a new content. More...
 
 Vertex (identity_t id)
 Creates a reference on the vertex of identifier id. More...
 
 Vertex (const Vertex &copy)
 Copy a vertex. More...
 
 Vertex (const weak_ref_t &w)
 Construct a strong reference from a weak one.
 
 ~Vertex ()
 Desctructor.
 
VertexContent * operator-> () const
 Access to the data. More...
 
VertexContent & operator* () const
 Access to the data. More...
 
Vertexoperator= (const Vertex &other)
 Change the vertex held by the current object. More...
 
Vertexoperator= (const identity_t &id)
 
Vertexoperator= (const weak_ref_t &other)
 
Vertexoperator= (const VertexContent *value)
 
bool operator== (const Vertex &other) const
 Comparison operators. More...
 
bool operator!= (const Vertex &other) const
 Comparison operators. More...
 
bool operator> (const Vertex &other) const
 Comparison operators. More...
 
bool operator< (const Vertex &other) const
 Comparison operators. More...
 
bool operator>= (const Vertex &other) const
 Comparison operators. More...
 
bool operator<= (const Vertex &other) const
 Comparison operators. More...
 
bool isNull () const
 Test if a vertex is a null vertex.
 
identity_t id () const
 Return the identifier of a vertex.
 
size_t num () const
 Return a number unique to each vertex, globally.
 
 operator bool () const
 Convert a vertex to true if it is not null.
 
bool isWeakRef () const
 Return true if the current object hold a weak reference on a vertex.
 
weak_ref_t weakRef () const
 Construct a weak reference on the current vertex.
 
unsigned int count () const
 Serialization method. More...
 

Additional Inherited Members

- Static Public Attributes inherited from mgx::graph::Vertex< VertexContent, Alloc >
static Vertex null
 Null vertex. More...
 
- Protected Member Functions inherited from mgx::graph::Vertex< VertexContent, Alloc >
void release ()
 Release the current pointer.
 
void acquire ()
 Acquire the current pointer.
 
- Protected Attributes inherited from mgx::graph::Vertex< VertexContent, Alloc >
CountedContentcontent
 Content of the vertex. More...
 

Constructor & Destructor Documentation

template<typename VertexContent, typename Alloc>
mgx::graph::WeakVertex< VertexContent, Alloc >::WeakVertex ( )
inline

Construct an empty weak vertex.

At the difference of normal vertices, constructing a weak vertex creates a null one.


The documentation for this class was generated from the following file: