MIRA
IsTransparentSerializable< T, SerializerTag > Class Template Reference

Type trait that indicates whether a type should be serialized "transparently", i.e. More...

#include <serialization/IsTransparentSerializable.h>

Inheritance diagram for IsTransparentSerializable< T, SerializerTag >:
Inheritance graph
[legend]

Detailed Description

template<typename T, typename SerializerTag>
class mira::IsTransparentSerializable< T, SerializerTag >

Type trait that indicates whether a type should be serialized "transparently", i.e.

it transparently delegates the serialization to a member "showing through". The outer object is then serialized as if it was of the same type as the inner member.

By default this trait inherits from std::false_type.

You can specialize this trait for your own types to indicate that they should be serialized transparently.

For an example how to use this type trait, see Delegation and 'Transparent Members'.

Note: MetaType DB entries (created by MetaSerializer) for transparent types show an '' member, which can have any type. This is the member that is visible ('showing through') in the serialized data created by serializing the transparent type. The '' can be of a transparent type itself, so the data actually serialized will be the atomic or non-transparent complex type at the end of this recursive transparent chain.


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