VGServer::ChangeFrame Class Reference
[Public Application Interface]

ChangeFrame contains a list of changes made to the graph within one time slot. More...

#include <ChangeTimeline.h>

List of all members.

Public Types

enum  changeid_t {
  CHG_NONE = 0, CHG_ADDVERTEX, CHG_SETVERTEX, CHG_DELVERTEX,
  CHG_ADDEDGE, CHG_SETEDGE, CHG_DELEDGE
}
 change operation ids used in animation list More...
 CHG_ADDEDGE
 CHG_ADDVERTEX
 CHG_DELEDGE
 CHG_DELVERTEX
 CHG_NONE = 0
 CHG_SETEDGE
 CHG_SETVERTEX

Public Member Functions

void addEdge (vertexid_t src, vertexid_t tgt, const AttributeEdgeTinyBlob &b)
 adds a new edge from source to target vertex.
void addVertex (vertexid_t id, const AttributeVertexTinyBlob &b)
 adds a new vertex id, without setting attributes.
void delEdge (vertexid_t src, vertexid_t tgt)
 removes an edge from the graph.
void delVertex (vertexid_t id)
 deletes a vertex from the graph.
void setEdgeAttr (vertexid_t src, vertexid_t tgt, const AttributeEdgeTinyBlob &b)
 sets an attribute on the given edge
void setVertexAttr (vertexid_t id, const AttributeVertexTinyBlob &b)
 sets an attribute on the given vertex

Protected Types

typedef std::deque< ChangeEntrychgoplist_t
 sequence container used to save the change blobs

Protected Attributes

chgoplist_t chgoplist

Friends

class GraphContainer
 direct access to chgoplist in getArea

Classes

struct  ChangeEntry
 struct used as entries in the sequence of changes More...


Detailed Description

ChangeFrame contains a list of changes made to the graph within one time slot.

It is currently a simple list, recording the actions in the same order as issued.

Definition at line 19 of file ChangeTimeline.h.


Member Typedef Documentation

typedef std::deque<ChangeEntry> VGServer::ChangeFrame::chgoplist_t [protected]

sequence container used to save the change blobs

Definition at line 60 of file ChangeTimeline.h.


Member Enumeration Documentation

enum VGServer::ChangeFrame::changeid_t

change operation ids used in animation list

Enumerator:
CHG_NONE 
CHG_ADDVERTEX 
CHG_SETVERTEX 
CHG_DELVERTEX 
CHG_ADDEDGE 
CHG_SETEDGE 
CHG_DELEDGE 

Definition at line 23 of file ChangeTimeline.h.


Member Function Documentation

void VGServer::ChangeFrame::addEdge ( vertexid_t  src,
vertexid_t  tgt,
const AttributeEdgeTinyBlob b 
)

adds a new edge from source to target vertex.

Definition at line 132 of file ChangeTimeline.cc.

References CHG_ADDEDGE, and chgoplist.

void VGServer::ChangeFrame::addVertex ( vertexid_t  id,
const AttributeVertexTinyBlob b 
)

adds a new vertex id, without setting attributes.

Definition at line 117 of file ChangeTimeline.cc.

References CHG_ADDVERTEX, and chgoplist.

void VGServer::ChangeFrame::delEdge ( vertexid_t  src,
vertexid_t  tgt 
)

removes an edge from the graph.

Definition at line 142 of file ChangeTimeline.cc.

References CHG_DELEDGE, and chgoplist.

void VGServer::ChangeFrame::delVertex ( vertexid_t  id  ) 

deletes a vertex from the graph.

Definition at line 127 of file ChangeTimeline.cc.

References CHG_DELVERTEX, and chgoplist.

void VGServer::ChangeFrame::setEdgeAttr ( vertexid_t  src,
vertexid_t  tgt,
const AttributeEdgeTinyBlob b 
)

sets an attribute on the given edge

Definition at line 137 of file ChangeTimeline.cc.

References CHG_SETEDGE, and chgoplist.

void VGServer::ChangeFrame::setVertexAttr ( vertexid_t  id,
const AttributeVertexTinyBlob b 
)

sets an attribute on the given vertex

Definition at line 122 of file ChangeTimeline.cc.

References CHG_SETVERTEX, and chgoplist.


Friends And Related Function Documentation

friend class GraphContainer [friend]

direct access to chgoplist in getArea

Definition at line 65 of file ChangeTimeline.h.


Member Data Documentation

chgoplist_t VGServer::ChangeFrame::chgoplist [protected]

Definition at line 62 of file ChangeTimeline.h.

Referenced by addEdge(), addVertex(), delEdge(), delVertex(), setEdgeAttr(), and 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