Chemical Data Processing Library Python API - Version 1.2.0
|
Public Member Functions | |
None | __init__ () |
Initializes the GaussianShapeSet instance. | |
None | __init__ (GaussianShapeSet list) |
Initializes a copy of the GaussianShapeSet instance list. More... | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
int | getSize () |
bool | isEmpty () |
None | resize (int num_elem, GaussianShape value) |
None | reserve (int num_elem) |
int | getCapacity () |
None | clear () |
GaussianShapeSet | assign (GaussianShapeSet array) |
Replaces the current state of self with a copy of the state of the GaussianShapeSet instance array. More... | |
None | assign (int num_elem, GaussianShape value) |
None | addElement (GaussianShape value) |
None | addElements (GaussianShapeSet values) |
None | insertElement (int idx, GaussianShape value) |
None | insertElements (int idx, int num_elem, GaussianShape value) |
None | insertElements (int index, GaussianShapeSet values) |
None | popLastElement () |
None | removeElement (int idx) |
None | removeElements (int begin_idx, int end_idx) |
GaussianShape | getFirstElement () |
GaussianShape | getLastElement () |
GaussianShape | getElement (int idx) |
None | setElement (int idx, GaussianShape value) |
None | __delitem__ (int idx) |
GaussianShape | __getitem__ (int idx) |
int | __len__ () |
None | __setitem__ (int index, GaussianShape value) |
bool | __eq__ (object list) |
Returns the result of the comparison operation self == list . More... | |
bool | __ne__ (object list) |
Returns the result of the comparison operation self != list . More... | |
Properties | |
objectID = property(getObjectID) | |
size = property(getSize) | |
None CDPL.Shape.GaussianShapeSet.__init__ | ( | GaussianShapeSet | list | ) |
Initializes a copy of the GaussianShapeSet instance list.
list | The GaussianShapeSet instance to copy. |
int CDPL.Shape.GaussianShapeSet.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python GaussianShapeSet 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 GaussianShapeSet 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()
.
int CDPL.Shape.GaussianShapeSet.getSize | ( | ) |
bool CDPL.Shape.GaussianShapeSet.isEmpty | ( | ) |
None CDPL.Shape.GaussianShapeSet.resize | ( | int | num_elem, |
GaussianShape | value | ||
) |
num_elem | |
value |
None CDPL.Shape.GaussianShapeSet.reserve | ( | int | num_elem | ) |
num_elem |
int CDPL.Shape.GaussianShapeSet.getCapacity | ( | ) |
GaussianShapeSet CDPL.Shape.GaussianShapeSet.assign | ( | GaussianShapeSet | array | ) |
Replaces the current state of self with a copy of the state of the GaussianShapeSet instance array.
array | The GaussianShapeSet instance to copy. |
None CDPL.Shape.GaussianShapeSet.assign | ( | int | num_elem, |
GaussianShape | value | ||
) |
num_elem | |
value |
None CDPL.Shape.GaussianShapeSet.addElement | ( | GaussianShape | value | ) |
value |
None CDPL.Shape.GaussianShapeSet.addElements | ( | GaussianShapeSet | values | ) |
values |
None CDPL.Shape.GaussianShapeSet.insertElement | ( | int | idx, |
GaussianShape | value | ||
) |
idx | |
value |
None CDPL.Shape.GaussianShapeSet.insertElements | ( | int | idx, |
int | num_elem, | ||
GaussianShape | value | ||
) |
idx | |
num_elem | |
value |
None CDPL.Shape.GaussianShapeSet.insertElements | ( | int | index, |
GaussianShapeSet | values | ||
) |
index | |
values |
None CDPL.Shape.GaussianShapeSet.removeElement | ( | int | idx | ) |
idx |
None CDPL.Shape.GaussianShapeSet.removeElements | ( | int | begin_idx, |
int | end_idx | ||
) |
begin_idx | |
end_idx |
GaussianShape CDPL.Shape.GaussianShapeSet.getFirstElement | ( | ) |
GaussianShape CDPL.Shape.GaussianShapeSet.getLastElement | ( | ) |
GaussianShape CDPL.Shape.GaussianShapeSet.getElement | ( | int | idx | ) |
idx |
None CDPL.Shape.GaussianShapeSet.setElement | ( | int | idx, |
GaussianShape | value | ||
) |
idx | |
value |
None CDPL.Shape.GaussianShapeSet.__delitem__ | ( | int | idx | ) |
idx |
GaussianShape CDPL.Shape.GaussianShapeSet.__getitem__ | ( | int | idx | ) |
idx |
int CDPL.Shape.GaussianShapeSet.__len__ | ( | ) |
None CDPL.Shape.GaussianShapeSet.__setitem__ | ( | int | index, |
GaussianShape | value | ||
) |
index | |
value |
bool CDPL.Shape.GaussianShapeSet.__eq__ | ( | object | list | ) |
Returns the result of the comparison operation self == list
.
list | The object instance to be compared with. |
bool CDPL.Shape.GaussianShapeSet.__ne__ | ( | object | list | ) |
Returns the result of the comparison operation self != list
.
list | The object instance to be compared with. |