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

Store numeric values using explicit portable widths. More...

#include <record.hpp>

Static Public Member Functions

static Node save (T value)
 Encode a scalar without formatting-dependent precision loss.
 
static Result< T > load (const Node &node)
 Validate the saved type and range before converting a scalar.
 

Detailed Description

template<typename T>
requires std::is_arithmetic_v<T>
struct serif::utils::serialize::Serializer< T >

Store numeric values using explicit portable widths.

Member Function Documentation

◆ load()

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

Validate the saved type and range before converting a scalar.

◆ save()

template<typename T>
static Node serif::utils::serialize::Serializer< T >::save ( T value)
inlinestatic

Encode a scalar without formatting-dependent precision loss.


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