FleCSI User API Version: 2.3.0
 
Loading...
Searching...
No Matches
convert< T > Struct Template Reference

Defines a serialization in terms of a representation type. More...

Static Public Member Functions

static T get (R &&r)
 Reconstruct an object.
 
static R put (const T &)
 Convert an object.
 
static std::size_t size (const T &)
 Get the serialized size of an object.
 

Detailed Description

template<class T>
struct flecsi::util::serial::convert< T >

Defines a serialization in terms of a representation type.

The primary template is not really a complete type.

Template Parameters
Tobject type

Member Function Documentation

◆ put()

template<class T >
static R put ( const T &  )
static

Convert an object.

Returns
a serializable type

◆ size()

template<class T >
static std::size_t size ( const T &  )
static

Get the serialized size of an object.

This interface is optional; put will be called twice in its absence.

◆ get()

template<class T >
static T get ( R &&  r)
static

Reconstruct an object.

Parameters
rreconstructed object returned from put