Bond in an OBQuery.
More...
#include <openbabel/query.h>
List of all members.
Detailed Description
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.
- See also:
- OBQuery OBQueryAtom OBIsomorphismMapper
- Since:
- version 2.3
Constructor & Destructor Documentation
Member Function Documentation
unsigned int GetIndex |
( |
) |
const [inline] |
Get the index for this query bonds. Query bonds are indexed starting from 0.
virtual bool Matches |
( |
const OBBond * |
bond ) |
const [inline, virtual] |
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.
- Parameters:
-
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: