SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
serif::utils::serialize::StructSerializer< T > Struct Template Reference

Compose an explicitly listed aggregate; the field list is also its constructor order. More...

#include <components.hpp>

Inheritance diagram for serif::utils::serialize::StructSerializer< T >:
[legend]

Static Public Member Functions

static Node save (const T &value)
 Delegate each named field to its own serializer.
 
static Result< T > load (const Node &node)
 Reconstruct only after every named field has decoded successfully.
 

Detailed Description

template<typename T>
struct serif::utils::serialize::StructSerializer< T >

Compose an explicitly listed aggregate; the field list is also its constructor order.

Member Function Documentation

◆ load()

template<typename T>
static Result< T > serif::utils::serialize::StructSerializer< T >::load ( const Node & node)
inlinestaticnodiscard

Reconstruct only after every named field has decoded successfully.

◆ save()

template<typename T>
static Node serif::utils::serialize::StructSerializer< T >::save ( const T & value)
inlinestaticnodiscard

Delegate each named field to its own serializer.


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