ADTF
|
A DecoderElement to get values. More...
Public Types | |
using | base_type = FactoryElement< ElementAccessType, ChildElementsType > |
base type | |
using | self_type = DecoderElement< ElementAccessType, ChildElementsType > |
self type | |
using | access_type = typename ElementAccessType::access_type |
access type from concept template | |
using | child_elements_type = typename base_type::child_elements_type |
allowed container type | |
using | iterator_type = typename child_elements_type::iterator |
allowed iterator type | |
using | const_iterator_type = typename child_elements_type::const_iterator |
allowed const iterator type | |
Public Types inherited from FactoryElement< ElementAccessType, ChildElements< ElementAccessType > > | |
using | self_type = FactoryElement< ElementAccessType, ChildElements< ElementAccessType > > |
self type | |
using | access_type = typename ElementAccessType::access_type |
access type | |
using | child_elements_type = ChildElements< ElementAccessType > |
allowed container type | |
using | iterator_type = typename child_elements_type::iterator |
allowed iterator type | |
using | const_iterator_type = typename child_elements_type::const_iterator |
allowed const iterator type | |
Public Member Functions | |
DecoderElement ()=delete | |
CTOR. | |
template<typename T > | |
T | getValue () const |
Get the value as type T. More... | |
a_util::variant::Variant | getVariantValue () const |
Get the value as variant. More... | |
std::string | getStringValue () const |
Get the value as string. More... | |
void | getRawValue (void *value, size_t value_size) const |
Get the as copy to the value buffer. More... | |
const void * | getAddress () const |
Get the address of the element. More... | |
self_type | getChildElement (const std::string &name) const |
Get the child element with the given name. More... | |
self_type | getArrayElement (size_t array_pos=0) const |
Get the array element of the given array_pos . More... | |
Public Member Functions inherited from FactoryElement< ElementAccessType, ChildElements< ElementAccessType > > | |
FactoryElement ()=delete | |
no CTOR | |
FactoryElement (FactoryElement &&other) | |
move CTOR More... | |
FactoryElement (const FactoryElement &other) | |
copy CTOR More... | |
FactoryElement & | operator= (FactoryElement &&other) |
copy assignment operator More... | |
FactoryElement & | operator= (const FactoryElement &other) |
move assignment operator More... | |
~FactoryElement ()=default | |
DTOR. | |
const CodecIndex & | getIndex () const |
Get the codec index of the element. More... | |
size_t | getArraySize () const |
Get the array size. More... | |
ddl::codec::ElementType | getType () const |
Get the type of the element. More... | |
std::string | getFullName () const |
Get the full name of the element. More... | |
std::string | getName () const |
Get the name of the element If the element is an array you get the elements array name representation: "element_name[0]" or element_name[1] ... More... | |
std::string | getBaseName () const |
Get the base name of the element. More... | |
bool | isArray () const |
Get array information. More... | |
bool | hasChildren () const |
Get children information. More... | |
const child_elements_type & | getChildElements () const |
Get the ChildElements. More... | |
self_type | getChildElement (const std::string &name) const |
Get the child element with the given name. More... | |
self_type | getArrayElement (size_t array_pos=0) const |
Get the array element of the given array_pos . More... | |
bool | isValid () const |
Get validation indormation. More... | |
Public Attributes | |
friend | child_elements_type |
friend declaration for child_elements_type | |
friend | iterator_type |
friend declaration for iterator_type | |
friend | const_iterator_type |
friend declaration for const_iterator_type | |
friend | access_type |
friend declaration for access_type | |
friend | base_type |
friend declaration for base_type | |
friend | CodecElement< ElementAccessType, ChildElementsType > |
friend declaration for CodecElement | |
Public Attributes inherited from FactoryElement< ElementAccessType, ChildElements< ElementAccessType > > | |
friend | access_type |
friend declaration for access_type | |
friend | child_elements_type |
friend declaration for child_elements_type | |
friend | iterator_type |
friend declaration for iterator_type | |
friend | const_iterator_type |
friend declaration for child_elements_type | |
friend | DecoderElement< ElementAccessType, ChildElementsType > |
friend declaration for DecoderElement | |
friend | CodecElement< ElementAccessType, ChildElementsType > |
friend declaration for CodecElement | |
Private Member Functions | |
DecoderElement (CodecIndex &&index, size_t end_element_index, size_t child_elements_count, access_type &access) | |
DecoderElement (CodecIndex &&index, size_t end_element_index, access_type &access) | |
DecoderElement (const std::string &element_name, access_type &access) | |
DecoderElement (CodecIndex &&index, access_type &access) | |
DecoderElement (access_type &access) | |
void | next () |
A DecoderElement to get values.
ElementAccessType | The element access concept type. (see concept templates DecoderElementAccess, CodecElementAccess) |
Definition at line 938 of file codec_iterator.h.
|
inline |
Get the address of the element.
Definition at line 1022 of file codec_iterator.h.
References FactoryElement< ElementAccessType, ChildElementsType >::getIndex().
|
inline |
Get the array element of the given array_pos
.
array_pos | The array pos of the element to retrieve |
Definition at line 1043 of file codec_iterator.h.
References FactoryElement< ElementAccessType, ChildElementsType >::getIndex().
|
inline |
Get the child element with the given name.
name | Name of the child element. |
Definition at line 1031 of file codec_iterator.h.
References FactoryElement< ElementAccessType, ChildElementsType >::getFullName().
|
inline |
Get the as copy to the value
buffer.
value | The value buffer to copy to |
value_size | The size of the value buffer (if 0 its unsafe usage without size check!, the size is only retrieved from the codec information) |
Definition at line 1013 of file codec_iterator.h.
References FactoryElement< ElementAccessType, ChildElementsType >::getIndex().
|
inline |
Get the value as string.
Definition at line 1003 of file codec_iterator.h.
References FactoryElement< ElementAccessType, ChildElementsType >::getIndex().
|
inline |
Get the value as type T.
T | Type of the value to return |
Definition at line 986 of file codec_iterator.h.
References FactoryElement< ElementAccessType, ChildElementsType >::getIndex().
|
inline |
Get the value as variant.
Definition at line 995 of file codec_iterator.h.
References FactoryElement< ElementAccessType, ChildElementsType >::getIndex().