 |
RDKit
Open-source cheminformatics and machine learning.
|
Go to the documentation of this file.
11 #ifndef __RD_ORQUERY_H__
12 #define __RD_ORQUERY_H__
18 template <
class MatchFuncArgType,
class DataFuncArgType = MatchFuncArgType,
19 bool needsConversion =
false>
21 :
public Query<MatchFuncArgType, DataFuncArgType, needsConversion> {
26 bool Match(
const DataFuncArgType what)
const {
30 bool tmp = (*it1)->Match(what);
CHILD_VECT::const_iterator CHILD_VECT_CI
void setNegation(bool what)
sets whether or not we are negated
boost::shared_ptr< Query< MatchFuncArgType, DataFuncArgType, needsConversion > > CHILD_TYPE
Query< MatchFuncArgType, DataFuncArgType, needsConversion > * copy() const
returns a copy of this Query
Query< MatchFuncArgType, DataFuncArgType, needsConversion > BASE
a Query implementing AND: requires any child to be true
std::string d_description
void addChild(CHILD_TYPE child)
adds a child to our list of children
bool getNegation() const
returns whether or not we are negated
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
bool Match(const DataFuncArgType what) const
returns whether or not we match the argument
Base class for all queries.