ORIGINAL
Loading...
Searching...
No Matches
original::filter< TYPE > Class Template Reference

Base class for filter operations. More...

#include <filter.h>

Inheritance diagram for original::filter< TYPE >:
Inheritance graph
Collaboration diagram for original::filter< TYPE >:
Collaboration graph

Public Member Functions

 ~filter () override=default
 Virtual destructor for the filter class.
 
filterclone () const override
 Clones the filter object.
 
bool operator() (const TYPE &t) const
 Applies the filter to the element.
 
- Public Member Functions inherited from original::cloneable
 ~cloneable () override=default
 Virtual destructor for cloneable.
 
- Public Member Functions inherited from original::baseCloneable< 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.
 
- Protected Member Functions inherited from original::cloneable
 cloneable ()=default
 Default constructor for cloneable.
 
- Protected Member Functions inherited from original::baseCloneable< cloneable >
 baseCloneable ()=default
 Default constructor for baseCloneable.
 

Detailed Description

template<typename TYPE>
class original::filter< TYPE >

Base class for filter operations.

Template Parameters
TYPEType 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.

Member Function Documentation

◆ clone()

template<typename TYPE>
auto original::filter< TYPE >::clone ( ) const
overridevirtual

◆ match()

template<typename TYPE>
bool original::filter< TYPE >::match ( const TYPE & t) const
protectedvirtual

Determines if an element matches the filter condition.

Parameters
tThe element to check.
Returns
true if the element matches the filter, false otherwise.

◆ operator()()

template<typename TYPE>
bool original::filter< TYPE >::operator() ( const TYPE & t) const

Applies the filter to the element.

Parameters
tThe element to check.
Returns
true if the element matches the filter, false otherwise.

The documentation for this class was generated from the following file: