|
Zserio C++ runtime library
1.3.0
Built for Zserio 2.18.0
|
#include <ArrayTraits.h>
Public Types | |
| using | ElementType = T |
| using | allocator_type = typename ElementType::allocator_type |
| using | OwnerType = typename ELEMENT_FACTORY::OwnerType |
Static Public Member Functions | |
| static size_t | bitSizeOf (const OwnerType &, size_t bitPosition, const ElementType &element) |
| static size_t | initializeOffsets (OwnerType &, size_t bitPosition, ElementType &element) |
| template<typename RAW_ARRAY > | |
| static void | read (OwnerType &owner, RAW_ARRAY &rawArray, BitStreamReader &in, size_t index) |
| static void | write (const OwnerType &, BitStreamWriter &out, const ElementType &element) |
Static Public Attributes | |
| static constexpr bool | IS_BITSIZEOF_CONSTANT = false |
Array traits for Zserio structure, choice and union types.
Definition at line 1734 of file ArrayTraits.h.
| using zserio::ObjectArrayTraits< T, ELEMENT_FACTORY >::allocator_type = typename ElementType::allocator_type |
Allocator type.
Definition at line 1741 of file ArrayTraits.h.
| using zserio::ObjectArrayTraits< T, ELEMENT_FACTORY >::ElementType = T |
Element type.
Definition at line 1738 of file ArrayTraits.h.
| using zserio::ObjectArrayTraits< T, ELEMENT_FACTORY >::OwnerType = typename ELEMENT_FACTORY::OwnerType |
Typedef for the array's owner type.
Definition at line 1744 of file ArrayTraits.h.
|
inlinestatic |
Calculates bit size of the array element.
| bitPosition | Current bit position. |
| element | Element to use for calculation. |
Definition at line 1754 of file ArrayTraits.h.
|
inlinestatic |
Initializes indexed offsets of the single array element.
| bitPosition | Current bit position. |
| element | Element to use. |
Definition at line 1767 of file ArrayTraits.h.
|
inlinestatic |
Reads the single array element.
| owner | Owner of the array. |
| rawArray | Raw array to use. |
| in | Bit stream reader. |
| index | Index need in case of parameterized type which depends on the current index. |
Definition at line 1781 of file ArrayTraits.h.
|
inlinestatic |
Writes the single array element.
| out | Bit stream writer to use. |
| element | Element to write. |
Definition at line 1792 of file ArrayTraits.h.
|
staticconstexpr |
Determines whether the bit size of the single element is constant.
Definition at line 1798 of file ArrayTraits.h.