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_edge_iterator () | |
const_edge_iterator (const const_edge_iterator &other) | |
const_edge_iterator (const edge_iterator &other) | |
const_edge_iterator & | operator++ () |
const_edge_iterator | operator++ (int) |
const_edge_iterator & | operator-- () |
const_edge_iterator | operator-- (int) |
bool | operator== (const const_edge_iterator &other) const |
bool | operator== (const edge_iterator &other) const |
bool | operator!= (const const_edge_iterator &other) const |
bool | operator!= (const edge_iterator &other) const |
const edge_data_type & | operator* () const |
const_edge_iterator & | operator= (const edge_iterator &other) |
const_edge_iterator & | operator= (const const_edge_iterator &other) |
Protected Member Functions | |
const_edge_iterator (const typename row_type::const_iterator &sp, const id_type node) | |
const entry_type & | getEntry () const |
id_type | getNode () const |
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 iterator allows you to access the data the edge, but you can also get the next node's id for other kind of processing.
Since you got this iterator, you should know somehow which is the starting edge node.
To access the edge's data, use the operator* (for example, if it
is an edge_iterator, get the data with (*it) ). To get the ids of the nodes or the weight of the edge, use the corresponding methods in the adjacencyGraph class.
lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::const_edge_iterator | ( | ) | [inline] |
Default constructor.
lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::const_edge_iterator | ( | const const_edge_iterator & | other | ) | [inline] |
copy constructor
lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::const_edge_iterator | ( | const edge_iterator & | other | ) | [inline] |
copy constructor
lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::const_edge_iterator | ( | const typename row_type::const_iterator & | sp, | |
const id_type | node | |||
) | [inline, explicit, protected] |
protected constructor (for internal use only)
const entry_type& lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::getEntry | ( | ) | const [inline, protected] |
get complete matrix element entry for internal use only!!!
id_type lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::getNode | ( | ) | const [inline, protected] |
for internal use only!!!
bool lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::operator!= | ( | const edge_iterator & | other | ) | const [inline] |
compare if both pointed positions are different
References lti::adjacencyGraph< N, W, D, F, E >::edge_iterator::getPos().
bool lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::operator!= | ( | const const_edge_iterator & | other | ) | const [inline] |
compare if both pointed positions are different
const edge_data_type& lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::operator* | ( | ) | const [inline] |
get pointed data
const_edge_iterator lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::operator++ | ( | int | ) | [inline] |
advance to next item
const_edge_iterator& lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::operator++ | ( | ) | [inline] |
advance to next item
const_edge_iterator lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::operator-- | ( | int | ) | [inline] |
recede to previous item
const_edge_iterator& lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::operator-- | ( | ) | [inline] |
recede to previous item // prefix
const_edge_iterator& lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::operator= | ( | const const_edge_iterator & | other | ) | [inline] |
copy member
const_edge_iterator& lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::operator= | ( | const edge_iterator & | other | ) | [inline] |
bool lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::operator== | ( | const edge_iterator & | other | ) | const [inline] |
compare if both pointed positions are the same
References lti::adjacencyGraph< N, W, D, F, E >::edge_iterator::getPos().
bool lti::adjacencyGraph< N, W, D, F, E >::const_edge_iterator::operator== | ( | const const_edge_iterator & | other | ) | const [inline] |
compare if both pointed positions are the same