![]() |
fpmas 1.5
|
#include <spatial_model.h>
Public Types | |
| typedef PtrWrapper< fpmas::model::SpatialAgentBase< SpatialAgentInterface, AgentType, CellType, Derived > > | Ptr |
Static Public Member Functions | |
| static void | to_json (light_json &j, const Ptr &agent) |
| static Ptr | from_json (const light_json &j) |
light_serializer specialization for an fpmas::model::SpatialAgentBase
The light_serializer is directly call on the next Derived type: no data is added to / extracted from the current light_json.
| AgentType | final Agent type to serialize |
| CellType | type of cells used by the spatial model |
| Derived | next derived class in the polymorphic serialization chain |
| typedef PtrWrapper<fpmas::model::SpatialAgentBase<SpatialAgentInterface, AgentType, CellType, Derived> > fpmas::io::json::light_serializer< PtrWrapper< fpmas::model::SpatialAgentBase< SpatialAgentInterface, AgentType, CellType, Derived > > >::Ptr |
Pointer wrapper to a polymorphic SpatialAgentBase.
|
inlinestatic |
light_json to_json() implementation for an fpmas::model::SpatialAgentBase.
Effectively calls light_serializer<fpmas::api::utils::PtrWrapper<Derived>>::to_json(), without adding any SpatialAgentBase specific data to the light_json j.
| j | json output |
| agent | agent to serialize |
|
inlinestatic |
light_json from_json() implementation for an fpmas::model::SpatialAgentBase.
Effectively calls light_serializer<fpmas::api::utils::PtrWrapper<Derived>>::from_json(), without extracting any SpatialAgentBase specific data from the light_json j.
| j | json input |
Derived instance, unserialized from j