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

A filter that checks if an element is less than or equal to a target value. More...

#include <filter.h>

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

Public Member Functions

 notGreaterFilter (const TYPE &low)
 Constructs a notGreaterFilter with the target value.
 
notGreaterFilterclone () const override
 Clones the notGreaterFilter 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::notGreaterFilter< TYPE >

A filter that checks if an element is less than or equal to a target value.

Template Parameters
TYPEType of the element to match

This filter compares an element to a target value and returns true if the element is less than or equal to the target.

Constructor & Destructor Documentation

◆ notGreaterFilter()

template<typename TYPE>
original::notGreaterFilter< TYPE >::notGreaterFilter ( const TYPE & low)
explicit

Constructs a notGreaterFilter with the target value.

Parameters
lowThe value to compare elements against.

Member Function Documentation

◆ clone()

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

Clones the notGreaterFilter object.

Returns
A pointer to a new instance of notGreaterFilter.

Reimplemented from original::filter< TYPE >.


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