APGnode Class Reference

#include <apg.h>

Collaboration diagram for APGnode:

List of all members.

Public Member Functions

 APGnode (const CId id)
 ~APGnode ()
CId getId () const
int getWeight () const
void setWeight (int w)
void newEdge (APGedge *e)
void delEdge (APGedge *e)
void delAllEdges ()
APGnodesIter adjNodesBegin ()
APGnodesIter adjNodesEnd ()
APGedgesIter inEdgesBegin ()
APGedgesIter inEdgesEnd ()
APGedgesIter outEdgesBegin ()
APGedgesIter outEdgesEnd ()
APGedgesIter edgesBegin ()
APGedgesIter edgesEnd ()
APGnodeopposite (APGedge *e)
uint inDegree () const
uint outDegree () const
uint degree () const

Private Attributes

CId id
int weight
APGnodes adjNodes
APGedges inEdges
APGedges outEdges
APGedges edges

Detailed Description

APGnode Node in acyclic precedence graph.

Constructor & Destructor Documentation

APGnode::APGnode ( const CId  id  )  [inline]

References weight.

APGnode::~APGnode (  )  [inline]

Member Function Documentation

APGnodesIter APGnode::adjNodesBegin (  )  [inline]

References adjNodes.

APGnodesIter APGnode::adjNodesEnd (  )  [inline]

References adjNodes.

uint APGnode::degree (  )  const [inline]
void APGnode::delAllEdges (  ) 

delAllEdges () Disconnect all edges from the node

References edges, inEdges, and outEdges.

void APGnode::delEdge ( APGedge e  ) 

delEdge () Disconnect an edge from the node

References edges, APGedge::getId(), inEdges, and outEdges.

Referenced by APGgraph::delEdge(), and APGgraph::delNode().

Here is the call graph for this function:

APGedgesIter APGnode::edgesBegin (  )  [inline]

References edges.

Referenced by APGgraph::delNode().

APGedgesIter APGnode::edgesEnd (  )  [inline]

References edges.

Referenced by APGgraph::delNode().

CId APGnode::getId (  )  const [inline]

References id.

Referenced by APGgraph::delNode(), APGgraph::getNode(), and newEdge().

int APGnode::getWeight (  )  const [inline]

References weight.

uint APGnode::inDegree (  )  const [inline]

References inEdges.

APGedgesIter APGnode::inEdgesBegin (  )  [inline]

References inEdges.

APGedgesIter APGnode::inEdgesEnd (  )  [inline]

References inEdges.

void APGnode::newEdge ( APGedge e  ) 

newEdge () Connect a new edge to the node

References edges, getId(), APGedge::getSrc(), inEdges, and outEdges.

Referenced by APGgraph::newEdge().

Here is the call graph for this function:

APGnode * APGnode::opposite ( APGedge e  ) 

opposite () Returns the node on the opposite side of e

References edges, APGedge::getId(), and opposite().

Referenced by opposite().

Here is the call graph for this function:

uint APGnode::outDegree (  )  const [inline]

References outEdges.

APGedgesIter APGnode::outEdgesBegin (  )  [inline]

References outEdges.

APGedgesIter APGnode::outEdgesEnd (  )  [inline]

References outEdges.

void APGnode::setWeight ( int  w  )  [inline]

References weight.

Referenced by transformHSDFtoAPG().

Member Data Documentation

CId APGnode::id [private]

Referenced by getId().

int APGnode::weight [private]

Referenced by APGnode(), getWeight(), and setWeight().

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