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

Arrays of coefficients are contiguous payloads, while compound values retain named children. More...

#include <record.hpp>

Static Public Member Functions

static Node save (const std::vector< T > &values)
 Encode a numerical array compactly, or serialize each compound element.
 
static Result< std::vector< T > > load (const Node &node)
 Restore the exact array length and validate every represented element.
 

Detailed Description

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

Arrays of coefficients are contiguous payloads, while compound values retain named children.

Member Function Documentation

◆ load()

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

Restore the exact array length and validate every represented element.

◆ save()

template<typename T>
static Node serif::utils::serialize::Serializer< std::vector< T > >::save ( const std::vector< T > & values)
inlinestatic

Encode a numerical array compactly, or serialize each compound element.


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