fpmas 1.6
Static Public Member Functions | List of all members
nlohmann::adl_serializer< DistributedId > Struct Reference

#include <distributed_id.h>

Static Public Member Functions

template<typename JsonType >
static void to_json (JsonType &j, const DistributedId &value)
 
template<typename JsonType >
static void from_json (const JsonType &j, DistributedId &id)
 

Detailed Description

DistributedId serializer.

Member Function Documentation

◆ to_json()

template<typename JsonType >
static void nlohmann::adl_serializer< DistributedId >::to_json ( JsonType &  j,
const DistributedId value 
)
inlinestatic

Serializes a DistributedId instance as [rank, localId].

Parameters
jcurrent json
valueDistributedId to serialize

◆ from_json()

template<typename JsonType >
static void nlohmann::adl_serializer< DistributedId >::from_json ( const JsonType &  j,
DistributedId id 
)
inlinestatic

Unserializes a DistributedId id instance from a [rank, localId] json representation.

Parameters
jjson to unserialize
idDistributedId output

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