19template <
class MatchFuncArgType,
class DataFuncArgType = MatchFuncArgType,
20 bool needsConversion =
false>
22 :
public EqualityQuery<MatchFuncArgType, DataFuncArgType, needsConversion> {
38 bool Match(
const DataFuncArgType what)
const override {
39 MatchFuncArgType mfArg =
62 std::ostringstream res;
64 res <<
" " << this->
d_val;
void setTol(MatchFuncArgType what)
sets our tolerance
void setVal(MatchFuncArgType what)
sets our target value
class to allow integer values to pick templates
bool Match(const DataFuncArgType what) const override
std::string getFullDescription() const override
returns a fuller text description
LessQuery(DataFuncArgType v, DataFuncArgType t)
constructs with our target value and a tolerance
Query< MatchFuncArgType, DataFuncArgType, needsConversion > * copy() const override
returns a copy of this Query
LessQuery(DataFuncArgType v)
constructs with our target value
Base class for all queries.
MatchFuncArgType(* d_dataFunc)(MatchFuncArgType)
MatchFuncArgType TypeConvert(MatchFuncArgType what, Int2Type< false >) const
void setDataFunc(MatchFuncArgType(*what)(DataFuncArgType))
sets our data function
void setNegation(bool what)
sets whether or not we are negated
const std::string & getDescription() const
std::string d_description
#define RDKIT_QUERY_EXPORT
int queryCmp(const T1 v1, const T2 v2, const T1 tol)