Zserio C++ runtime library
1.2.0
Built for Zserio 2.16.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 127 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 238 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 225 of file DeltaContext.h.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
inline |
Reads a packed element from the bit stream.
in | Bit stream reader. |
Definition at line 251 of file DeltaContext.h.
|
inline |
Reads a packed element from the bit stream.
owner | Owner of the packed element. |
in | Bit stream reader. |
Definition at line 155 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 263 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 191 of file DeltaContext.h.