ADTF
|
Fast Access Index Type for the coders. More...
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. More... | |
bool | operator== (const CodecIndex &other) const |
Equal operator. More... | |
bool | operator!= (const CodecIndex &other) const |
Not equal operator. More... | |
size_t | getSize () const |
Get the Size of the codec index in element index count. More... | |
size_t | size () const |
Gets the Size of the codec index in element index count for generic programming. More... | |
bool | hasLayout () const |
Has layout set. More... | |
ElementType | getType () const |
Get the elements type if CodecIndex is valid. More... | |
const ElementLayout & | getLayout () const |
Get the Layout. More... | |
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.
Referenced by FactoryElement< ElementAccessType, ChildElementsType >::getArraySize(), FactoryElement< ElementAccessType, ChildElementsType >::isArray(), and CodecElement< ElementAccessType, ChildElementsType >::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(), adtf::mediadescription::osborn::get_value_as_variant(), and FactoryElement< ElementAccessType, ChildElementsType >::getType().
bool hasLayout | ( | ) | const |
Has layout set.
bool operator!= | ( | const CodecIndex & | other | ) | const |
Not equal operator.
other | The codec index to compare. |
bool operator== | ( | const CodecIndex & | other | ) | const |
Equal operator.
other | The codec index to compare. |
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.
Referenced by FactoryElement< ElementAccessType, ChildElementsType >::operator=().