A data type for the storage of Chem.ElectronSystem objects.
More...
A data type for the storage of Chem.ElectronSystem objects.
◆ __init__()
Initializes a copy of the ElectronSystemList instance list.
- Parameters
-
list | The ElectronSystemList instance to copy. |
◆ getObjectID()
int CDPL.Chem.ElectronSystemList.getObjectID |
( |
| ) |
|
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python ElectronSystemList 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 ElectronSystemList 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.
◆ getSize()
int CDPL.Chem.ElectronSystemList.getSize |
( |
| ) |
|
◆ isEmpty()
bool CDPL.Chem.ElectronSystemList.isEmpty |
( |
| ) |
|
◆ resize()
None CDPL.Chem.ElectronSystemList.resize |
( |
int |
num_elem, |
|
|
ElectronSystem |
value |
|
) |
| |
◆ reserve()
None CDPL.Chem.ElectronSystemList.reserve |
( |
int |
num_elem | ) |
|
◆ getCapacity()
int CDPL.Chem.ElectronSystemList.getCapacity |
( |
| ) |
|
◆ assign() [1/2]
Replaces the current state of self with a copy of the state of the ElectronSystemList instance array.
- Parameters
-
array | The ElectronSystemList instance to copy. |
- Returns
- self
◆ assign() [2/2]
None CDPL.Chem.ElectronSystemList.assign |
( |
int |
num_elem, |
|
|
ElectronSystem |
value |
|
) |
| |
◆ addElement()
◆ addElements()
◆ insertElement()
None CDPL.Chem.ElectronSystemList.insertElement |
( |
int |
idx, |
|
|
ElectronSystem |
value |
|
) |
| |
◆ insertElements() [1/2]
None CDPL.Chem.ElectronSystemList.insertElements |
( |
int |
idx, |
|
|
int |
num_elem, |
|
|
ElectronSystem |
value |
|
) |
| |
◆ insertElements() [2/2]
◆ removeElement()
None CDPL.Chem.ElectronSystemList.removeElement |
( |
int |
idx | ) |
|
◆ removeElements()
None CDPL.Chem.ElectronSystemList.removeElements |
( |
int |
begin_idx, |
|
|
int |
end_idx |
|
) |
| |
◆ getFirstElement()
◆ getLastElement()
◆ getElement()
◆ setElement()
None CDPL.Chem.ElectronSystemList.setElement |
( |
int |
idx, |
|
|
ElectronSystem |
value |
|
) |
| |
◆ __delitem__()
None CDPL.Chem.ElectronSystemList.__delitem__ |
( |
int |
idx | ) |
|
◆ __getitem__()
◆ __len__()
int CDPL.Chem.ElectronSystemList.__len__ |
( |
| ) |
|
◆ __setitem__()
None CDPL.Chem.ElectronSystemList.__setitem__ |
( |
int |
index, |
|
|
ElectronSystem |
value |
|
) |
| |
◆ __eq__()
bool CDPL.Chem.ElectronSystemList.__eq__ |
( |
object |
list | ) |
|
Returns the result of the comparison operation self == list
.
- Parameters
-
list | The object instance to be compared with. |
- Returns
- The result of the comparison operation.
◆ __ne__()
bool CDPL.Chem.ElectronSystemList.__ne__ |
( |
object |
list | ) |
|
Returns the result of the comparison operation self != list
.
- Parameters
-
list | The object instance to be compared with. |
- Returns
- The result of the comparison operation.