10 #ifndef _RD_QUERYATOM_H_ 11 #define _RD_QUERYATOM_H_ 34 dp_query = other.dp_query->
copy();
46 void setQuery(QUERYATOM_QUERY *what) { dp_query = what; }
48 QUERYATOM_QUERY *
getQuery()
const {
return dp_query; };
66 bool maintainOrder=
true);
77 QUERYATOM_QUERY *dp_query;
Atom * copy() const
returns a copy of this query, owned by the caller
virtual Query< MatchFuncArgType, DataFuncArgType, needsConversion > * copy() const
returns a copy of this Query
bool Match(const Atom::ATOM_SPTR &what) const
returns true if we match Atom what
Class for storing atomic queries.
bool QueryMatch(QueryAtom const *what) const
returns true if our query details match those of QueryAtom what
void setQuery(QUERYATOM_QUERY *what)
replaces our current query with the value passed in
int getAtomicNum() const
returns our atomic number
QueryAtom(const QueryAtom &other)
Includes a bunch of functionality for handling Atom and Bond queries.
T * makeAtomNumQuery(int what, const std::string &descr)
returns a Query for matching atomic number
boost::shared_ptr< Atom > ATOM_SPTR
QUERYATOM_QUERY * getQuery() const
returns our current query
Defines the Atom class and associated typedefs.
Pulls in all the query types.
Queries::Query< int, Atom const *, true > QUERYATOM_QUERY
QueryAtom(const Atom &other)
Base class for all queries.
The class for representing atoms.
void expandQuery(QUERYATOM_QUERY *what, Queries::CompositeQueryType how=Queries::COMPOSITE_AND, bool maintainOrder=true)
expands our current query