VGServer::EdgeRef Class Reference

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

#include <GraphContainer.h>

List of all members.

Public Member Functions

 EdgeRef (const EdgeRef &orig)
 copy constructor
AnyType getAttr (unsigned int attrid) const
 returns the value of an attribute
vertexid_t getSource () const
 returns the source vertex id
vertexid_t getTarget () const
 returns the target vertex id
EdgeRefoperator= (const EdgeRef &orig)
 assignment operator
bool valid () const
 checks that the vertex is valid
 ~EdgeRef ()
 destructor conditionally deletes the copied attribute blob chain

Protected Member Functions

 EdgeRef (const class GraphData *gd, unsigned int _srcvid, unsigned int _edgeidx, const AttributeEdgeTinyBlob &am)
 protected constructor for GraphContaineer::getEdge() with modified attribute chain
 EdgeRef (const class GraphData *gd, unsigned int _srcvid, unsigned int _edgeidx)
 protected constructor for GraphContaineer::getEdge()

Friends

class GraphContainer
 access to the protected constructors


Detailed Description

EdgeRef 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 400 of file GraphContainer.h.


Constructor & Destructor Documentation

VGServer::EdgeRef::EdgeRef ( const class GraphData gd,
unsigned int  _srcvid,
unsigned int  _edgeidx 
) [inline, protected]

protected constructor for GraphContaineer::getEdge()

Definition at line 420 of file GraphContainer.h.

VGServer::EdgeRef::EdgeRef ( const class GraphData gd,
unsigned int  _srcvid,
unsigned int  _edgeidx,
const AttributeEdgeTinyBlob am 
) [inline, protected]

protected constructor for GraphContaineer::getEdge() with modified attribute chain

Definition at line 426 of file GraphContainer.h.

VGServer::EdgeRef::EdgeRef ( const EdgeRef orig  )  [inline]

copy constructor

Definition at line 436 of file GraphContainer.h.

References attrmodified.

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

destructor conditionally deletes the copied attribute blob chain

Definition at line 454 of file GraphContainer.h.


Member Function Documentation

AnyType VGServer::EdgeRef::getAttr ( unsigned int  attrid  )  const [inline]

returns the value of an attribute

Definition at line 476 of file GraphContainer.h.

References VGServer::GraphProperties::edgeattr, VGServer::GraphData::edges, VGServer::TpAttributeBlob< AllocPolicy >::getAttrChainValue(), and VGServer::GraphData::getProperties().

vertexid_t VGServer::EdgeRef::getSource (  )  const [inline]

returns the source vertex id

Definition at line 464 of file GraphContainer.h.

vertexid_t VGServer::EdgeRef::getTarget (  )  const [inline]

returns the target vertex id

Definition at line 468 of file GraphContainer.h.

References VGServer::GraphData::edges.

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

assignment operator

Definition at line 443 of file GraphContainer.h.

References attrmodified, edgeidx, graphdata, and srcvid.

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

checks that the vertex is valid

Definition at line 460 of file GraphContainer.h.


Friends And Related Function Documentation

friend class GraphContainer [friend]

access to the protected constructors

Definition at line 432 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