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