ADTF
3.18.2
|
The element index at the CodecIndex. More...
Public Member Functions | |
ElementIndex ()=default | |
CTOR. | |
ElementIndex (size_t element_index) | |
CTOR. More... | |
ElementIndex (size_t element_index, size_t array_pos) | |
CTOR. More... | |
bool | operator== (const ElementIndex &other) const |
equal operator. More... | |
bool | operator!= (const ElementIndex &other) const |
Not equal operator. More... | |
size_t | getIndex () const |
Get the Index. More... | |
size_t | getArrayPos () const |
Get the Array Pos. More... | |
ElementIndex & | operator++ () |
Incrememts the index, keeps array pos. More... | |
Static Public Attributes | |
static constexpr size_t | _invalid_element_index = static_cast<size_t>(-1) |
Invalid element index. | |
static constexpr size_t | _invalid_array_pos = static_cast<size_t>(-1) |
Invalid array pos. | |
Private Attributes | |
size_t | _element_index = _invalid_element_index |
size_t | _array_pos = _invalid_array_pos |
The element index at the CodecIndex.
Definition at line 138 of file codec_index.h.
ElementIndex | ( | size_t | element_index | ) |
CTOR.
element_index | The index to set, array_pos 0 is forced |
ElementIndex | ( | size_t | element_index, |
size_t | array_pos | ||
) |
CTOR.
element_index | The index to set |
array_pos | The array_pos to set |
size_t getArrayPos | ( | ) | const |
Get the Array Pos.
size_t getIndex | ( | ) | const |
Get the Index.
bool operator!= | ( | const ElementIndex & | other | ) | const |
Not equal operator.
other | The element index to compare. |
ElementIndex& operator++ | ( | ) |
Incrememts the index, keeps array pos.
bool operator== | ( | const ElementIndex & | other | ) | const |
equal operator.
other | The element index to compare. |