Reflection for RapidJSON
0.0.15
Reflection for serializing/deserializing with RapidJSON
|
Go to the documentation of this file.
22 static_assert(
IsArray<vector<int>>::value,
"vector mapped to array");
23 static_assert(
IsArray<list<int>>::value,
"list mapped to array");
24 static_assert(!
IsArray<set<int>>::value,
"set not considered an array");
25 static_assert(!
IsArray<multiset<int>>::value,
"multiset not considered an array");
26 static_assert(
IsArrayOrSet<set<int>>::value,
"set is array or set");
27 static_assert(
IsArrayOrSet<multiset<int>>::value,
"multiset is array or set");
31 static_assert(
IsSet<set<int>>::value,
"set mapped to set");
32 static_assert(
IsSet<unordered_set<int>>::value,
"unordered_set mapped to set");
35 static_assert(
IsMultiSet<unordered_multiset<int>>::value,
"multiset");
39 static_assert(
IsMapOrHash<map<string, int>>::value,
"map mapped to object");
40 static_assert(
IsMapOrHash<unordered_map<string, int>>::value,
"hash mapped to object");
41 static_assert(!
IsMapOrHash<vector<int>>::value,
"vector not mapped to object");
43 static_assert(
IsMultiMapOrHash<multimap<string, int>>::value,
"multimap mapped to object");
44 static_assert(
IsMultiMapOrHash<unordered_multimap<string, int>>::value,
"unordered multimap mapped to object");
45 static_assert(!
IsMultiMapOrHash<vector<int>>::value,
"vector not mapped to object");
Traits::Any< Traits::IsSpecializationOf< Type, std::map >, Traits::IsSpecializationOf< Type, std::unordered_map >, TreatAsMapOrHash< Type > > IsMapOrHash
Traits::Any< Traits::IsSpecializationOf< Type, std::set >, Traits::IsSpecializationOf< Type, std::unordered_set >, TreatAsSet< Type > > IsSet
REFLECTIVE_RAPIDJSON_TREAT_AS_SET(Bar)
Traits::Any< Traits::IsSpecializationOf< Type, std::multimap >, Traits::IsSpecializationOf< Type, std::unordered_multimap >, TreatAsMultiMapOrHash< Type > > IsMultiMapOrHash
Traits::Any< Traits::IsSpecializationOf< Type, std::multiset >, Traits::IsSpecializationOf< Type, std::unordered_multiset >, TreatAsMultiSet< Type > > IsMultiSet
REFLECTIVE_RAPIDJSON_TREAT_AS_MULTI_MAP_OR_HASH(Foo)
Traits::All< Traits::IsIteratable< Type >, Traits::Not< Traits::IsSpecializationOf< Type, std::basic_string > >, Traits::Not< IsMapOrHash< Type > >, Traits::Not< IsMultiMapOrHash< Type > >, Traits::Not< IsSet< Type > >, Traits::Not< IsMultiSet< Type > >> IsArray
Traits::All< Traits::IsIteratable< Type >, Traits::Not< Traits::IsSpecializationOf< Type, std::basic_string > >, Traits::Not< Traits::IsSpecializationOf< Type, std::basic_string > >> IsIteratableExceptString
REFLECTIVE_RAPIDJSON_TREAT_AS_MAP_OR_HASH(Foo)
REFLECTIVE_RAPIDJSON_TREAT_AS_MULTI_SET(Foo)
Traits::Any< Traits::All< Traits::IsIteratable< Type >, Traits::Not< Traits::IsSpecializationOf< Type, std::basic_string > >, Traits::Not< Traits::IsSpecializationOf< Type, std::basic_string_view > >, Traits::Not< IsMapOrHash< Type > >, Traits::Not< IsMultiMapOrHash< Type > >>, TreatAsSet< Type >, TreatAsMultiSet< Type > > IsArrayOrSet