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