User Documentation
RAVL, Recognition And Vision Library
DEVELOP 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
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 
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:
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.

#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:02 2002