VGServer::VertexRef Class Reference

VertexRef is a read-only reference object holding indices into the GraphData structures. More...

#include <GraphContainer.h>

List of all members.

Public Member Functions

AnyType getAttr (unsigned int attrid) const
 returns the value of an attribute
vertexid_t getId () const
 returns the vertex id
VertexRefoperator= (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


Detailed Description

VertexRef is a read-only reference object holding indices into the GraphData structures.

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.


Constructor & Destructor Documentation

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]

copy constructor

Definition at line 355 of file GraphContainer.h.

References attrmodified.

VGServer::VertexRef::~VertexRef (  )  [inline]

destructor conditionally deletes the copied attribute blob chain

Definition at line 372 of file GraphContainer.h.


Member Function Documentation

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]

returns the vertex id

Definition at line 382 of file GraphContainer.h.

VertexRef& VGServer::VertexRef::operator= ( const VertexRef orig  )  [inline]

assignment operator

Definition at line 362 of file GraphContainer.h.

References attrmodified, graphdata, and vertexid.

bool VGServer::VertexRef::valid (  )  const [inline]

checks that the vertex is valid

Definition at line 378 of file GraphContainer.h.


Friends And Related Function Documentation

friend class GraphContainer [friend]

access to the protected constructors

Definition at line 351 of file GraphContainer.h.


The documentation for this class was generated from the following file:
Generated on Wed Sep 27 14:34:01 2006 for VGServer by  doxygen 1.4.7