![]() |
fpmas 1.5
|
#include <distributed_node.h>
Static Public Member Functions | |
| static void | to_json (light_json &j, const NodePtrWrapper< T > &node) |
| static void | from_json (const light_json &j, NodePtrWrapper< T > &node_ptr) |
light_serializer specialization for DistributedNode.
Only the id of the node is considered for serialization, and also the node data, that is itself serialized using the light_serializer.
| T | type of data contained in the DistributedNode |
|
inlinestatic |
Minimalist serialization rules for a DistributedNode. The weight is notably ignored, and data is serialized using the light_serializer<T> specialization.
| j | light json output |
| node | distributed node to serialize |
|
inlinestatic |
Minimalist unserialization rules for a DistributedNode. The returned DistributedNode is dynamically allocated and initialized with an id, and its data is initialized with the value produced by light_serializer<T>::from_json(). Any other field is default initialized (including the weight of the node).
| j | input json |
| node_ptr | distributed node output |