#include <GraphContainer.h>
Public Member Functions | |
AnyType | getAttr (unsigned int attrid) const |
returns the value of an attribute | |
vertexid_t | getId () const |
returns the vertex id | |
VertexRef & | operator= (const VertexRef &orig) |
assignment operator | |
bool | valid () const |
checks that the vertex is valid | |
VertexRef (const VertexRef &orig) | |
copy constructor | |
~VertexRef () | |
destructor conditionally deletes the copied attribute blob chain | |
Protected Member Functions | |
VertexRef (const class GraphData *gd, unsigned int vid, const AttributeVertexTinyBlob &am) | |
protected constructor for GraphContaineer::getVertex() with modified attribute chain | |
VertexRef (const class GraphData *gd, unsigned int vid) | |
protected constructor for GraphContaineer::getVertex() | |
Friends | |
class | GraphContainer |
access to the protected constructors |
It provides methods to extract attribute data. The references are valid as long as the queried GraphData object is valid.
Definition at line 324 of file GraphContainer.h.
VGServer::VertexRef::VertexRef | ( | const class GraphData * | gd, | |
unsigned int | vid | |||
) | [inline, protected] |
protected constructor for GraphContaineer::getVertex()
Definition at line 339 of file GraphContainer.h.
VGServer::VertexRef::VertexRef | ( | const class GraphData * | gd, | |
unsigned int | vid, | |||
const AttributeVertexTinyBlob & | am | |||
) | [inline, protected] |
protected constructor for GraphContaineer::getVertex() with modified attribute chain
Definition at line 345 of file GraphContainer.h.
VGServer::VertexRef::VertexRef | ( | const VertexRef & | orig | ) | [inline] |
VGServer::VertexRef::~VertexRef | ( | ) | [inline] |
destructor conditionally deletes the copied attribute blob chain
Definition at line 372 of file GraphContainer.h.
AnyType VGServer::VertexRef::getAttr | ( | unsigned int | attrid | ) | const [inline] |
returns the value of an attribute
Definition at line 386 of file GraphContainer.h.
References VGServer::TpAttributeBlob< AllocPolicy >::getAttrChainValue(), VGServer::GraphData::getProperties(), VGServer::GraphProperties::vertexattr, and VGServer::GraphData::vertices.
vertexid_t VGServer::VertexRef::getId | ( | ) | const [inline] |
assignment operator
Definition at line 362 of file GraphContainer.h.
References attrmodified, graphdata, and vertexid.
bool VGServer::VertexRef::valid | ( | ) | const [inline] |
friend class GraphContainer [friend] |