![]() |
fpmas 1.5
|
#include <distributed_node.h>
Static Public Member Functions | |
| static std::size_t | size (const LightObjectPack &p, const NodePtrWrapper< T > &node) |
| static void | to_datapack (LightObjectPack &pack, const NodePtrWrapper< T > &node) |
| static NodePtrWrapper< T > | from_datapack (const LightObjectPack &pack) |
DistributedNode LightSerializer specialization, notably used to efficiently transmit DistributedEdge instances, where source and target node data are not required.
Only the id of the node is serialized, and also the light version of its data. The light serialization of the node data can eventually produce an empty BasicObjectPack, so that only the node id is serialized.
| Serialization scheme | |
|---|---|
| node->getId() | node->data() |
|
inlinestatic |
Returns the buffer size required to serialize node into p, i.e. p.size<DistributedId>() + p.size(node->data()).
Notice that in this light version, p.size(node->data()) might be null.
|
inlinestatic |
DistributedNode LightObjectPack serialization.
| pack | destination LightObjectPack |
| node | node to serialize |
|
inlinestatic |
DistributedNode LightObjectPack deserialization.
| pack | source LightObjectPack |