Zserio C++ runtime library
1.0.0
Built for Zserio 2.13.0
|
#include <DeltaContext.h>
Public Member Functions | |
template<typename ARRAY_TRAITS , typename OWNER_TYPE > | |
void | init (const OWNER_TYPE &owner, typename ARRAY_TRAITS::ElementType element) |
template<typename ARRAY_TRAITS , typename OWNER_TYPE > | |
size_t | bitSizeOf (const OWNER_TYPE &owner, typename ARRAY_TRAITS::ElementType element) |
template<typename ARRAY_TRAITS , typename OWNER_TYPE > | |
ARRAY_TRAITS::ElementType | read (const OWNER_TYPE &owner, BitStreamReader &in) |
template<typename ARRAY_TRAITS , typename OWNER_TYPE > | |
void | write (const OWNER_TYPE &owner, BitStreamWriter &out, typename ARRAY_TRAITS::ElementType element) |
template<typename ARRAY_TRAITS > | |
void | init (typename ARRAY_TRAITS::ElementType element) |
template<typename ARRAY_TRAITS > | |
size_t | bitSizeOf (typename ARRAY_TRAITS::ElementType element) |
template<typename ARRAY_TRAITS > | |
ARRAY_TRAITS::ElementType | read (BitStreamReader &in) |
template<typename ARRAY_TRAITS > | |
void | write (BitStreamWriter &out, typename ARRAY_TRAITS::ElementType element) |
DeltaContext ()=default | |
~DeltaContext ()=default | |
DeltaContext (DeltaContext &&other)=default | |
DeltaContext & | operator= (DeltaContext &&other)=default |
DeltaContext (const DeltaContext &other)=default | |
DeltaContext & | operator= (const DeltaContext &other)=default |
Context for delta packing created for each packable field.
Contexts are always newly created for each array operation (bitSizeOfPacked, initializeOffsetsPacked, readPacked, writePacked). They must be initialized at first via calling the init method for each packable element present in the array. After the full initialization, only a single method (bitSizeOf, read, write) can be repeatedly called for exactly the same sequence of packable elements.
Definition at line 62 of file DeltaContext.h.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
inline |
Returns length of the packed element stored in the bit stream in bits.
owner | Owner of the packed element. |
element | Value of the current element. |
Definition at line 126 of file DeltaContext.h.
|
inline |
Returns length of the packed element stored in the bit stream in bits.
element | Value of the current element. |
Definition at line 237 of file DeltaContext.h.
|
inline |
Calls the initialization step for a single element.
owner | Owner of the packed element. |
element | Current element. |
Definition at line 87 of file DeltaContext.h.
|
inline |
Calls the initialization step for a single element.
element | Current element. |
Definition at line 224 of file DeltaContext.h.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
inline |
Reads a packed element from the bit stream.
owner | Owner of the packed element. |
in | Bit stream reader. |
Definition at line 154 of file DeltaContext.h.
|
inline |
Reads a packed element from the bit stream.
in | Bit stream reader. |
Definition at line 250 of file DeltaContext.h.
|
inline |
Writes the packed element to the bit stream.
owner | Owner of the packed element. |
out | Bit stream writer. |
element | Value of the current element. |
Definition at line 190 of file DeltaContext.h.
|
inline |
Writes the packed element to the bit stream.
out | Bit stream writer. |
element | Value of the current element. |
Definition at line 262 of file DeltaContext.h.