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

#include <datapack.h>

Static Public Member Functions

template<typename PackType >
static std::size_t size (const PackType &p)
 
template<typename PackType >
static std::size_t size (const PackType &p, const DistributedId &)
 
template<typename PackType >
static void to_datapack (PackType &pack, const DistributedId &id)
 
template<typename PackType >
static DistributedId from_datapack (const PackType &pack)
 

Detailed Description

api::graph::DistributedId Serializer specialization.

| Serialization Scheme || | distributed_id.rank() | distributed_id.id() |

Member Function Documentation

◆ size() [1/2]

template<typename PackType >
static std::size_t fpmas::io::datapack::Serializer< DistributedId >::size ( const PackType &  p)
inlinestatic

Returns the buffer size required to serialize a DistributedId instance, i.e. p.size<int>()+p.size<FPMAS_ID_TYPE>.

◆ size() [2/2]

template<typename PackType >
static std::size_t fpmas::io::datapack::Serializer< DistributedId >::size ( const PackType &  p,
const DistributedId  
)
inlinestatic

Equivalent to size().

◆ to_datapack()

template<typename PackType >
static void fpmas::io::datapack::Serializer< DistributedId >::to_datapack ( PackType &  pack,
const DistributedId id 
)
inlinestatic

Serializes id to pack.

Parameters
packdestination BasicObjectPack
idDistributedId to serialize

◆ from_datapack()

template<typename PackType >
static DistributedId fpmas::io::datapack::Serializer< DistributedId >::from_datapack ( const PackType &  pack)
inlinestatic

Unserializes a DistributedId from pack.

Parameters
packsource BasicObjectPack
Returns
unserialized DistributedId

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