Chemical Data Processing Library Python API - Version 1.1.1
|
Classes | |
class | AngleEntry |
Public Member Functions | |
None | __init__ () |
Initializes the TorsionRule instance. | |
None | __init__ (TorsionRule rule) |
Initializes a copy of the TorsionRule instance rule. More... | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
TorsionRule | assign (TorsionRule rule) |
Replaces the current state of self with a copy of the state of the TorsionRule instance rule. More... | |
str | getMatchPatternString () |
None | setMatchPatternString (str ptn_str) |
Chem.MolecularGraph | getMatchPattern () |
None | setMatchPattern (Chem.MolecularGraph ptn) |
int | getNumAngles () |
AngleEntry | getAngle (int idx) |
None | removeAngle (int idx) |
None | addAngle (AngleEntry ang_entry) |
None | addAngle (float ang, float tol1, float tol2, float score) |
None | clear () |
None | swap (TorsionRule rule) |
int | __len__ () |
AngleEntry | __getitem__ (int idx) |
None | __delitem__ (int idx) |
None | __iadd__ (AngleEntry ang_entry) |
Performs the in-place addition operation self += ang_entry . More... | |
Properties | |
objectID = property(getObjectID) | |
numAngles = property(getNumAngles) | |
matchPatternString = property(getMatchPatternString, setMatchPatternString) | |
matchPattern = property(getMatchPattern, setMatchPattern) | |
None CDPL.ConfGen.TorsionRule.__init__ | ( | TorsionRule | rule | ) |
Initializes a copy of the TorsionRule instance rule.
rule | The TorsionRule instance to copy. |
int CDPL.ConfGen.TorsionRule.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python TorsionRule 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 TorsionRule 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()
.
TorsionRule CDPL.ConfGen.TorsionRule.assign | ( | TorsionRule | rule | ) |
Replaces the current state of self with a copy of the state of the TorsionRule instance rule.
rule | The TorsionRule instance to copy. |
str CDPL.ConfGen.TorsionRule.getMatchPatternString | ( | ) |
None CDPL.ConfGen.TorsionRule.setMatchPatternString | ( | str | ptn_str | ) |
ptn_str |
Chem.MolecularGraph CDPL.ConfGen.TorsionRule.getMatchPattern | ( | ) |
None CDPL.ConfGen.TorsionRule.setMatchPattern | ( | Chem.MolecularGraph | ptn | ) |
ptn |
int CDPL.ConfGen.TorsionRule.getNumAngles | ( | ) |
AngleEntry CDPL.ConfGen.TorsionRule.getAngle | ( | int | idx | ) |
idx |
None CDPL.ConfGen.TorsionRule.removeAngle | ( | int | idx | ) |
idx |
None CDPL.ConfGen.TorsionRule.addAngle | ( | AngleEntry | ang_entry | ) |
ang_entry |
None CDPL.ConfGen.TorsionRule.addAngle | ( | float | ang, |
float | tol1, | ||
float | tol2, | ||
float | score | ||
) |
ang | |
tol1 | |
tol2 | |
score |
None CDPL.ConfGen.TorsionRule.swap | ( | TorsionRule | rule | ) |
rule |
int CDPL.ConfGen.TorsionRule.__len__ | ( | ) |
AngleEntry CDPL.ConfGen.TorsionRule.__getitem__ | ( | int | idx | ) |
idx |
None CDPL.ConfGen.TorsionRule.__delitem__ | ( | int | idx | ) |
idx |
None CDPL.ConfGen.TorsionRule.__iadd__ | ( | AngleEntry | ang_entry | ) |
Performs the in-place addition operation self += ang_entry
.
ang_entry | Specifies the second addend. |