|
static size_t | handlePythonIndex (long _index, size_t n) |
| Translate received index from python, where negative values have a special meaning (i.e. index -1 means index n-1), to C++ index domain. More...
|
|
◆ handlePythonIndex()
static size_t PyHeliosUtils::handlePythonIndex |
( |
long |
_index, |
|
|
size_t |
n |
|
) |
| |
|
inlinestatic |
Translate received index from python, where negative values have a special meaning (i.e. index -1 means index n-1), to C++ index domain.
- Parameters
-
_index | The index itself |
n | The number of elements so n-1 would be the last valid index |
The documentation for this class was generated from the following file: