fpmas 1.6
Static Public Member Functions | List of all members
fpmas::io::datapack::Serializer< model::ReachableCell > Struct Reference

#include <graph.h>

Static Public Member Functions

static std::size_t size (const ObjectPack &p, const model::ReachableCell &cell)
 
static void to_datapack (ObjectPack &pack, const model::ReachableCell &cell)
 
static model::ReachableCell from_datapack (const ObjectPack &pack)
 

Detailed Description

fpmas::model::ReachableCell ObjectPack serializer specialization.

Serialization Scheme
cell.reachable_cells

Member Function Documentation

◆ size()

std::size_t fpmas::io::datapack::Serializer< model::ReachableCell >::size ( const ObjectPack p,
const model::ReachableCell cell 
)
static

Returns the buffer size, in bytes, required to serialize a model::ReachableCell instance, i.e. p.size(cell.reachable_cells).

Returns
pack size in bytes

◆ to_datapack()

void fpmas::io::datapack::Serializer< model::ReachableCell >::to_datapack ( ObjectPack pack,
const model::ReachableCell cell 
)
static

Serializes cell into pack.

Parameters
packdestination ObjectPack
cellReachableCell to serialize

◆ from_datapack()

Unserializes a ReachableCell from pack.

Parameters
packsource ObjectPack
Returns
unserialized ReachableCell

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