Zserio C++ runtime library
1.2.0
Built for Zserio 2.16.0
|
#include <ArrayTraits.h>
Public Types | |
using | ArrayTraits = ARRAY_TRAITS |
using | ElementType = typename ARRAY_TRAITS::ElementType |
using | OwnerType = typename ARRAY_TRAITS::OwnerType |
Static Public Member Functions | |
static void | initContext (const OwnerType &owner, DeltaContext &deltaContext, ElementType element) |
static size_t | bitSizeOf (const OwnerType &owner, DeltaContext &deltaContext, size_t, ElementType element) |
static size_t | initializeOffsets (const OwnerType &owner, DeltaContext &deltaContext, size_t bitPosition, ElementType element) |
static ElementType | read (const OwnerType &owner, DeltaContext &deltaContext, BitStreamReader &in, size_t=0) |
static void | write (const OwnerType &owner, DeltaContext &deltaContext, BitStreamWriter &out, ElementType element) |
Specialization of packed array traits for traits which needs the array's owner.
This packed array traits are used for all packable built-in types which needs the array's owner.
Definition at line 1908 of file ArrayTraits.h.
using zserio::PackedArrayTraits< ARRAY_TRAITS, typename std::enable_if< has_owner_type< ARRAY_TRAITS >::value >::type >::ArrayTraits = ARRAY_TRAITS |
Typedef for array traits.
Definition at line 1912 of file ArrayTraits.h.
using zserio::PackedArrayTraits< ARRAY_TRAITS, typename std::enable_if< has_owner_type< ARRAY_TRAITS >::value >::type >::ElementType = typename ARRAY_TRAITS::ElementType |
Element type.
Definition at line 1915 of file ArrayTraits.h.
using zserio::PackedArrayTraits< ARRAY_TRAITS, typename std::enable_if< has_owner_type< ARRAY_TRAITS >::value >::type >::OwnerType = typename ARRAY_TRAITS::OwnerType |
Typedef for the array's owner type.
Definition at line 1918 of file ArrayTraits.h.
|
inlinestatic |
Returns length of the array element stored in the bit stream in bits.
Available for traits which need the owner.
owner | Owner of the current array. |
deltaContext | Delta context. |
element | Current element. |
Definition at line 1945 of file ArrayTraits.h.
|
inlinestatic |
Calls context initialization step for the current element.
Available for traits which need the owner.
owner | Owner of the current array. |
deltaContext | Delta context node which keeps the context. |
element | Current element. |
Definition at line 1929 of file ArrayTraits.h.
|
inlinestatic |
Calls indexed offsets initialization for the current element.
Available for traits which need the owner.
owner | Owner of the current array. |
deltaContext | Delta context. |
bitPosition | Current bit stream position. |
element | Current element. |
Definition at line 1962 of file ArrayTraits.h.
|
inlinestatic |
Reads an element from the bit stream.
Available for traits which need the owner.
owner | Owner of the current array. |
deltaContext | Delta context. |
in | Bit stream reader. |
Definition at line 1979 of file ArrayTraits.h.
|
inlinestatic |
Writes the element to the bit stream.
Available for traits which need the owner.
owner | Owner of the current array. |
deltaContext | Delta context. |
out | Bit stream writer. |
element | Element to write. |
Definition at line 1994 of file ArrayTraits.h.