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