| |||||||||||||||||||||||||||||||
|
Iterator that enables to filter an other Iterator. More...
Inheritance diagram for tlp::FilterIterator< TYPE, FILTER >:
![]()
Collaboration diagram for tlp::FilterIterator< TYPE, FILTER >:
![]() Public Member Functions
Detailed Descriptiontemplate<typename TYPE, typename FILTER>
|
| it | the iterator that should be filtered |
| filter | the functor that enables to test wheter or not an element is filtered |
The functor function shoul have the following form
class AFilterFunctor { bool operator()(TYPE a) { return true if a should be iterated, false if a should be removed; } };
| tlp::FilterIterator< TYPE, FILTER >::FilterIterator | ( | Iterator< TYPE > * | it, |
| FILTER | filter | ||
| ) | [inline] |
| tlp::FilterIterator< TYPE, FILTER >::~FilterIterator | ( | ) | [inline] |
| bool tlp::FilterIterator< TYPE, FILTER >::hasNext | ( | ) | [inline, virtual] |
Tells if the sequence is at its end.
Implements tlp::Iterator< TYPE >.
| TYPE tlp::FilterIterator< TYPE, FILTER >::next | ( | ) | [inline, virtual] |
Moves the Iterator on the next element.
Implements tlp::Iterator< TYPE >.
| Tulip Software by LaBRI Visualization Team 2001 - 2012 |