Chemical Data Processing Library Python API - Version 1.1.1
Public Member Functions | Properties | List of all members
CDPL.ConfGen.TorsionCategory.CategorySequence Class Reference
+ Inheritance diagram for CDPL.ConfGen.TorsionCategory.CategorySequence:

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)
 

Constructor & Destructor Documentation

◆ __init__()

None CDPL.ConfGen.TorsionCategory.CategorySequence.__init__ ( CategorySequence  cat)

Initializes a copy of the CategorySequence instance cat.

Parameters
catThe CategorySequence instance to copy.

Member Function Documentation

◆ getObjectID()

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().

Returns
The numeric ID of the internally referenced C++ class instance.

◆ __getitem__()

TorsionCategory CDPL.ConfGen.TorsionCategory.CategorySequence.__getitem__ ( int  idx)
Parameters
idx
Returns

◆ __delitem__()

None CDPL.ConfGen.TorsionCategory.CategorySequence.__delitem__ ( int  idx)
Parameters
idx

◆ __len__()

int CDPL.ConfGen.TorsionCategory.CategorySequence.__len__ ( )
Returns