![]() |
Chemical Data Processing Library Python API - Version 1.2.3
|
Inheritance diagram for CDPL.ConfGen.TorsionRuleMatcher:Public Member Functions | |
| None | __init__ () |
| Initializes the TorsionRuleMatcher instance. | |
| None | __init__ (TorsionLibrary lib) |
| Initializes the TorsionRuleMatcher instance. More... | |
| None | findUniqueMappingsOnly (bool unique) |
| bool | findUniqueMappingsOnly () |
| None | findAllRuleMappings (bool all) |
| bool | findAllRuleMappings () |
| None | stopAtFirstMatchingRule (bool stop) |
| bool | stopAtFirstMatchingRule () |
| None | setTorsionLibrary (TorsionLibrary lib) |
| TorsionLibrary | getTorsionLibrary () |
| int | getNumMatches () |
| Returns the number of stored torsion rule matches found by calls to findMatches(). More... | |
| TorsionRuleMatch | getMatch (int idx) |
| Returns a reference to the stored torsion rule match object at index idx. More... | |
| bool | findMatches (Chem.Bond bond, Chem.MolecularGraph molgraph, bool append=False) |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| TorsionRuleMatch | __getitem__ (int idx) |
| int | __len__ () |
Properties | |
| objectID = property(getObjectID) | |
| numMatches = property(getNumMatches) | |
| uniqueMappingsOnly = property(findUniqueMappingsOnly, findUniqueMappingsOnly) | |
| allRuleMappings = property(findAllRuleMappings, findAllRuleMappings) | |
| onlyFirstMatchingRule = property(stopAtFirstMatchingRule, stopAtFirstMatchingRule) | |
| torsionLibrary = property(getTorsionLibrary, setTorsionLibrary) | |
| None CDPL.ConfGen.TorsionRuleMatcher.__init__ | ( | TorsionLibrary | lib | ) |
Initializes the TorsionRuleMatcher instance.
| lib |
| None CDPL.ConfGen.TorsionRuleMatcher.findUniqueMappingsOnly | ( | bool | unique | ) |
| unique |
| bool CDPL.ConfGen.TorsionRuleMatcher.findUniqueMappingsOnly | ( | ) |
| None CDPL.ConfGen.TorsionRuleMatcher.findAllRuleMappings | ( | bool | all | ) |
| all |
| bool CDPL.ConfGen.TorsionRuleMatcher.findAllRuleMappings | ( | ) |
| None CDPL.ConfGen.TorsionRuleMatcher.stopAtFirstMatchingRule | ( | bool | stop | ) |
| stop |
| bool CDPL.ConfGen.TorsionRuleMatcher.stopAtFirstMatchingRule | ( | ) |
| None CDPL.ConfGen.TorsionRuleMatcher.setTorsionLibrary | ( | TorsionLibrary | lib | ) |
| lib |
| TorsionLibrary CDPL.ConfGen.TorsionRuleMatcher.getTorsionLibrary | ( | ) |
| int CDPL.ConfGen.TorsionRuleMatcher.getNumMatches | ( | ) |
Returns the number of stored torsion rule matches found by calls to findMatches().
| TorsionRuleMatch CDPL.ConfGen.TorsionRuleMatcher.getMatch | ( | int | idx | ) |
Returns a reference to the stored torsion rule match object at index idx.
| idx | The zero-based index of the torsion rule match object to return. |
| Base.IndexError | if no torsion rule matches are available or idx is not in the range [0, getNumMatches() - 1]. |
| bool CDPL.ConfGen.TorsionRuleMatcher.findMatches | ( | Chem.Bond | bond, |
| Chem.MolecularGraph | molgraph, | ||
| bool | append = False |
||
| ) |
| bond | |
| molgraph | |
| append |
| int CDPL.ConfGen.TorsionRuleMatcher.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python TorsionRuleMatcher instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b thus cannot tell reliably whether the two TorsionRuleMatcher instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID().
| TorsionRuleMatch CDPL.ConfGen.TorsionRuleMatcher.__getitem__ | ( | int | idx | ) |
| idx |
| int CDPL.ConfGen.TorsionRuleMatcher.__len__ | ( | ) |