Zserio C++ runtime library
1.2.0
Built for Zserio 2.16.0
|
#include <ArrayTraits.h>
Public Types | |
using | ArrayTraits = ObjectArrayTraits< T, ELEMENT_FACTORY > |
using | ElementType = T |
using | allocator_type = typename T::allocator_type |
using | OwnerType = typename ArrayTraits::OwnerType |
Static Public Member Functions | |
template<typename PACKING_CONTEXT > | |
static void | initContext (const typename ArrayTraits::OwnerType &, PACKING_CONTEXT &packingContext, const ElementType &element) |
template<typename PACKING_CONTEXT > | |
static size_t | bitSizeOf (const typename ArrayTraits::OwnerType &, PACKING_CONTEXT &packingContext, size_t bitPosition, const ElementType &element) |
template<typename PACKING_CONTEXT > | |
static size_t | initializeOffsets (const typename ArrayTraits::OwnerType &, PACKING_CONTEXT &packingContext, size_t bitPosition, ElementType &element) |
template<typename RAW_ARRAY , typename PACKING_CONTEXT > | |
static void | read (typename ArrayTraits::OwnerType &owner, RAW_ARRAY &rawArray, PACKING_CONTEXT &packingContext, BitStreamReader &in, size_t index) |
template<typename PACKING_CONTEXT > | |
static void | write (const typename ArrayTraits::OwnerType &, PACKING_CONTEXT &packingContext, BitStreamWriter &out, const ElementType &element) |
Specialization of packed array traits for Zserio objects.
Definition at line 2160 of file ArrayTraits.h.
using zserio::PackedArrayTraits< ObjectArrayTraits< T, ELEMENT_FACTORY >, typename std::enable_if< has_owner_type< ObjectArrayTraits< T, ELEMENT_FACTORY > >::value >::type >::allocator_type = typename T::allocator_type |
Allocator type.
Definition at line 2171 of file ArrayTraits.h.
using zserio::PackedArrayTraits< ObjectArrayTraits< T, ELEMENT_FACTORY >, typename std::enable_if< has_owner_type< ObjectArrayTraits< T, ELEMENT_FACTORY > >::value >::type >::ArrayTraits = ObjectArrayTraits<T, ELEMENT_FACTORY> |
Typedef for array traits.
Definition at line 2165 of file ArrayTraits.h.
using zserio::PackedArrayTraits< ObjectArrayTraits< T, ELEMENT_FACTORY >, typename std::enable_if< has_owner_type< ObjectArrayTraits< T, ELEMENT_FACTORY > >::value >::type >::ElementType = T |
Element type.
Definition at line 2168 of file ArrayTraits.h.
using zserio::PackedArrayTraits< ObjectArrayTraits< T, ELEMENT_FACTORY >, typename std::enable_if< has_owner_type< ObjectArrayTraits< T, ELEMENT_FACTORY > >::value >::type >::OwnerType = typename ArrayTraits::OwnerType |
Typedef for the array's owner type.
Definition at line 2174 of file ArrayTraits.h.
|
inlinestatic |
Returns length of the array element stored in the bit stream in bits.
packingContext | Packing context node which keeps the appropriate subtree of contexts. |
bitPosition | Current bit stream position. |
element | Current element. |
Definition at line 2198 of file ArrayTraits.h.
|
inlinestatic |
Calls context initialization step for the current element.
packingContext | Packing context node which keeps the appropriate subtree of contexts. |
Definition at line 2182 of file ArrayTraits.h.
|
inlinestatic |
Calls indexed offsets initialization for the current element.
packingContext | Packing context node which keeps the appropriate subtree of contexts. |
bitPosition | Current bit stream position. |
element | Current element. |
Definition at line 2214 of file ArrayTraits.h.
|
inlinestatic |
Reads an element from the bit stream.
owner | Owner of the array. |
rawArray | Raw array to use. |
packingContext | Packing context node which keeps the appropriate subtree of contexts. |
in | Bit stream reader. |
allocator | Allocator to use. |
index | Index of the current element. |
Definition at line 2231 of file ArrayTraits.h.
|
inlinestatic |
Writes the element to the bit stream.
packingContext | Packing context node which keeps the appropriate subtree of contexts. |
out | Bit stream writer. |
element | Element to write. |
Definition at line 2245 of file ArrayTraits.h.