latest version v1.9 - last update 10 Apr 2010 |
The graph const_iterator iterates on all nodes in a read-only fashion. More...
#include <ltiAdjacencyGraph.h>
Public Member Functions | |
const_iterator () | |
const_iterator (const const_iterator &other) | |
const_iterator (const iterator &other) | |
const_iterator & | operator++ () |
const_iterator | operator++ (int) |
const_iterator & | operator-- () |
const_iterator | operator-- (int) |
bool | operator== (const const_iterator &other) const |
bool | operator== (const iterator &other) const |
bool | operator!= (const const_iterator &other) const |
bool | operator!= (const iterator &other) const |
const node_type & | operator* () const |
id_type | id () const |
const_iterator & | operator= (const iterator &other) |
const_iterator & | operator= (const const_iterator &other) |
Protected Member Functions | |
const_iterator (const int startPos, const nodes_type *vct) |
The graph const_iterator iterates on all nodes in a read-only fashion.
This class is similar to the usual iterators of the STL. The const_iterator also allows you to access the id of the nodes. See the class iterator for more information.
lti::adjacencyGraph< N, W, D, F, E >::const_iterator::const_iterator | ( | ) | [inline] |
Default constructor.
lti::adjacencyGraph< N, W, D, F, E >::const_iterator::const_iterator | ( | const const_iterator & | other | ) | [inline] |
copy constructor
lti::adjacencyGraph< N, W, D, F, E >::const_iterator::const_iterator | ( | const iterator & | other | ) | [inline] |
copy constructor
lti::adjacencyGraph< N, W, D, F, E >::const_iterator::const_iterator | ( | const int | startPos, | |
const nodes_type * | vct | |||
) | [inline, explicit, protected] |
protected constructor (for internal use only)
id_type lti::adjacencyGraph< N, W, D, F, E >::const_iterator::id | ( | ) | const [inline] |
get pointed node's id.
Please note that the id can become invalid if the pointed node is removed.
bool lti::adjacencyGraph< N, W, D, F, E >::const_iterator::operator!= | ( | const iterator & | other | ) | const [inline] |
compare if both pointed positions are different
bool lti::adjacencyGraph< N, W, D, F, E >::const_iterator::operator!= | ( | const const_iterator & | other | ) | const [inline] |
compare if both pointed positions are different
const node_type& lti::adjacencyGraph< N, W, D, F, E >::const_iterator::operator* | ( | ) | const [inline] |
get pointed data
const_iterator lti::adjacencyGraph< N, W, D, F, E >::const_iterator::operator++ | ( | int | ) | [inline] |
advance to next item
const_iterator& lti::adjacencyGraph< N, W, D, F, E >::const_iterator::operator++ | ( | ) | [inline] |
advance to next item
const_iterator lti::adjacencyGraph< N, W, D, F, E >::const_iterator::operator-- | ( | int | ) | [inline] |
recede to previous item
const_iterator& lti::adjacencyGraph< N, W, D, F, E >::const_iterator::operator-- | ( | ) | [inline] |
recede to previous item // prefix
const_iterator& lti::adjacencyGraph< N, W, D, F, E >::const_iterator::operator= | ( | const const_iterator & | other | ) | [inline] |
copy member
const_iterator& lti::adjacencyGraph< N, W, D, F, E >::const_iterator::operator= | ( | const iterator & | other | ) | [inline] |
copy member
References lti::adjacencyGraph< N, W, D, F, E >::iterator::getPos(), and lti::adjacencyGraph< N, W, D, F, E >::iterator::getVector().
bool lti::adjacencyGraph< N, W, D, F, E >::const_iterator::operator== | ( | const iterator & | other | ) | const [inline] |
compare if both pointed positions are the same
bool lti::adjacencyGraph< N, W, D, F, E >::const_iterator::operator== | ( | const const_iterator & | other | ) | const [inline] |
compare if both pointed positions are the same