#include <QueryAtom.h>

Public Types | |
| typedef Queries::Query< int, Atom const *, true > | QUERYATOM_QUERY |
Public Member Functions | |
| QueryAtom () | |
| QueryAtom (int num) | |
| QueryAtom (const Atom &other) | |
| QueryAtom (const QueryAtom &other) | |
| ~QueryAtom () | |
| Atom * | copy () const |
| returns a copy of this query, owned by the caller | |
| bool | hasQuery () const |
| void | setQuery (QUERYATOM_QUERY *what) |
| replaces our current query with the value passed in | |
| QUERYATOM_QUERY * | getQuery () const |
| returns our current query | |
| void | expandQuery (QUERYATOM_QUERY *what, Queries::CompositeQueryType how=Queries::COMPOSITE_AND, bool maintainOrder=true) |
| expands our current query | |
| bool | Match (const Atom::ATOM_SPTR what) const |
returns true if we match Atom what | |
| bool | Match (Atom const *what) const |
| returns whether or not we match the argument | |
QueryAtom objects are derived from Atom objects, so they can be added to molecules and the like, but they have much fancier querying capabilities.
Definition at line 22 of file QueryAtom.h.
| typedef Queries::Query<int,Atom const *,true> RDKit::QueryAtom::QUERYATOM_QUERY |
| RDKit::QueryAtom::QueryAtom | ( | ) | [inline] |
Definition at line 26 of file QueryAtom.h.
| RDKit::QueryAtom::QueryAtom | ( | int | num | ) | [inline, explicit] |
Definition at line 27 of file QueryAtom.h.
| RDKit::QueryAtom::QueryAtom | ( | const Atom & | other | ) | [inline, explicit] |
Definition at line 28 of file QueryAtom.h.
| RDKit::QueryAtom::QueryAtom | ( | const QueryAtom & | other | ) | [inline] |
Definition at line 29 of file QueryAtom.h.
| RDKit::QueryAtom::~QueryAtom | ( | ) |
| Atom* RDKit::QueryAtom::copy | ( | ) | const [virtual] |
| bool RDKit::QueryAtom::hasQuery | ( | ) | const [inline, virtual] |
| void RDKit::QueryAtom::setQuery | ( | QUERYATOM_QUERY * | what | ) | [inline, virtual] |
replaces our current query with the value passed in
Reimplemented from RDKit::Atom.
Definition at line 40 of file QueryAtom.h.
| QUERYATOM_QUERY* RDKit::QueryAtom::getQuery | ( | ) | const [inline, virtual] |
returns our current query
Reimplemented from RDKit::Atom.
Definition at line 42 of file QueryAtom.h.
| void RDKit::QueryAtom::expandQuery | ( | QUERYATOM_QUERY * | what, | |
| Queries::CompositeQueryType | how = Queries::COMPOSITE_AND, |
|||
| bool | maintainOrder = true | |||
| ) | [virtual] |
expands our current query
| what | the Queries::Query to be added | |
| how | the operator to be used in the expansion | |
| maintainOrder | (optional) flags whether the relative order of the queries needs to be maintained, if this is false, the order is reversed Notes:
|
Reimplemented from RDKit::Atom.
| bool RDKit::QueryAtom::Match | ( | const Atom::ATOM_SPTR | what | ) | const [virtual] |
| bool RDKit::QueryAtom::Match | ( | Atom const * | what | ) | const [virtual] |
returns whether or not we match the argument
Notes:
Reimplemented from RDKit::Atom.
1.5.6