Fast Access Index Type for the coders. More...
#include <codec_index.h>
Classes | |
class | ElementIndex |
The element index at the CodecIndex. More... | |
Public Member Functions | |
CodecIndex ()=default | |
Construct a new Codec Index. | |
const ElementIndex & | operator[] (size_t pos) const |
Access operator to retrieve a elment index on the given pos. | |
bool | operator== (const CodecIndex &other) const |
Equal operator. | |
bool | operator!= (const CodecIndex &other) const |
Not equal operator. | |
size_t | getSize () const |
Get the Size of the codec index in element index count. | |
size_t | size () const |
Gets the Size of the codec index in element index count for generic programming. | |
bool | hasLayout () const |
Has layout set. | |
ElementType | getType () const |
Get the elements type if CodecIndex is valid. | |
const ElementLayout & | getLayout () const |
Get the Layout. | |
Private Member Functions | |
CodecIndex (const CodecIndex &codec_index, ElementIndex index) | |
CodecIndex (ElementIndex index) | |
CodecIndex (const CodecIndex &codec_index, size_t count, ElementIndex index) | |
CodecIndex (const std::vector< ElementIndex > &indexes) | |
CodecIndex (ElementIndex index, const ElementLayout &layout) | |
CodecIndex (const CodecIndex &codec_index, size_t count, ElementIndex index, const ElementLayout &layout) | |
CodecIndex & | operator++ () |
CodecIndex | operator++ (int) |
void | setLayout (const ElementLayout &layout) |
void | addElementIndex (ElementIndex index) |
CodecIndex::ElementIndex | back () const noexcept |
CodecIndex | getIndexForArrayPos (size_t array_pos) const |
Private Attributes | |
std::vector< ElementIndex > | _indices = {} |
ElementLayout | _layout = {} |
bool | _layout_valid = {} |
Fast Access Index Type for the coders.
The Codec Index ist a vector of element indexes {{[element_index][array_pos]},{[element_sub_index][array_pos]}} pairs to access the elements of one level in a fast way. You can access leafs and elements at each level.
Definition at line 132 of file codec_index.h.
const ElementLayout & getLayout | ( | ) | const |
Get the Layout.
References CodecIndex().
Referenced by CodecElement< CodecElementAccess< Codec > >::reset().
size_t getSize | ( | ) | const |
Get the Size of the codec index in element index count.
ElementType getType | ( | ) | const |
Get the elements type if CodecIndex is valid.
Referenced by LeafCodecIndex::checkLeafLayout(), and adtf::mediadescription::osborn::get_value_as_variant().
bool hasLayout | ( | ) | const |
Has layout set.
bool operator!= | ( | const CodecIndex & | other | ) | const |
Not equal operator.
other | The codec index to compare. |
References CodecIndex().
bool operator== | ( | const CodecIndex & | other | ) | const |
Equal operator.
other | The codec index to compare. |
References CodecIndex().
const ElementIndex & operator[] | ( | size_t | pos | ) | const |
Access operator to retrieve a elment index on the given pos.
pos | Position of the element index to retrieve. |
size_t size | ( | ) | const |
Gets the Size of the codec index in element index count for generic programming.
|
private |
Definition at line 297 of file codec_index.h.
|
private |
Definition at line 298 of file codec_index.h.
|
private |
Definition at line 299 of file codec_index.h.