fpmas-metamodel 1.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
CellSerialization< CellType > Struct Template Reference

#include <cell.h>

Static Public Member Functions

static void to_json (nlohmann::json &j, const CellType *cell)
 
static CellType * from_json (const nlohmann::json &j)
 
static std::size_t size (const fpmas::io::datapack::ObjectPack &o, const CellType *cell)
 
static void to_datapack (fpmas::io::datapack::ObjectPack &o, const CellType *cell)
 
static CellType * from_datapack (const fpmas::io::datapack::ObjectPack &o)
 

Detailed Description

template<typename CellType>
struct CellSerialization< CellType >

MetaCell JSON and ObjectPack serialization rules.

The dummy MetaCell::getData() field is serialized, to produce a fake volume of data.

Member Function Documentation

◆ to_json()

template<typename CellType >
static void CellSerialization< CellType >::to_json ( nlohmann::json &  j,
const CellType *  cell 
)
inlinestatic

Json serialization.

◆ from_json()

template<typename CellType >
static CellType * CellSerialization< CellType >::from_json ( const nlohmann::json &  j)
inlinestatic

Json deserialization.

◆ size()

template<typename CellType >
static std::size_t CellSerialization< CellType >::size ( const fpmas::io::datapack::ObjectPack &  o,
const CellType *  cell 
)
inlinestatic

ObjectPack size.

◆ to_datapack()

template<typename CellType >
static void CellSerialization< CellType >::to_datapack ( fpmas::io::datapack::ObjectPack &  o,
const CellType *  cell 
)
inlinestatic

ObjectPack serialization.

◆ from_datapack()

template<typename CellType >
static CellType * CellSerialization< CellType >::from_datapack ( const fpmas::io::datapack::ObjectPack &  o)
inlinestatic

ObjectPack deserialization.


The documentation for this struct was generated from the following file: