ADTF
|
Public Types | |
using | self_type = FactoryElement< ElementAccessType, ChildElementsType > |
self type | |
using | access_type = typename ElementAccessType::access_type |
access type | |
using | child_elements_type = ChildElementsType |
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 | |
FactoryElement ()=delete | |
no CTOR | |
FactoryElement (FactoryElement &&other) | |
move CTOR More... | |
FactoryElement & | operator= (FactoryElement &&other) |
copy assignment operator More... | |
FactoryElement (const FactoryElement &other) | |
copy CTOR 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 child_elements_type | |
friend | access_type |
friend declaration for access_type | |
friend | DecoderElement< ElementAccessType, ChildElementsType > |
friend declaration for DecoderElement | |
friend | CodecElement< ElementAccessType, ChildElementsType > |
friend declaration for CodecElement | |
Private Member Functions | |
FactoryElement (CodecIndex &&index, size_t end_element_index, size_t child_elements_count, access_type &access) | |
FactoryElement (CodecIndex &&index, size_t end_element_index, access_type &access) | |
FactoryElement (const std::string &element_name, access_type &access) | |
FactoryElement (CodecIndex &&index, access_type &access) | |
FactoryElement (access_type &access) | |
void | next () |
access_type & | getAccess () const |
void | resetIndex (CodecIndex &&codec_index) |
Private Attributes | |
CodecIndex | _codec_index |
size_t | _end_element_index |
child_elements_type | _child_elements |
access_type & | _access |
ElementAccessType | The element access concept type. (see concept templates FactoryElementAccess, DecoderElementAccess, CodecElementAccess) |
ChildElementsType | The child elements type |
Definition at line 542 of file codec_iterator.h.
|
inline |
|
inline |
|
inline |
Get the array element of the given array_pos
.
array_pos | The array pos of the element to retrieve |
Definition at line 731 of file codec_iterator.h.
|
inline |
Get the array size.
Definition at line 642 of file codec_iterator.h.
References ElementLayoutBase::array_size, and CodecIndex::getLayout().
|
inline |
Get the base name of the element.
If the element is an array you get the elements base name representation : "element_name" for each array element. If the element is not an array you get the elements name representation is also the base name representation: "element_name" .
Definition at line 683 of file codec_iterator.h.
|
inline |
Get the child element with the given name.
name | Name of the child element. |
Definition at line 719 of file codec_iterator.h.
References FactoryElement< ElementAccessType, ChildElementsType >::getFullName().
|
inline |
Get the ChildElements.
std::runtime_error | if index is invalid |
Definition at line 710 of file codec_iterator.h.
|
inline |
Get the full name of the element.
If the element is an array you get the elements array name representation: "main_element.element_name[0]" or main_element.element_name[1] ... etc. If the element is not an array you get the elements name representation: "main_element.element_name".
Definition at line 661 of file codec_iterator.h.
Referenced by FactoryElement< ElementAccessType, ChildElementsType >::getChildElement(), and DecoderElement< ElementAccessType, ChildElementsType >::getChildElement().
|
inline |
Get the codec index of the element.
Definition at line 634 of file codec_iterator.h.
Referenced by DecoderElement< ElementAccessType, ChildElementsType >::getAddress(), DecoderElement< ElementAccessType, ChildElementsType >::getArrayElement(), DecoderElement< ElementAccessType, ChildElementsType >::getRawValue(), DecoderElement< ElementAccessType, ChildElementsType >::getStringValue(), DecoderElement< ElementAccessType, ChildElementsType >::getValue(), and DecoderElement< ElementAccessType, ChildElementsType >::getVariantValue().
|
inline |
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] ...
etc. If the element is not an array you get the elements name representation: "element_name".
Definition at line 672 of file codec_iterator.h.
|
inline |
Get the type of the element.
Definition at line 650 of file codec_iterator.h.
References CodecIndex::getType().
|
inline |
Get children information.
Definition at line 701 of file codec_iterator.h.
|
inline |
Get array information.
Definition at line 692 of file codec_iterator.h.
References ElementLayoutBase::array_size, and CodecIndex::getLayout().
|
inline |
Get validation indormation.
Definition at line 740 of file codec_iterator.h.
|
inline |
move assignment operator
other | the element to copy |
Definition at line 618 of file codec_iterator.h.
|
inline |
copy assignment operator
other | the element to move |
Definition at line 596 of file codec_iterator.h.
References CodecIndex::size().