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

#include <physics.hpp>

Collaboration diagram for serif::utils::serialize::Serializer< model::EosReference< EOS > >:
[legend]

Static Public Member Functions

static Node save (const model::EosReference< EOS > &value)
 Archive the immutable referenced physics, never a memory address.
 
static Result< model::EosReference< EOS > > load (const Node &node)
 Own the reconstructed EOS so a loaded reference cannot dangle.
 

Static Public Attributes

static constexpr std::string_view key = "eos.reference"
 

Member Function Documentation

◆ load()

template<typename EOS>
static Result< model::EosReference< EOS > > serif::utils::serialize::Serializer< model::EosReference< EOS > >::load ( const Node & node)
inlinestaticnodiscard

Own the reconstructed EOS so a loaded reference cannot dangle.

◆ save()

template<typename EOS>
static Node serif::utils::serialize::Serializer< model::EosReference< EOS > >::save ( const model::EosReference< EOS > & value)
inlinestaticnodiscard

Archive the immutable referenced physics, never a memory address.

Member Data Documentation

◆ key

template<typename EOS>
std::string_view serif::utils::serialize::Serializer< model::EosReference< EOS > >::key = "eos.reference"
staticconstexpr

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