MIRA
IsAtomicSerializable< T > Class Template Reference

Type trait that indicates whether a type can be serialized as an atomic value. More...

#include <serialization/IsAtomicSerializable.h>

Inheritance diagram for IsAtomicSerializable< T >:
Inheritance graph
[legend]

Detailed Description

template<typename T>
class mira::IsAtomicSerializable< T >

Type trait that indicates whether a type can be serialized as an atomic value.

If this trait inherits from true_type, the type can be serialized as atomic value. By default all arithmetic types (int, float, etc) can be serialized as atomic value. You can specialize this trait for your own types that can also be serialized and deserialized as atomic values, e.g. the trait is specialized for strings in this way.

Requirement: the different serializers/deserializers will internally handle atomic types by trivial/generic conversion, without needing an intrusive or non-intrusive reflect() method:

Note
: This can be used to simplify the support for binary/JSON/XML serialization, but be aware that meta serialization is not fully supported and binary-to-JSON conversion is not available for such types (other than those for which IsAtomicSerializable is declared to be true within IsAtomicSerializable.h).

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