A FactoryElement.
More...
#include <codec_iterator.h>
Inherited by ddl::codec::DecoderElement< ElementAccessType, ChildElementsType >.
|
|
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 |
| |
|
using | const_iterator_type = typename child_elements_type::const_iterator |
| | allowed const iterator type
|
| |
|
|
| FactoryElement ()=delete |
| | no CTOR
|
| |
| | FactoryElement (FactoryElement &&other) |
| | move CTOR
|
| |
| FactoryElement & | operator= (FactoryElement &&other) |
| | copy assignment operator
|
| |
| | FactoryElement (const FactoryElement &other) |
| | copy CTOR
|
| |
| FactoryElement & | operator= (const FactoryElement &other) |
| | move assignment operator
|
| |
|
| ~FactoryElement ()=default |
| | DTOR.
|
| |
| const CodecIndex & | getIndex () const |
| | Get the codec index of the element.
|
| |
| size_t | getArraySize () const |
| | Get the array size.
|
| |
| ddl::codec::ElementType | getType () const |
| | Get the type of the element.
|
| |
| std::string | getFullName () const |
| | 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".
|
| |
| 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] ... etc. If the element is not an array you get the elements name representation: "element_name".
|
| |
| std::string | getBaseName () const |
| | 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" .
|
| |
| bool | isArray () const |
| | Get array information.
|
| |
| bool | hasChildren () const |
| | Get children information.
|
| |
| const child_elements_type & | getChildElements () const |
| | Get the ChildElements.
|
| |
| self_type | getChildElement (std::string_view path) const |
| | Get the child element with the given name.
|
| |
| self_type | getArrayElement (size_t array_pos=0) const |
| | Get the array element of the given array_pos.
|
| |
| bool | isValid () const |
| | Get validation indormation.
|
| |
|
|
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
|
| |
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
class ddl::codec::FactoryElement< ElementAccessType, ChildElementsType >
A FactoryElement.
- Template Parameters
-
◆ iterator_type
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
◆ FactoryElement() [1/2]
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
◆ FactoryElement() [2/2]
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
◆ getArrayElement()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
Get the array element of the given array_pos.
- Parameters
-
| array_pos | The array pos of the element to retrieve |
- Returns
- self_type
◆ getArraySize()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
Get the array size.
- Returns
- size_t
◆ getBaseName()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
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" .
- Returns
- std::string
◆ getChildElement()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
Get the child element with the given name.
- Parameters
-
| path | Name of the child element. |
- Returns
- self_type
◆ getChildElements()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
◆ getFullName()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
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".
- Returns
- std::string
◆ getIndex()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
Get the codec index of the element.
- Returns
- const CodecIndex&
◆ getName()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
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".
- Returns
- std::string
◆ getType()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
◆ hasChildren()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
Get children information.
- Returns
- true has children
-
false has no children
◆ isArray()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
Get array information.
- Returns
- true is an array
-
false is no array
◆ isValid()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
Get validation indormation.
- Returns
- true is valid
-
false is not valid
◆ operator=() [1/2]
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
◆ operator=() [2/2]
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
The documentation for this class was generated from the following file:
- /workspace/conan/dev_essential/1.6.3/dw/stable/package/65324bff46e457721a7ba250afe9d61dc2b0e57a/include/ddl/codec/codec_iterator.h