ORIGINAL
|
A filter that checks if an element lies within a specified range. More...
#include <filter.h>
Public Member Functions | |
rangeFilter (const TYPE &low, const TYPE &high) | |
Constructs a rangeFilter with the specified range. | |
rangeFilter * | clone () const override |
Clones the rangeFilter object. | |
![]() | |
~filter () override=default | |
Virtual destructor for the filter class. | |
bool | operator() (const TYPE &t) const |
Applies the filter to the element. | |
![]() | |
~cloneable () override=default | |
Virtual destructor for cloneable. | |
![]() | |
virtual | ~baseCloneable ()=default |
Virtual destructor for baseCloneable. | |
Additional Inherited Members | |
![]() | |
cloneable ()=default | |
Default constructor for cloneable. | |
![]() | |
baseCloneable ()=default | |
Default constructor for baseCloneable. | |
A filter that checks if an element lies within a specified range.
TYPE | Type of the element to match |
This filter compares an element to a lower and upper bound, and returns true
if the element is within the range.
|
explicit |
Constructs a rangeFilter with the specified range.
low | The lower bound of the range. |
high | The upper bound of the range. |
|
overridevirtual |
Clones the rangeFilter object.
Reimplemented from original::filter< TYPE >.