|
latest version v1.9 - last update 24 Nov 2005 |
|
#include <ltiAdjacencyGraph.h>
Public Member Functions | |
| iterator () | |
| iterator (const iterator &other) | |
| iterator & | operator++ () |
| iterator | operator++ (int) |
| iterator & | operator-- () |
| iterator | operator-- (int) |
| bool | operator== (const iterator &other) const |
| bool | operator!= (const iterator &other) const |
| node_type & | operator * () |
| id_type | id () const |
| iterator & | operator= (const iterator &other) |
Protected Member Functions | |
| iterator (const int startPos, nodes_type *vct) | |
| const int & | getPos () const |
| const nodes_type * | getVector () const |
This class is similar to the usual iterators of the STL. The iterator allows you to access the data the nodes, but you can also get the node's id for other kind of processing.
For example:
adjacencyGraph::iterator it; // ... do something with a graph an let the iterator point somewhere // therein. adjacencyGraphNode node = (*it); // get the pointed data. adjacencyGraph::id_type = it.id(); // get the id of the pointed node.
|
|||||||||
|
Default constructor.
|
|
||||||||||
|
copy constructor
|
|
||||||||||||||||
|
protected constructor (for internal use only)
|
|
|||||||||
|
for internal use only!!!
|
|
|||||||||
|
for internal use only!!!
|
|
|||||||||
|
get pointed node's id. Please note that the id can become invalid if the pointed node is removed. |
|
|||||||||
|
get pointed data
|
|
||||||||||
|
compare if both pointed positions are different
|
|
||||||||||
|
advance to next item
|
|
|||||||||
|
advance to next item
|
|
||||||||||
|
recede to previous item
|
|
|||||||||
|
recede to previous item // prefix
|
|
||||||||||
|
copy member
|
|
||||||||||
|
compare if both pointed positions are the same
|