User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Graphs - GraphAdjIterC<class NodeT,class EdgeT>
 

  PUBLIC
GraphAdjIterC::GraphAdjIterC(const GraphAdjIterC &)
GraphAdjIterC::operator =(const GraphAdjIterC &)
GraphAdjIterC::Data(void)
GraphAdjIterC::Data(void) const
GraphAdjIterC::Node1Data(void)
GraphAdjIterC::Node2Data(void)
GraphAdjIterC::SourceData(void)
GraphAdjIterC::TargetData(void)
GraphAdjIterC::Node1(void)
GraphAdjIterC::Node2(void)
GraphAdjIterC::Node(void)
GraphAdjIterC::OtherNode(void)
GraphAdjIterC::NodeH(void)
GraphAdjIterC::OtherNodeH(void)
GraphAdjIterC::Source(void)
GraphAdjIterC::Target(void)
GraphAdjIterC::SourceH(void)
GraphAdjIterC::TargetH(void)
GraphAdjIterC::Edge(void)
GraphAdjIterC::Del(void)
GraphAdjIterC::DelMoveNext(void)
GraphAdjIterBaseC::EdgeRep(void) const
GraphAdjIterBaseC::EdgeRep(void)
GraphAdjIterBaseC::SourceRep(void) const
GraphAdjIterBaseC::SourceRep(void)
GraphAdjIterBaseC::TargetRep(void) const
GraphAdjIterBaseC::TargetRep(void)
GraphAdjIterBaseC::Node1Rep(void) const
GraphAdjIterBaseC::Node1Rep(void)
GraphAdjIterBaseC::Node2Rep(void) const
GraphAdjIterBaseC::Node2Rep(void)
GraphAdjIterBaseC::Node1(void)
GraphAdjIterBaseC::Node2(void)
GraphAdjIterBaseC::Edge(void)
GraphAdjIterBaseC::Node(void)
GraphAdjIterBaseC::OtherNode(void)
GraphAdjIterBaseC::OtherAdj(void)
IntrDLIterC::IsValid(void) const
IntrDLIterC::First(void)
IntrDLIterC::Last(void)
IntrDLIterC::operator bool(void) const
IntrDLIterC::IsElm(void) const
IntrDLIterC::IsFirst(void) const
IntrDLIterC::IsLast(void) const
IntrDLIterC::operator ++(void)
IntrDLIterC::operator ++(int)
IntrDLIterC::operator --(int)
IntrDLIterC::Next(void)
IntrDLIterC::Prev(void)
IntrDLIterC::NextCrc(void)
IntrDLIterC::PrevCrc(void)
IntrDLIterC::operator *(void)
IntrDLIterC::operator *(void) const
IntrDLIterC::operator ->(void)
IntrDLIterC::operator ->(void) const
IntrDLIterC::Data(void)
IntrDLIterC::Data(void) const
IntrDLIterC::Extract(void)
IntrDLIterC::Del(void)
IntrDLIterC::InsertBef(DataT &)
IntrDLIterC::InsertAft(DataT &)
IntrDLIterC::List(void)
IntrDLIterC::List(void) const
IntrDLIterC::Invalidate(void)

   GraphAdjIterC<class NodeT,class EdgeT>   
 
Adjacency iterator.
 
include "Ravl/GraphAdj.hh"
Created:10/12/1996 
User Level:Normal
Library:RavlCore
Example:exGraph.cc
In Scope:RavlN

Parent Classes: Methods:
GraphAdjIterC(const GraphAdjIterC<NodeT,EdgeT> & Another)
Copy constructor.

const GraphAdjIterC<NodeT,EdgeT> & operator =(const GraphAdjIterC<NodeT,EdgeT> & Oth)
Assigment.

EdgeT & Data(void)
Access data.

const EdgeT & Data(void) const
Constant access to data.

NodeT & Node1Data(void)
Get data from node 1.

NodeT & Node2Data(void)
Get data from node 2.

NodeT & SourceData(void)
Data from source node.

NodeT & TargetData(void)
Data from target node.

GraphNodeIterC<NodeT,EdgeT> Node1(void)
Get a node from an undirected graph

GraphNodeIterC<NodeT,EdgeT> Node2(void)
Get a node from an undirected graph

GraphNodeIterC<NodeT,EdgeT> Node(void)
See GraphAdjIterBaseC::Node()

GraphNodeIterC<NodeT,EdgeT> OtherNode(void)
See GraphAdjIterBaseC::OtherNode()

GraphNodeHC<NodeT,EdgeT> NodeH(void)
See GraphAdjIterBaseC::Node()

GraphNodeHC<NodeT,EdgeT> OtherNodeH(void)
See GraphAdjIterBaseC::OtherNode()

GraphNodeIterC<NodeT,EdgeT> Source(void)
Get source node.

GraphNodeIterC<NodeT,EdgeT> Target(void)
Get target node.

GraphNodeHC<NodeT,EdgeT> SourceH()
Get source node handle.

GraphNodeHC<NodeT,EdgeT> TargetH()
Get target node handle.

GraphEdgeIterC<NodeT,EdgeT> Edge(void)
Get associated edge.

void Del()
Unlinks edge from the graph and deletes it. The iterator will point to the previous edge in the graph edge list.

void DelMoveNext()
Unlinks edge from the graph and deletes it. The iterator will point to the next edge in the graph edge list.

#include "Ravl/GraphBase.hh"
const GraphEdgeBaseBodyC & EdgeRep() const
Returns the edge which is connected to this graph adjacency.

GraphEdgeBaseBodyC & EdgeRep()
Returns the edge which is connected to this graph adjacency.

const GraphNodeBaseBodyC & SourceRep() const
Returns the source node of the edge which is connected to this graph adjacency.

GraphNodeBaseBodyC & SourceRep()
Returns the source node of the edge which is connected to this graph adjacency.

const GraphNodeBaseBodyC & TargetRep() const
Returns the target node of the edge which is connected to this graph adjacency.

GraphNodeBaseBodyC & TargetRep()
Returns the target node of the edge which is connected to this graph adjacency.

const GraphNodeBaseBodyC & Node1Rep() const
Returns the first node of the edge which is connected to this graph adjacency.

GraphNodeBaseBodyC & Node1Rep()
Returns the first node of the edge which is connected to this graph adjacency.

const GraphNodeBaseBodyC & Node2Rep() const
Returns the second node of the edge which is connected to this graph adjacency.

GraphNodeBaseBodyC & Node2Rep()
Returns the second node of the edge which is connected to this graph adjacency.

GraphNodeBaseC Node1()
Returns the first node of the edge which is connected to this graph adjacency.

GraphNodeBaseC Node2()
Returns the second node of the edge which is connected to this graph adjacency.

GraphEdgeBaseC Edge()
Returns the edge which is connected to this graph adjacency.

GraphNodeBaseC Node()
Returns the node which is the owner of the list to which this graph adjacency belongs to.

GraphNodeBaseC OtherNode()
Returns the node which is not the owner of the list to which this graph adjacency belongs to.

GraphAdjIterBaseC & OtherAdj()
Moves to the graph adjacency of the other node.

#include "Ravl/InDLIter.hh"
bool IsValid() const
Is iterator valid ?
true is returned for a valid iterator.

void First()
Goto first element in the list.

void Last()
Goto the last element in the list.

operator bool() const
At a valid node ?

bool IsElm() const
At a valid element in the list ?
AMMA compatibilty function, use operator bool() instread.

bool IsFirst() const
At the first element in the list ?
AMMA compatibilty function.

bool IsLast() const
At the last element in the list ?
AMMA compatibilty function.

void operator ++()
Goto next element in list.

void operator ++(int)
Goto next element in list.

void operator --(int)
Goto previous element in list.

void Next()
Goto next element in list.
AMMA compatibilty function, use operator++() instread.

void Prev()
Goto previous element in list.
AMMA compatibilty function, use operator--() instread.

void NextCrc()
Goto next element in list, skip the head element.
AMMA compatibilty function.

void PrevCrc()
Goto previous element in list, skip the head element.
AMMA compatibilty function.

GraphAdjRepC & operator *()
Access data.
NB. The iterator MUST be valid. check with 'operator bool()'.

const GraphAdjRepC & operator *() const
Constant access to data.
NB. The iterator MUST be valid. check with 'operator bool()'.

GraphAdjRepC * operator ->()
Access data.
NB. The iterator MUST be valid. check with 'operator bool()'.

const GraphAdjRepC * operator ->() const
Constant access to data.
NB. The iterator MUST be valid. check with 'operator bool()'.

GraphAdjRepC & Data()
Access data.
NB. The iterator MUST be valid. check with 'operator bool()'.

const GraphAdjRepC & Data() const
Constant access to data.
NB. The iterator MUST be valid. check with 'operator bool()'.

GraphAdjRepC & Extract()
Extract the current element from the list.
Do not delete it, the user is responsible for ensuring this happens at an approprate time. The iteration is left pointing at the element before the one extracted. The iterator must be valid.

void Del()
Delete the current element from the list.
actuall delete the element where appropriate. The iterator must be valid.

void InsertBef(GraphAdjRepC & dat)
Insert data before current element.
if at the head of the list (i.e. operator bool() failes.) then add at end.

void InsertAft(GraphAdjRepC & dat)
Insert data after current element.
if at the head of the list (i.e. operator bool() failes.) then add at begining.

IntrDListC<GraphAdjRepC> & List()
Access the list we're iterating.

const IntrDListC<GraphAdjRepC> & List() const
Access the list we're iterating.

bool Invalidate()
Point interator at an invalid element.


Maintainer:Charles Galambos, Created: 10/12/1996, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002