Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Graphs - GraphBaseBodyC
 

  PUBLIC
GraphBaseBodyC::GraphBaseBodyC(GraphTypeT)
GraphBaseBodyC::~GraphBaseBodyC(void)
GraphBaseBodyC::Type(void) const
GraphBaseBodyC::InsNode(void)
GraphBaseBodyC::InsEdge(GraphNodeBaseC &,GraphNodeBaseC &)
GraphBaseBodyC::Nodes(void) const
GraphBaseBodyC::Nodes(void)
GraphBaseBodyC::Edges(void) const
GraphBaseBodyC::Edges(void)
GraphBaseBodyC::EdgeIDs(void) const
GraphBaseBodyC::NodeIDs(void) const
GraphBaseBodyC::InsNode(GraphNodeBaseBodyC &)
GraphBaseBodyC::InsEdge(GraphEdgeBaseBodyC &)
GraphBaseBodyC::AllocEdgeID(void)
GraphBaseBodyC::AllocNodeID(void)
RCBodyVC::Save(ostream &) const
RCBodyVC::Save(BinOStreamC &) const
RCBodyVC::Copy(void) const
RCBodyVC::DeepCopy(UIntT) const
RCBodyC::References(void) const
RCBodyC::Copy(void) const
RCBodyC::DeepCopy(UIntT) const
RCBodyC::IncRefCounter(void)
RCBodyC::DecRefCounter(void)

   GraphBaseBodyC   
 
include "Ravl/GraphBase.hh"
Created:22/8/1994 
Source file:Ravl/Core/Container/Graph/GraphBase.hh
User Level:Develop
Library:RavlCore
In Scope:RavlN

Comments:
The class GraphBaseBodyC represents graph which can be directed or undirected. It contains a collection of nodes and a collection of edges between nodes.

Parent Classes: Variables:
GraphTypeT gType;
The type of the graph: directed x undirected

UIntT edgeIDs;
Count of edge id's issused

UIntT nodeIDs;
Count of node id's issused.

Methods:
GraphBaseBodyC(GraphTypeT type = GRAPH_DIRECTED)
Creates an empty graph, directed or undirected.

~GraphBaseBodyC()
Destructor.

GraphTypeT Type() const
Returns the type of the graph, if it is directed or undirected.

GraphNodeBaseC InsNode()
Inserts one node to the graph. Returns the node iterator.

GraphEdgeBaseC InsEdge(GraphNodeBaseC & fromNode,GraphNodeBaseC & toNode)
Inserts one egde to the graph. Returns the edge iterator.

const IntrDListC<GraphNodeBaseBodyC> & Nodes() const
Returns the constant list of nodes.

IntrDListC<GraphNodeBaseBodyC> & Nodes()
Returns the list of nodes.

const IntrDListC<GraphEdgeBaseBodyC> & Edges() const
Returns the constant list of edges.

IntrDListC<GraphEdgeBaseBodyC> & Edges()
Returns the list of edges.

UIntT EdgeIDs() const
Return the number of edge ID's issused.

UIntT NodeIDs() const
Return the number of node ID's issused.

GraphNodeBaseC InsNode(GraphNodeBaseBodyC & ANode)
Inserts one node to the graph. Returns the node iterator. ANode must be a GraphNodeBaseBodyC that's just been created, and not a part of another graph.

GraphEdgeBaseC InsEdge(GraphEdgeBaseBodyC & AnEdge)
Inserts one edge to the graph. Returns the edge iterator. AnEdge must be a GraphEdgeBaseBodyC that's just been created, and not a part of another graph.

UIntT AllocEdgeID()
Allocate a new edge ID.

UIntT AllocNodeID()
Allocate a new node ID.

#include "Ravl/RCHandleV.hh"
bool Save(ostream & out) const
Save to stream 'out'.

bool Save(BinOStreamC & out) const
Save to binary stream 'out'.

RCBodyVC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

#include "Ravl/RefCounter.hh"
UIntT References() const
Access count of handles open to this object.

RCBodyC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

void IncRefCounter()
Increment reference counter.

bool DecRefCounter()
Decrement reference counter.


Maintainer:Radek Marik, Created: 22/8/1994, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002