![]() |
Chemical Data Processing Library Python API - Version 1.2.3
|
Inheritance diagram for CDPL.Math.Slice:Public Member Functions | |
| None | __init__ () |
| Initializes the Slice instance. | |
| None | __init__ (Slice s) |
| Initializes a copy of the Slice instance s. More... | |
| None | __init__ (int start, int stride, int size) |
| Initializes the Slice instance. More... | |
| int | getStart () |
| int | getStride () |
| int | getSize () |
| bool | isEmpty () |
| int | getIndex (int i) |
| Slice | assign (Slice s) |
Replaces the current state of self with a copy of the state of the Slice instance s. More... | |
| None | swap (Slice s) |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| bool | __eq__ (Slice s) |
Returns the result of the comparison operation self == s. More... | |
| bool | __ne__ (Slice s) |
Returns the result of the comparison operation self != s. More... | |
| int | __call__ (int i) |
| int | __getitem__ (int i) |
Properties | |
| objectID = property(getObjectID) | |
| start = property(getStart) | |
| stride = property(getStride) | |
| size = property(getSize) | |
| None CDPL.Math.Slice.__init__ | ( | Slice | s | ) |
Initializes a copy of the Slice instance s.
| s | The Slice instance to copy. |
| None CDPL.Math.Slice.__init__ | ( | int | start, |
| int | stride, | ||
| int | size | ||
| ) |
Initializes the Slice instance.
| start | |
| stride | |
| size |
| int CDPL.Math.Slice.getStart | ( | ) |
| int CDPL.Math.Slice.getStride | ( | ) |
| int CDPL.Math.Slice.getSize | ( | ) |
| bool CDPL.Math.Slice.isEmpty | ( | ) |
| int CDPL.Math.Slice.getIndex | ( | int | i | ) |
| i |
Replaces the current state of self with a copy of the state of the Slice instance s.
| s | The Slice instance to copy. |
| None CDPL.Math.Slice.swap | ( | Slice | s | ) |
| s |
| int CDPL.Math.Slice.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python Slice 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 Slice 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().
| bool CDPL.Math.Slice.__eq__ | ( | Slice | s | ) |
Returns the result of the comparison operation self == s.
| s | The Slice instance to be compared with. |
| bool CDPL.Math.Slice.__ne__ | ( | Slice | s | ) |
Returns the result of the comparison operation self != s.
| s | The Slice instance to be compared with. |
| int CDPL.Math.Slice.__call__ | ( | int | i | ) |
| i |
| int CDPL.Math.Slice.__getitem__ | ( | int | i | ) |
| i |