BasicGraph implementation for the abstract class GraphIterator. More...
#include <BasicGraph.h>
Public Member Functions | |
bool | hasNext () |
Returns true if the iterator can still be incremented. | |
U | next () |
Returns the next element from the list. | |
BasicGraphIterator (const V &set) | |
Creates a new BasicGraphIterator. |
BasicGraph implementation for the abstract class GraphIterator.
Two specializations are defined : one for nodes, and one for areas. See Graph::GraphIterator. In this implementation, T corresponds to the elements' Ids, and U to a smart pointer (ptr) to the element. Since the list of curves is a multimap in BasicGraph, it was necessary to use a different class than BasicGraphIterator, which uses simple maps.
proland::BasicGraph::BasicGraphIterator< T, U >::BasicGraphIterator | ( | const V & | set | ) | [inline] |
Creates a new BasicGraphIterator.
set | a <T, U> map, containing the data we want to iterate. |
bool proland::BasicGraph::BasicGraphIterator< T, U >::hasNext | ( | ) | [inline, virtual] |
Returns true if the iterator can still be incremented.
Implements proland::Graph::GraphIterator< U >.
U proland::BasicGraph::BasicGraphIterator< T, U >::next | ( | ) | [inline, virtual] |
Returns the next element from the list.
Implements proland::Graph::GraphIterator< U >.