VGServer::GraphProperties Class Reference
[Public Application Interface]

GraphProperties is a conglomerate of important unchangeable properties of the graph. More...

#include <GraphProperties.h>

List of all members.

Public Member Functions

void appendBinaryFormat (class ByteOutBuffer &bob) const
 concatenate the binary representation of the graph properties to the buffer
void calcAttributeLookups ()
 calculate the lookup-indices and default bit field indices in the attribute lists.
void clear ()
 clears the current config
bool isDirected () const
 checks if the graph is directed
bool parseConfigString (const std::string &s)
 run the GraphPropertiesParser on the given input string which is a config file's contents.

Public Attributes

bool directed
 graph is directed. undirected graphs can be saved more compactly.
AttributePropertiesList edgeattr
 attribute types of the edges
AttributePropertiesList vertexattr
 attribute types of the vertices


Detailed Description

GraphProperties is a conglomerate of important unchangeable properties of the graph.

It contains if the graph is directed of undirected, the max id of the vertices, the attribute type properties of vertices and edges. This class is loaded once from the application and subsequent changes to it will clear all graph data.

Definition at line 17 of file GraphProperties.h.


Member Function Documentation

void VGServer::GraphProperties::appendBinaryFormat ( class ByteOutBuffer bob  )  const

concatenate the binary representation of the graph properties to the buffer

Definition at line 147 of file AttributeProperties.cc.

References VGServer::AttributePropertiesList::appendBinaryFormat(), directed, edgeattr, and vertexattr.

Referenced by VGServer::GraphContainer::getGraphProperties(), VGServer::GraphData::loadSnapshot(), and VGServer::GraphData::saveSnapshot().

void VGServer::GraphProperties::calcAttributeLookups (  )  [inline]

calculate the lookup-indices and default bit field indices in the attribute lists.

Definition at line 47 of file GraphProperties.h.

References VGServer::AttributePropertiesList::calcAttributeLookups(), edgeattr, and vertexattr.

Referenced by VGServer::GraphData::GraphData().

void VGServer::GraphProperties::clear (  )  [inline]

clears the current config

Definition at line 33 of file GraphProperties.h.

References VGServer::AttributePropertiesList::clear(), directed, edgeattr, and vertexattr.

bool VGServer::GraphProperties::isDirected (  )  const [inline]

checks if the graph is directed

Definition at line 42 of file GraphProperties.h.

References directed.

bool VGServer::GraphProperties::parseConfigString ( const std::string &  s  ) 

run the GraphPropertiesParser on the given input string which is a config file's contents.

Definition at line 201 of file GraphPropertiesParser.cc.


Member Data Documentation

bool VGServer::GraphProperties::directed

graph is directed. undirected graphs can be saved more compactly.

Definition at line 22 of file GraphProperties.h.

Referenced by appendBinaryFormat(), clear(), and isDirected().

class AttributePropertiesList VGServer::GraphProperties::edgeattr

attribute types of the edges

Definition at line 28 of file GraphProperties.h.

Referenced by VGServer::GraphLoader::addEdge(), VGServer::Changelist::addEdge(), appendBinaryFormat(), VGServer::GraphData::applyChangelist(), VGServer::AttributeParser::build_attrlist(), calcAttributeLookups(), clear(), VGServer::EdgeRef::getAttr(), VGServer::GraphLoader::setEdgeAttr(), and VGServer::Changelist::setEdgeAttr().

class AttributePropertiesList VGServer::GraphProperties::vertexattr

attribute types of the vertices

Definition at line 25 of file GraphProperties.h.

Referenced by VGServer::GraphLoader::addVertex(), VGServer::Changelist::addVertex(), appendBinaryFormat(), VGServer::GraphData::applyChangelist(), VGServer::AttributeParser::build_attrlist(), calcAttributeLookups(), clear(), VGServer::VertexRef::getAttr(), VGServer::GraphLoader::setVertexAttr(), and VGServer::Changelist::setVertexAttr().


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