![]() |
fpmas 1.5
|
#include <datapack.h>
Static Public Member Functions | |
| template<typename PackType > | |
| static std::size_t | size (const PackType &p, const std::pair< T1, T2 > &pair) |
| template<typename PackType > | |
| static void | to_datapack (PackType &pack, const std::pair< T1, T2 > &pair) |
| template<typename PackType > | |
| static std::pair< T1, T2 > | from_datapack (const PackType &pack) |
std::pair Serializer specialization.
| Serialization scheme | |
|---|---|
| pair.first | pair.second |
| T1 | pair first type |
| T2 | pair second type |
|
inlinestatic |
Returns the buffer size, in bytes, required to serialize the specified pair, i.e. p.size(pair.first)+p.size(pair.second).
|
inlinestatic |
Serializes pair to pack.
pair.first and pair.second are serialized using the PackType::put(const T1&) and PackType::put(const T2&) methods.
| pack | destination BasicObjectPack |
| pair | pair to serialize |
|
inlinestatic |
Unserializes a pair from pack.
pair.first and pair.second are serialized using the PackType::get<T1>() and PackType::get<T2>() methods.
| pack | source BasicObjectPack |