|
MorphoGraphX
2.0-1-227
|
#include <Edge.hpp>
Public Types | |
| typedef edge_identity_t | identity_t |
| Type of the identity of a vertex. More... | |
| typedef EdgeContent | content_t |
| Type of the content of the edge. More... | |
| typedef EdgeContent * | pointer |
| Type of the equivalent pointer. More... | |
Public Member Functions | |
| Edge () | |
| Creates a null edge. More... | |
| Edge (identity_t src, identity_t tgt, EdgeContent *content) | |
Creates an edge from src to tgt with a given content. More... | |
| Edge (const Edge ©) | |
| Get a new weak reference on the copy. More... | |
| EdgeContent * | operator-> () const |
| Data access. More... | |
| EdgeContent & | operator* () const |
| Data access. More... | |
| template<typename R > | |
| R & | operator->* (R EdgeContent::*ptr) |
| Access to the data via pointer to member. More... | |
| template<typename R > | |
| const R & | operator->* (R EdgeContent::*ptr) const |
| Constant access to the data via pointer to member. More... | |
| Edge & | operator= (const Edge &other) |
| Change the reference help by the object. More... | |
| bool | operator== (const Edge &other) const |
| Comparison operators. More... | |
| bool | operator!= (const Edge &other) const |
| Comparison operators. More... | |
| bool | operator> (const Edge &other) const |
| Comparison operators. More... | |
| bool | operator< (const Edge &other) const |
| Comparison operators. More... | |
| bool | isNull () const |
| Test if an edge is null. More... | |
| operator bool () const | |
Convert an edge to true if it is not null. More... | |
| identity_t | source () const |
| Returns the identifier of the source of the edge. More... | |
| identity_t | target () const |
| Returns the identifier of the target of the edge. More... | |
| void | clear () |
| Reset an edge weak pointer to null. More... | |
Static Public Attributes | |
| static Edge | null |
Protected Attributes | |
| identity_t | _source |
| Identity of the source of the edge. More... | |
| identity_t | _target |
| Identity of the target of the edge. More... | |
| EdgeContent * | _content |
| Content of the edge. More... | |
Edge of a vv graph.
The edges represent weak references on the edges data. The data are owned by the graph. You must never try to access an edge that was deleted from its graph.
| typedef edge_identity_t mgx::Edge< EdgeContent >::identity_t |
| mgx::Edge< EdgeContent >::Edge | ( | identity_t | src, |
| identity_t | tgt, | ||
| EdgeContent * | content | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the identifier of the source of the edge.
|
inline |
Returns the identifier of the target of the edge.
|
protected |
|
protected |
|
protected |
1.8.17