ORIGINAL
Loading...
Searching...
No Matches
original::rangeFilter< TYPE > Class Template Referencefinal

A filter that checks if an element lies within a specified range. More...

#include <filter.h>

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

Public Member Functions

 rangeFilter (const TYPE &low, const TYPE &high)
 Constructs a rangeFilter with the specified range.
 
rangeFilterclone () const override
 Clones the rangeFilter object.
 
- Public Member Functions inherited from original::filter< TYPE >
 ~filter () override=default
 Virtual destructor for the filter class.
 
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.
 

Additional Inherited Members

- 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::rangeFilter< TYPE >

A filter that checks if an element lies within a specified range.

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

Constructor & Destructor Documentation

◆ rangeFilter()

template<typename TYPE>
original::rangeFilter< TYPE >::rangeFilter ( const TYPE & low,
const TYPE & high )
explicit

Constructs a rangeFilter with the specified range.

Parameters
lowThe lower bound of the range.
highThe upper bound of the range.

Member Function Documentation

◆ clone()

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

Clones the rangeFilter object.

Returns
A pointer to a new instance of rangeFilter.

Reimplemented from original::filter< TYPE >.


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