10 #ifndef __RD_LESSQUERY_H__ 11 #define __RD_LESSQUERY_H__ 18 template <
class MatchFuncArgType,
class DataFuncArgType=MatchFuncArgType,
19 bool needsConversion=
false>
21 public EqualityQuery<MatchFuncArgType, DataFuncArgType,needsConversion> {
38 bool Match(
const DataFuncArgType what)
const {
62 std::ostringstream res;
64 res<<
" "<<this->
d_val;
bool getNegation() const
returns whether or not we are negated
Query< MatchFuncArgType, DataFuncArgType, needsConversion > * copy() const
returns a copy of this Query
int queryCmp(const T1 v1, const T2 v2, const T1 tol)
const std::string & getDescription() const
returns our text description
void setNegation(bool what)
sets whether or not we are negated
void setTol(MatchFuncArgType what)
sets our tolerance
MatchFuncArgType TypeConvert(MatchFuncArgType what, Int2Type< false >) const
calls our dataFunc (if it's set) on what and returns the result, otherwise returns what ...
bool Match(const DataFuncArgType what) const
returns whether or not we match the argument
void setVal(MatchFuncArgType what)
sets our target value
LessQuery(DataFuncArgType v, DataFuncArgType t)
constructs with our target value and a tolerance
class to allow integer values to pick templates
LessQuery(DataFuncArgType v)
constructs with our target value
MatchFuncArgType(* d_dataFunc)(DataFuncArgType)
a Query implementing < using a particular value (and an optional tolerance)
a Query implementing ==: arguments must match a particular value (within an optional tolerance) ...
void setDataFunc(MatchFuncArgType(*what)(DataFuncArgType))
sets our data function
std::string d_description
std::string getFullDescription() const
returns a fuller text description
Base class for all queries.