API Guides > ConceptRT 3.x
Predicate< ParameterType > Class Template Referenceabstract

Predicate pattern More...

Detailed Description

template<class ParameterType>
class ConceptRT::Predicate< ParameterType >

Predicate pattern

Template Parameters
ParameterTypeType of the value to evaluate.

Predicate pattern that enables us to evaluate values in order to respond to a certain condition given by the overloaded of the method Evaluate

+ Inheritance diagram for Predicate< ParameterType >:

Public Member Methods

virtual ~Predicate ()
 Desctructor. More...
 
virtual bool Evaluate (ParameterType value) const =0
 Evaluate the condition on the given value. More...
 
bool operator() (ParameterType value) const
 Operator of transcoding to bool. More...
 

Constructor & Destructor Documentation

virtual ~Predicate ( )
inlinevirtual

Desctructor.

Methods Documentation

virtual bool Evaluate ( ParameterType  value) const
pure virtual

Evaluate the condition on the given value.

Parameters
valueThe value to evaluate.
Returns
True if conditions are met, False if not.

Implemented in PredicateDelegate< ParameterType >, PredicateFalse< ParameterType >, PredicateTrue< ParameterType >, and FilterFactoryByName.

bool operator() ( ParameterType  value) const
inline

Operator of transcoding to bool.

Parameters
valueThe value to evaluate.
Returns
True if conditions are met, False if not.