15#pragma warning(disable : 4800)
43template <
class MatchFuncArgType,
class DataFuncArgType = MatchFuncArgType,
44 bool needsConversion =
false>
110 virtual bool Match(
const DataFuncArgType arg)
const {
116 tRes =
static_cast<bool>(mfArg);
171 MatchFuncArgType mfArg;
173 std::is_same<MatchFuncArgType, DataFuncArgType>::value) {
185 MatchFuncArgType mfArg;
196template <
class T1,
class T2>
197int queryCmp(
const T1 v1,
const T2 v2,
const T1 tol) {
#define PRECONDITION(expr, mess)
class to allow integer values to pick templates
int(* d_dataFunc)(Atom const *)
MatchFuncArgType TypeConvert(DataFuncArgType what, Int2Type< true >) const
const std::string & getTypeLabel() const
returns our text label.
bool(*)(MatchFuncArgType) getMatchFunc() const
returns our match function:
int(* d_dataFuncSameType)(int)
virtual std::string getFullDescription() const
returns a fuller text description
virtual bool Match(const DataFuncArgType arg) const
returns whether or not we match the argument
int TypeConvert(int what, Int2Type< false >) const
void addChild(CHILD_TYPE child)
adds a child to our list of children
void setDescription(const char *descr)
This is an overloaded member function, provided for convenience. It differs from the above function o...
CHILD_VECT_CI endChildren() const
returns an iterator for the end of our child vector
CHILD_VECT_CI beginChildren() const
returns an iterator for the beginning of our child vector
void setDataFunc(MatchFuncArgType(*what)(DataFuncArgType))
sets our data function
void setTypeLabel(const std::string &typ)
sets our type label
std::vector< CHILD_TYPE > CHILD_VECT
Atom const * DATA_FUNC_ARG_TYPE
bool getNegation() const
returns whether or not we are negated
void setNegation(bool what)
sets whether or not we are negated
virtual Query< MatchFuncArgType, DataFuncArgType, needsConversion > * copy() const
returns a copy of this Query
const std::string & getDescription() const
returns our text description
typename CHILD_VECT::const_iterator CHILD_VECT_CI
void setMatchFunc(bool(*what)(MatchFuncArgType))
sets our match function
void setTypeLabel(const char *typ)
This is an overloaded member function, provided for convenience. It differs from the above function o...
typename CHILD_VECT::iterator CHILD_VECT_I
std::shared_ptr< Query< int, Atom const *, needsConversion > > CHILD_TYPE
MatchFuncArgType(*)(DataFuncArgType) getDataFunc() const
returns our data function:
void setDescription(const std::string &descr)
sets our text description
std::string d_description
#define RDKIT_QUERY_EXPORT
int queryCmp(const T1 v1, const T2 v2, const T1 tol)