Chemical Data Processing Library Python API - Version 1.1.1
|
Public Member Functions | |
None | __init__ (RuleSequence rules) |
Initializes a copy of the RuleSequence instance rules. More... | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
TorsionRule | __getitem__ (int idx) |
None | __delitem__ (int idx) |
int | __len__ () |
Properties | |
objectID = property(getObjectID) | |
None CDPL.ConfGen.TorsionCategory.RuleSequence.__init__ | ( | RuleSequence | rules | ) |
Initializes a copy of the RuleSequence instance rules.
rules | The RuleSequence instance to copy. |
int CDPL.ConfGen.TorsionCategory.RuleSequence.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python RuleSequence 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 RuleSequence 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.TorsionCategory.RuleSequence.__getitem__ | ( | int | idx | ) |
idx |
None CDPL.ConfGen.TorsionCategory.RuleSequence.__delitem__ | ( | int | idx | ) |
idx |
int CDPL.ConfGen.TorsionCategory.RuleSequence.__len__ | ( | ) |