#include <openbabel/query.h>
Inherited by OBAutomorphismQueryAtom.
Atom in an OBQuery.
The OBQueryAtom class defines an interface for query atoms. The class provides some general methods and properties to access the topology information. The Matches method can be reimplemented in subclasses to get custom matching behavior.
The default Matches implementation only checks the atomic number.
See Substructure Search for more information.
- See also
- OBQuery OBQueryBond OBIsomorphismMapper
- Since
- version 2.3
◆ OBQueryAtom()
OBQueryAtom |
( |
int |
atomicNum = 6 , |
|
|
bool |
isInRing = false , |
|
|
bool |
isAromatic = false |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
atomicNum | The atomic number for this query atom. |
isInRing | Specify wether the query atom is in a ring. Default is false. |
isAromatic | Specify wether the query atom is aromatic. Default is false. |
◆ ~OBQueryAtom()
◆ GetIndex()
unsigned int GetIndex |
( |
| ) |
const |
|
inline |
Get the index for this query atom. Atoms are indexed starting from 0. This method is used by OBIsomorphismMapper implementations.
◆ GetBonds()
◆ GetNbrs()
◆ Matches()
virtual bool Matches |
( |
const OBAtom * |
atom | ) |
const |
|
inlinevirtual |
This is the match method to verify if an OBQueryAtom and OBAtom class match. The default implementation only checks if the atomic numbers match. Reimplement this method in a subclass for more advances matching. This method is used by OBIsomorphismMapper implementations.
- Parameters
-
◆ OBQuery
◆ OBQueryBond
◆ m_index
◆ m_atomicNum
◆ m_isInRing
◆ m_isAromatic
◆ m_bonds
◆ m_nbrs
The documentation for this class was generated from the following file: