Public Member Functions | Protected Attributes

Queries::EqualityQuery< MatchFuncArgType, DataFuncArgType, needsConversion > Class Template Reference

a Query implementing ==: arguments must match a particular value (within an optional tolerance) More...

#include <EqualityQuery.h>

Inheritance diagram for Queries::EqualityQuery< MatchFuncArgType, DataFuncArgType, needsConversion >:
Queries::Query< MatchFuncArgType, DataFuncArgType, needsConversion > Queries::GreaterEqualQuery< MatchFuncArgType, DataFuncArgType, needsConversion > Queries::GreaterQuery< MatchFuncArgType, DataFuncArgType, needsConversion > Queries::LessEqualQuery< MatchFuncArgType, DataFuncArgType, needsConversion > Queries::LessQuery< MatchFuncArgType, DataFuncArgType, needsConversion >

List of all members.

Public Member Functions

 EqualityQuery ()
 EqualityQuery (MatchFuncArgType v)
 constructs with our target value
 EqualityQuery (MatchFuncArgType v, MatchFuncArgType t)
 constructs with our target value and a tolerance
void setVal (MatchFuncArgType what)
 sets our target value
const MatchFuncArgType getVal () const
 returns our target value
void setTol (MatchFuncArgType what)
 sets our tolerance
const MatchFuncArgType getTol () const
 returns out tolerance
virtual bool Match (const DataFuncArgType what) const
 returns whether or not we match the argument
virtual Query
< MatchFuncArgType,
DataFuncArgType,
needsConversion > * 
copy () const
 returns a copy of this Query

Protected Attributes

MatchFuncArgType d_val
MatchFuncArgType d_tol

Detailed Description

template<typename MatchFuncArgType, typename DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
class Queries::EqualityQuery< MatchFuncArgType, DataFuncArgType, needsConversion >

a Query implementing ==: arguments must match a particular value (within an optional tolerance)

Definition at line 21 of file EqualityQuery.h.


Constructor & Destructor Documentation

template<typename MatchFuncArgType, typename DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
Queries::EqualityQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::EqualityQuery (  )  [inline]

Definition at line 24 of file EqualityQuery.h.

template<typename MatchFuncArgType, typename DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
Queries::EqualityQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::EqualityQuery ( MatchFuncArgType  v  )  [inline, explicit]

constructs with our target value

Definition at line 29 of file EqualityQuery.h.

template<typename MatchFuncArgType, typename DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
Queries::EqualityQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::EqualityQuery ( MatchFuncArgType  v,
MatchFuncArgType  t 
) [inline]

constructs with our target value and a tolerance

Definition at line 35 of file EqualityQuery.h.


Member Function Documentation

template<typename MatchFuncArgType, typename DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
virtual Query<MatchFuncArgType,DataFuncArgType,needsConversion>* Queries::EqualityQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::copy (  )  const [inline, virtual]
template<typename MatchFuncArgType, typename DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
const MatchFuncArgType Queries::EqualityQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::getTol (  )  const [inline]

returns out tolerance

Definition at line 48 of file EqualityQuery.h.

template<typename MatchFuncArgType, typename DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
const MatchFuncArgType Queries::EqualityQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::getVal (  )  const [inline]

returns our target value

Definition at line 43 of file EqualityQuery.h.

template<typename MatchFuncArgType, typename DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
virtual bool Queries::EqualityQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::Match ( const DataFuncArgType  arg  )  const [inline, virtual]
template<typename MatchFuncArgType, typename DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
void Queries::EqualityQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::setVal ( MatchFuncArgType  what  )  [inline]

Member Data Documentation

template<typename MatchFuncArgType, typename DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
MatchFuncArgType Queries::EqualityQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::d_tol [protected]
template<typename MatchFuncArgType, typename DataFuncArgType = MatchFuncArgType, bool needsConversion = false>
MatchFuncArgType Queries::EqualityQuery< MatchFuncArgType, DataFuncArgType, needsConversion >::d_val [protected]

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