framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members
framework::serializable::mutator_type< Child > Struct Template Reference

#include <framework/serializable/mutator_type.hpp>

Detailed Description

template<typename Child>
struct framework::serializable::mutator_type< Child >

Provides a common interface used to define the types required to properly interpret a mutator type. Unlike container_type and value_type, this base is not intended to interact with a derived object directly - rather, a mutator type interacts with the underlying

type_extractor <T>

type. For example, during the deserialization of the following object

class Object : serializable <Object
value <NAME("Field 1"), little_endian <uint32_t>>,
value <NAME("Field 2"), big_endian <float>>>
{
};

the read methods associated with serializable and value both accept an output object of type Object while those associated with little_endian and big_endian's accept an unsigned integer and a float respectively.

Note
No default serialization method is provided here - it is not clear what role such a default would perform.
Template Parameters
Childwrapped child type

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