![]() |
fpmas 1.6
|
#include <datapack.h>
Static Public Member Functions | |
template<typename PackType > | |
static std::size_t | size (const PackType &p, const std::deque< T > &deque) |
template<typename PackType > | |
static void | to_datapack (PackType &pack, const std::deque< T > &deque) |
template<typename PackType > | |
static std::deque< T > | from_datapack (const PackType &pack) |
std::deque Serializer specialization.
Serialization scheme | ||||
---|---|---|---|---|
deque.size() | item_1 | item_2 | ... | item_n |
|
inlinestatic |
Returns the buffer size required to serialize deque
into p
.
|
inlinestatic |
Serializes deque
to pack
.
Each item is serialized using the PackType::put(const T&) method.
pack | destination BasicObjectPack |
deque | deque to serialize |
|
inlinestatic |
Unserializes a deque from pack
.
Each item of the deque is unserialized using the PackType::get<T>() method.
pack | source BasicObjectPack |