ZeusMath-Library  2.0.4
zeus::TGraphIterator Class Referenceabstract

#include <GraphIterator.h>

Inheritance diagram for zeus::TGraphIterator:
zeus::TGraphBreathIterator zeus::TGraphDepthIterator

Public Member Functions

 TGraphIterator (TGraph &rGraph)
 
void startWith (Uint uiVertice) const
 
virtual void reset ()=0
 
virtual Retval getNextVertice (TVertice *&rpVertice)=0
 
Retval getNextVerticeConst (TVertice *&rpVertice) const
 

Protected Member Functions

virtual ~TGraphIterator ()
 

Protected Attributes

TGraphm_rGraph
 graph More...
 
TVerticem_pStartVertice
 Start vertice. More...
 

Detailed Description

Iterator class to iterate through the graph of vertices

Constructor & Destructor Documentation

§ TGraphIterator()

TGraphIterator::TGraphIterator ( TGraph rGraph)

creates a new graph iterator

§ ~TGraphIterator()

TGraphIterator::~TGraphIterator ( )
protectedvirtual

destroys the iterator

Member Function Documentation

§ getNextVertice()

virtual Retval zeus::TGraphIterator::getNextVertice ( TVertice *&  rpVertice)
pure virtual

§ getNextVerticeConst()

Retval zeus::TGraphIterator::getNextVerticeConst ( TVertice *&  rpVertice) const
inline

§ reset()

virtual void zeus::TGraphIterator::reset ( )
pure virtual

§ startWith()

void TGraphIterator::startWith ( Uint  uiVertice) const

starts with a specific vertice

Parameters
uiVertice: ID of the vertice to start with

Member Data Documentation

§ m_pStartVertice

TVertice* zeus::TGraphIterator::m_pStartVertice
protected

Start vertice.

§ m_rGraph

TGraph& zeus::TGraphIterator::m_rGraph
protected

graph


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


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Wed Sep 14 2016 06:46:08