Open Babel
3.0
|
#include <openbabel/query.h>
Public Member Functions | |
OBQueryBond (OBQueryAtom *begin, OBQueryAtom *end, int order=1, bool aromatic=false) | |
virtual | ~OBQueryBond () |
unsigned int | GetIndex () const |
OBQueryAtom * | GetBeginAtom () const |
OBQueryAtom * | GetEndAtom () const |
virtual bool | Matches (const OBBond *bond) const |
Protected Attributes | |
unsigned int | m_index |
OBQueryAtom * | m_begin |
OBQueryAtom * | m_end |
unsigned int | m_order |
bool | m_aromatic |
Friends | |
class | OBQuery |
Bond in an OBQuery.
The OBQueryBond class defines an interface for query bonds. 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 if the bonds are both aromatic, otherwise the bond orders are compared.
See Substructure Search for more information.
|
inline |
Constructor.
|
inlinevirtual |
|
inline |
Get the index for this query bonds. Query bonds are indexed starting from 0.
|
inline |
Get the begin atom.
|
inline |
Get the end atom.
|
inlinevirtual |
This is the match method to verify if an OBQueryBond and OBBond class match. The default implementation checks if both bonds are aromatic and compares the bond orders otherwise. Reimplement this method in a subclass for more advances matching. This method is used by OBIsomorphismMapper implementations.
bond | The OBBond object to compare this OBQueryBond with. |
|
friend |
|
protected |
Referenced by OBQuery::AddBond().
|
protected |
|
protected |
|
protected |
|
protected |