ORIGINAL
|
Base class for filter operations. More...
#include <filter.h>
Public Member Functions | |
~filter () override=default | |
Virtual destructor for the filter class. | |
filter * | clone () const override |
Clones the filter object. | |
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. | |
Protected Member Functions | |
virtual bool | match (const TYPE &t) const |
Determines if an element matches the filter condition. | |
![]() | |
cloneable ()=default | |
Default constructor for cloneable. | |
![]() | |
baseCloneable ()=default | |
Default constructor for baseCloneable. | |
Base class for filter operations.
TYPE | Type of the element to match |
This class provides the interface for performing match operations on an element of type TYPE
. Derived classes should implement the match
method for specific matching logic. The operator()
method is used to invoke the match
method.
|
overridevirtual |
Clones the filter object.
Reimplemented from original::baseCloneable< cloneable >.
Reimplemented in original::greaterFilter< TYPE >, original::lessFilter< TYPE >, original::notEqualFilter< TYPE >, original::notGreaterFilter< TYPE >, original::notLessFilter< TYPE >, and original::rangeFilter< TYPE >.
|
protectedvirtual |
Determines if an element matches the filter condition.
t | The element to check. |
true
if the element matches the filter, false
otherwise. bool original::filter< TYPE >::operator() | ( | const TYPE & | t | ) | const |
Applies the filter to the element.
t | The element to check. |
true
if the element matches the filter, false
otherwise.