10 #ifndef _RD_QUERYBOND_H 11 #define _RD_QUERYBOND_H 89 bool maintainOrder =
true);
99 for (
unsigned int i = 0; i < depth; ++i) res +=
" ";
103 res +=
qhelper((*ci).get(), depth + 1);
111 std::string res =
"";
virtual std::string getFullDescription() const
returns a fuller text description
void setBondDir(BondDir bD)
sets the BondDir of this query:
std::string qhelper(Bond::QUERYBOND_QUERY *q, unsigned int depth)
QueryBond(const QueryBond &other)
virtual bool hasQuery() const
BOND_EQUALS_QUERY * makeBondOrderEqualsQuery(Bond::BondType what)
returns a Query for matching bond orders
std::string qhelper(Atom::QUERYATOM_QUERY *q, unsigned int depth)
QueryBond & operator=(const QueryBond &other)
virtual QUERYBOND_QUERY * getQuery() const
NOT CALLABLE.
QUERYBOND_QUERY * getQuery() const
returns our current query
CHILD_VECT_CI endChildren() const
returns an iterator for the end of our child vector
virtual Bond * copy() const
returns a copy of this query, owned by the caller
std::string describeQuery(const Atom *atom)
void expandQuery(QUERYBOND_QUERY *what, Queries::CompositeQueryType how=Queries::COMPOSITE_AND, bool maintainOrder=true)
expands our current query
QUERYBOND_QUERY * dp_query
bool QueryMatch(QueryBond const *what) const
returns true if our query details match those of QueryBond what
class for representing a bond
CHILD_VECT_CI beginChildren() const
returns an iterator for the beginning of our child vector
BondDir
the bond's direction (for chirality)
bool Match(const Bond::BOND_SPTR what) const
returns true if we match Bond what
CHILD_VECT::const_iterator CHILD_VECT_CI
Queries::Query< int, Bond const *, true > QUERYBOND_QUERY
#define PRECONDITION(expr, mess)
void setBondType(BondType bT)
sets the BondType of this query:
BondType getBondType() const
returns our bondType
boost::shared_ptr< Bond > BOND_SPTR
Pulls in all the query types.
QueryBond(const Bond &other)
initialize from a bond
Class for storing Bond queries.
Base class for all queries.
void setQuery(QUERYBOND_QUERY *what)
replaces our current query with the value passed in