![]() |
fpmas 1.5
|
#include <datapack.h>
Static Public Member Functions | |
| template<typename PackType > | |
| static std::size_t | size (const PackType &p, const std::set< T > &set) |
| template<typename PackType > | |
| static void | to_datapack (PackType &pack, const std::set< T > &set) |
| template<typename PackType > | |
| static std::set< T > | from_datapack (const PackType &pack) |
std::set Serializer specialization.
| Serialization scheme | ||||
|---|---|---|---|---|
| set.size() | item_1 | item_2 | ... | item_n |
| T | type of data contained into the set. A Serializer specialization of T must be available. |
|
inlinestatic |
Returns the buffer size required to serialize set into p.
|
inlinestatic |
Serializes set to pack.
Each item is serialized in the set order using the PackType::put(const T&) method.
| pack | destination BasicObjectPack |
| set | set to serialize |
|
inlinestatic |
Unserializes a set from pack.
Each item of the vector is unserialized using the PackType::get<T>() method.
Since items are already ordered, a linear complexity to build the set is ensured.
| pack | source BasicObjectPack |