tlp::FilterIterator< TYPE, FILTER > Class Template Reference
[Iterator, Iterators]
Iterator that enables to filter an other Iterator.
More...
#include <filteriterator.h>
List of all members.
Public Member Functions
Detailed Description
template<typename TYPE, typename FILTER>
class tlp::FilterIterator< TYPE, FILTER >
Iterator that enables to filter an other Iterator.
- Parameters:
-
| 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;
}
};
Constructor & Destructor Documentation
template<typename TYPE , typename FILTER >
template<typename TYPE , typename FILTER >
Member Function Documentation
template<typename TYPE , typename FILTER >
Tells if the sequence is at its end.
- Returns:
- bool Whether there are more elements to iterate on.
Implements tlp::Iterator< TYPE >.
template<typename TYPE , typename FILTER >