Class BaseGraph::BiDirNodesIterator#

Nested Relationships#

This class is a nested type of Class BaseGraph.

Inheritance Relationships#

Base Type#

Derived Types#

Class Documentation#

class BiDirNodesIterator : public Iterator

The bi-directional node iterator iterates over all the nodes in the graph in no particular order — except that the Forward direction is guaranteed to be opposite of the Reverse direction.

Subclassed by DGraph::BiDirNodesIterator, Graph::BiDirNodesIterator

Public Types

enum dirType

Values:

enumerator Forward
enumerator Reverse

Public Functions

inline BiDirNodesIterator(BaseGraph &g)
inline BiDirNodesIterator(BaseGraph &g, dirType d)
inline ~BiDirNodesIterator()
inline virtual void operator++()
inline void operator--()
inline virtual operator bool()

Protected Attributes

std::set<Node*>::iterator iter
std::set<Node*>::iterator pre_begin
BaseGraph *gr
dirType dir