APGgraph Class Reference

#include <apg.h>

Collaboration diagram for APGgraph:

List of all members.

Public Member Functions

 APGgraph (const CId id=0)
 ~APGgraph ()
uint nrNodes () const
APGnodenewNode (const CId id)
void delNode (APGnode *n)
void delAllNodes ()
APGnodegetNode (CId id)
APGnodesIter nodesBegin ()
APGnodesIter nodesEnd ()
uint nrEdges () const
APGedgenewEdge (const CId id, APGnode *src, APGnode *dst)
void delEdge (APGedge *e)
void delAllEdges ()
APGedgegetEdge (CId id)
APGedgesIter edgesBegin ()
APGedgesIter edgesEnd ()

Private Attributes

CId id
APGnodes nodes
APGedges edges

Detailed Description

APGgraph Acyclic precedence graph.


Constructor & Destructor Documentation

APGgraph::APGgraph ( const CId  id = 0  ) 

APGgraph () Constructor

APGgraph::~APGgraph (  ) 

~APGgraph () Destructor

References edges, and nodes.


Member Function Documentation

void APGgraph::delAllEdges (  ) 

delAllEdges () Remove all edges from the graph

References edges.

void APGgraph::delAllNodes (  ) 

delAllNodes () Remove all nodes from the graph

References nodes.

void APGgraph::delEdge ( APGedge e  ) 

delEdge () Deletes edge e

References APGnode::delEdge(), edges, APGedge::getDst(), APGedge::getId(), and APGedge::getSrc().

Referenced by delNode().

Here is the call graph for this function:

void APGgraph::delNode ( APGnode n  ) 

delNode () Remove a node n, and thus all edges incident with n from the graph

References delEdge(), APGnode::delEdge(), APGnode::edgesBegin(), APGnode::edgesEnd(), APGnode::getId(), nodes, nodesBegin(), and nodesEnd().

Here is the call graph for this function:

APGedgesIter APGgraph::edgesBegin (  )  [inline]

References edges.

Referenced by getEdge().

APGedgesIter APGgraph::edgesEnd (  )  [inline]

Referenced by getEdge().

APGedge * APGgraph::getEdge ( CId  id  ) 

getEdge () Returns a pointer to the edge with the given id.

References edgesBegin(), edgesEnd(), and APGedge::getId().

Here is the call graph for this function:

APGnode * APGgraph::getNode ( CId  id  ) 

getNode () Returns a pointer to the node with the given id.

References APGnode::getId(), nodesBegin(), and nodesEnd().

Referenced by transformHSDFtoAPG().

Here is the call graph for this function:

APGedge * APGgraph::newEdge ( const CId  id,
APGnode src,
APGnode dst 
)

newEdge () Add a new edge to the graph.

References edges, and APGnode::newEdge().

Referenced by transformHSDFtoAPG().

Here is the call graph for this function:

APGnode * APGgraph::newNode ( const CId  id  ) 

newNode () Add a new node to the graph

References nodes.

Referenced by transformHSDFtoAPG().

APGnodesIter APGgraph::nodesBegin (  )  [inline]

References nodes.

Referenced by delNode(), and getNode().

APGnodesIter APGgraph::nodesEnd (  )  [inline]

References nodes.

Referenced by delNode(), and getNode().

uint APGgraph::nrEdges (  )  const [inline]

References edges.

uint APGgraph::nrNodes (  )  const [inline]

References nodes.


Member Data Documentation

CId APGgraph::id [private]

The documentation for this class was generated from the following files: