| ||||||||||||||||||||||||||||||||||||||
tlp::StableIterator< itType > Class Template Reference Stores the elements of an iterator and iterates on a copy. More...
Inheritance diagram for tlp::StableIterator< itType >:
Collaboration diagram for tlp::StableIterator< itType >:
Public Member Functions
Protected Attributes
Detailed Descriptiontemplate<class itType>
|
tlp::StableIterator< itType >::StableIterator | ( | Iterator< itType > * | inputIterator, |
size_t | nbElements = 0 , |
||
bool | deleteIterator = true |
||
) | [inline] |
Creates a stable Iterator, that allows to delete elements from a graph while iterating on them.
tlp::StableIterator< itType >::~StableIterator | ( | ) | [inline] |
bool tlp::StableIterator< itType >::hasNext | ( | ) | [inline, virtual] |
Tells if the sequence is at its end.
Implements tlp::Iterator< itType >.
itType tlp::StableIterator< itType >::next | ( | ) | [inline, virtual] |
Moves the Iterator on the next element.
Implements tlp::Iterator< itType >.
void tlp::StableIterator< itType >::restart | ( | ) | [inline] |
Restarts the iteration by moving the Iterator to the beginning of the sequence.
std::vector<itType>::const_iterator tlp::StableIterator< itType >::copyIterator [protected] |
STL const_iterator on the cloned sequence.
std::vector<itType> tlp::StableIterator< itType >::sequenceCopy [protected] |
A copy of the sequence of elements to iterate on.
Tulip Software by LaBRI Visualization Team 2001 - 2012 |