default_serialize.h File Reference

CPP API: default_serialize.h File Reference
default_serialize.h File Reference
#include "memilio/io/io.h"
#include <tuple>
Include dependency graph for default_serialize.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mio::DefaultFactory< T >
 Creates an instance of T for later initialization. More...
 
struct  mio::Members< ValueTypes >
 List of a class's members. More...
 
struct  mio::NamedRef< ValueType >
 A pair of name and reference. More...
 

Namespaces

 mio
 A collection of classes to simplify handling of matrix shapes in meta programming.
 
 mio::details
 

Functions

template<class IOObject , class Member >
void mio::details::add_named_ref (IOObject &obj, const NamedRef< Member > named_ref)
 Add a name-value pair to an io object. More...
 
template<class IOContext , class DefaultSerializable , class... Members>
IOResult< DefaultSerializable > mio::details::default_deserialize_impl (IOContext &io, DefaultSerializable &a, const char *name, NamedRef< Members >... named_refs)
 Read an io object and its members from the io context using the given names and assign the values to a. More...
 
template<class IOContext , class... Members>
void mio::details::default_serialize_impl (IOContext &io, const char *name, const NamedRef< Members >... named_refs)
 Unpack all name-value pairs from the tuple and add them to a new io object with the given name. More...
 
template<class IOContext , IsDefaultDeserializable< IOContext > T>
IOResult< T > mio::deserialize_internal (IOContext &io, Tag< T > tag)
 Deserialization implementation for the default serialization feature. More...
 
template<class IOObject , class Member >
IOResult< Member > mio::details::expect_named_ref (IOObject &obj, const NamedRef< Member > named_ref)
 Retrieve a name-value pair from an io object. More...
 
template<class IOContext , IsDefaultSerializable< IOContext > T>
void mio::serialize_internal (IOContext &io, const T &a)
 Serialization implementation for the default serialization feature. More...
 

Variables

template<class T , class IOContext >
concept mio::IsDefaultDeserializable
 Detect whether T has a default_serialize member function, but no deserialize member. More...
 
template<class T , class IOContext >
concept mio::IsDefaultSerializable
 Detect whether T has a default_serialize member function, but no serialize member. More...