A substructure query. More...
#include <openbabel/query.h>
Public Member Functions | |
~OBQuery () | |
unsigned int | NumAtoms () const |
unsigned int | NumBonds () const |
const std::vector< OBQueryAtom * > & | GetAtoms () const |
const std::vector< OBQueryBond * > & | GetBonds () const |
OBQueryBond * | GetBond (OBQueryAtom *begin, OBQueryAtom *end) const |
void | AddAtom (OBQueryAtom *atom) |
void | AddBond (OBQueryBond *bond) |
Protected Attributes | |
std::vector< OBQueryAtom * > | m_atoms |
std::vector< OBQueryBond * > | m_bonds |
A substructure query.
See Substructure Search for more information.
~OBQuery | ( | ) | [inline] |
unsigned int NumAtoms | ( | ) | const [inline] |
unsigned int NumBonds | ( | ) | const [inline] |
const std::vector<OBQueryAtom*>& GetAtoms | ( | ) | const [inline] |
Referenced by OpenBabel::CompileAutomorphismQuery(), and OpenBabel::CompileMoleculeQuery().
const std::vector<OBQueryBond*>& GetBonds | ( | ) | const [inline] |
OBQueryBond* GetBond | ( | OBQueryAtom * | begin, |
OBQueryAtom * | end | ||
) | const [inline] |
begin
and end
. If there is no bond between begin
and end
, this function returns 0. void AddAtom | ( | OBQueryAtom * | atom ) | [inline] |
Add a query atom to the query. This function steals the pointer.
Referenced by OpenBabel::CompileAutomorphismQuery(), and OpenBabel::CompileMoleculeQuery().
void AddBond | ( | OBQueryBond * | bond ) | [inline] |
Add a query atom to the query. This function steals the pointer.
Referenced by OpenBabel::CompileAutomorphismQuery(), and OpenBabel::CompileMoleculeQuery().
std::vector<OBQueryAtom*> m_atoms [protected] |
std::vector<OBQueryBond*> m_bonds [protected] |