| ||||||||||||||||||||||||||||||||||||
tlp::UniqueIterator< TYPE, TOCHECKFUNCTOR > Class Template Reference UniqueIterator enables to remove duplicated elements in an iterator. More...
Inheritance diagram for tlp::UniqueIterator< TYPE, TOCHECKFUNCTOR >:
Collaboration diagram for tlp::UniqueIterator< TYPE, TOCHECKFUNCTOR >:
Public Member Functions
Detailed Descriptiontemplate<typename TYPE, typename TOCHECKFUNCTOR = CheckAllFunctor<TYPE>>
|
it | the iterator in which we want to filter out duplicated elements |
checkFuncor | a functor that enable to indicate wheter or not the element could be duplicated (default test all elements) |
The functor function shoul have the following form
class ACheckFunctor { bool operator(TYPE a) { return true if a could be duplicated else false; } };
checkFunctor are used for optimization purpose to prevent to log(n) test for all elements when not necessary.
tlp::UniqueIterator< TYPE, TOCHECKFUNCTOR >::UniqueIterator | ( | Iterator< TYPE > * | it, |
TOCHECKFUNCTOR | checkFunctor = TOCHECKFUNCTOR() |
||
) | [inline] |
tlp::UniqueIterator< TYPE, TOCHECKFUNCTOR >::~UniqueIterator | ( | ) | [inline] |
bool tlp::UniqueIterator< TYPE, TOCHECKFUNCTOR >::hasNext | ( | ) | [inline, virtual] |
Tells if the sequence is at its end.
Implements tlp::Iterator< TYPE >.
TYPE tlp::UniqueIterator< TYPE, TOCHECKFUNCTOR >::next | ( | ) | [inline, virtual] |
Moves the Iterator on the next element.
Implements tlp::Iterator< TYPE >.
void tlp::UniqueIterator< TYPE, TOCHECKFUNCTOR >::update | ( | ) | [inline] |
Tulip Software by LaBRI Visualization Team 2001 - 2012 |