A single match of a ConfGen.TorsionRule against a rotatable bond: the rule, the bond and the four atoms that span the torsion.
More...
A single match of a ConfGen.TorsionRule against a rotatable bond: the rule, the bond and the four atoms that span the torsion.
◆ __init__() [1/2]
Initializes a copy of the TorsionRuleMatch instance match.
- Parameters
-
| match | The TorsionRuleMatch instance to copy. |
◆ __init__() [2/2]
Constructs the TorsionRuleMatch instance.
- Parameters
-
| rule | The matched torsion rule. |
| bond | The rotatable bond. |
| atom1 | The first torsion atom (A in A-B-C-D). |
| atom2 | The second torsion atom (B). |
| atom3 | The third torsion atom (C). |
| atom4 | The fourth torsion atom (D). |
◆ getObjectID()
| int CDPL.ConfGen.TorsionRuleMatch.getObjectID |
( |
| ) |
|
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python TorsionRuleMatch 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 TorsionRuleMatch 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().
- Returns
- The numeric ID of the internally referenced C++ class instance.
◆ getAtoms()
| AtomArray CDPL.ConfGen.TorsionRuleMatch.getAtoms |
( |
| ) |
|
Returns the four torsion atoms (A, B, C, D).
- Returns
- A reference to a 4-element array of Chem.Atom* (A, B, C, D).
◆ getBond()
| Chem.Bond CDPL.ConfGen.TorsionRuleMatch.getBond |
( |
| ) |
|
Returns the rotatable bond at which the rule matched.
- Returns
- A reference to the bond.
◆ getRule()
Returns the matched torsion rule.
- Returns
- A reference to the rule.
◆ assign()
Replaces the current state of self with a copy of the state of the TorsionRuleMatch instance match.
- Parameters
-
| match | The TorsionRuleMatch instance to copy. |
- Returns
- self