Reflection for RapidJSON 0.0.16
Reflection for serializing/deserializing with RapidJSON
Loading...
Searching...
No Matches
ReflectiveRapidJSON::Versioning< Type, true > Struct Template Reference

#include <versioning.h>

Static Public Member Functions

static constexpr auto & applyDefault (std::remove_const_t< decltype(serializationDefault)> &version)
 
static constexpr auto applyDefaultValue (std::remove_const_t< decltype(serializationDefault)> version)
 
static constexpr auto isSupported (decltype(maxSupported) version)
 
static constexpr auto assertVersion (decltype(maxSupported) version, const char *record=nullptr)
 

Static Public Attributes

static constexpr auto enabled = Type::version != 0
 
static constexpr auto serializationDefault = Type::version
 
static constexpr auto maxSupported = Type::version
 

Detailed Description

template<typename Type>
struct ReflectiveRapidJSON::Versioning< Type, true >

Definition at line 38 of file versioning.h.

Member Function Documentation

◆ applyDefault()

template<typename Type >
static constexpr auto & ReflectiveRapidJSON::Versioning< Type, true >::applyDefault ( std::remove_const_t< decltype(serializationDefault)> & version)
inlinestaticconstexpr

Definition at line 42 of file versioning.h.

◆ applyDefaultValue()

template<typename Type >
static constexpr auto ReflectiveRapidJSON::Versioning< Type, true >::applyDefaultValue ( std::remove_const_t< decltype(serializationDefault)> version)
inlinestaticconstexpr

Definition at line 49 of file versioning.h.

◆ assertVersion()

template<typename Type >
static constexpr auto ReflectiveRapidJSON::Versioning< Type, true >::assertVersion ( decltype(maxSupported) version,
const char * record = nullptr )
inlinestaticconstexpr

Definition at line 57 of file versioning.h.

◆ isSupported()

template<typename Type >
static constexpr auto ReflectiveRapidJSON::Versioning< Type, true >::isSupported ( decltype(maxSupported) version)
inlinestaticconstexpr

Definition at line 53 of file versioning.h.

Member Data Documentation

◆ enabled

template<typename Type >
auto ReflectiveRapidJSON::Versioning< Type, true >::enabled = Type::version != 0
staticconstexpr

Definition at line 39 of file versioning.h.

◆ maxSupported

template<typename Type >
auto ReflectiveRapidJSON::Versioning< Type, true >::maxSupported = Type::version
staticconstexpr

Definition at line 41 of file versioning.h.

◆ serializationDefault

template<typename Type >
auto ReflectiveRapidJSON::Versioning< Type, true >::serializationDefault = Type::version
staticconstexpr

Definition at line 40 of file versioning.h.


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