Helper class for accessing Value of object type. More...
Public Types | |
| typedef GenericObject< true, ValueT > | ConstObject |
| typedef GenericObject< false, ValueT > | Object |
| typedef ValueT | PlainType |
| typedef internal::MaybeAddConst< Const, PlainType >::Type | ValueType |
| typedef GenericMemberIterator< Const, typename ValueT::EncodingType, typename ValueT::AllocatorType > | MemberIterator |
| typedef GenericMemberIterator< true, typename ValueT::EncodingType, typename ValueT::AllocatorType > | ConstMemberIterator |
| typedef ValueType::AllocatorType | AllocatorType |
| typedef ValueType::StringRefType | StringRefType |
| typedef ValueType::EncodingType | EncodingType |
| typedef ValueType::Ch | Ch |
Public Member Functions | |
| GenericObject (const GenericObject &rhs) | |
| GenericObject & | operator= (const GenericObject &rhs) |
| operator ValueType & () const | |
| SizeType | MemberCount () const |
| SizeType | MemberCapacity () const |
| bool | ObjectEmpty () const |
| template<typename T> | |
| ValueType & | operator[] (T *name) const |
| template<typename SourceAllocator> | |
| ValueType & | operator[] (const GenericValue< EncodingType, SourceAllocator > &name) const |
| MemberIterator | MemberBegin () const |
| MemberIterator | MemberEnd () const |
| GenericObject | MemberReserve (SizeType newCapacity, AllocatorType &allocator) const |
| bool | HasMember (const Ch *name) const |
| template<typename SourceAllocator> | |
| bool | HasMember (const GenericValue< EncodingType, SourceAllocator > &name) const |
| MemberIterator | FindMember (const Ch *name) const |
| template<typename SourceAllocator> | |
| MemberIterator | FindMember (const GenericValue< EncodingType, SourceAllocator > &name) const |
| GenericObject | AddMember (ValueType &name, ValueType &value, AllocatorType &allocator) const |
| GenericObject | AddMember (ValueType &name, StringRefType value, AllocatorType &allocator) const |
| template<typename T> | |
| RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >),(ValueType &)) AddMember(ValueType &name | |
| GenericObject | AddMember (StringRefType name, ValueType &value, AllocatorType &allocator) const |
| GenericObject | AddMember (StringRefType name, StringRefType value, AllocatorType &allocator) const |
| template<typename T> | |
| RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >),(GenericObject)) AddMember(StringRefType name | |
| void | RemoveAllMembers () |
| bool | RemoveMember (const Ch *name) const |
| template<typename SourceAllocator> | |
| bool | RemoveMember (const GenericValue< EncodingType, SourceAllocator > &name) const |
| MemberIterator | RemoveMember (MemberIterator m) const |
| MemberIterator | EraseMember (ConstMemberIterator pos) const |
| MemberIterator | EraseMember (ConstMemberIterator first, ConstMemberIterator last) const |
| bool | EraseMember (const Ch *name) const |
| template<typename SourceAllocator> | |
| bool | EraseMember (const GenericValue< EncodingType, SourceAllocator > &name) const |
Public Attributes | |
| T | value |
| T AllocatorType &allocator | const { value_.AddMember(name, value, allocator) |
| return * | this |
Private Member Functions | |
| GenericObject (ValueType &value) | |
Private Attributes | |
| ValueType & | value_ |
Friends | |
| template<typename, typename> | |
| class | GenericValue |
Helper class for accessing Value of object type.
Instance of this helper class is obtained by GenericValue::GetObject(). In addition to all APIs for array type, it provides range-based for loop if RAPIDJSON_HAS_CXX11_RANGE_FOR=1.
Definition at line 2954 of file document.h.
| typedef ValueType::AllocatorType GenericObject< Const, ValueT >::AllocatorType |
Definition at line 2962 of file document.h.
| typedef ValueType::Ch GenericObject< Const, ValueT >::Ch |
Definition at line 2965 of file document.h.
| typedef GenericMemberIterator<true, typename ValueT::EncodingType, typename ValueT::AllocatorType> GenericObject< Const, ValueT >::ConstMemberIterator |
Definition at line 2961 of file document.h.
| typedef GenericObject<true, ValueT> GenericObject< Const, ValueT >::ConstObject |
Definition at line 2956 of file document.h.
| typedef ValueType::EncodingType GenericObject< Const, ValueT >::EncodingType |
Definition at line 2964 of file document.h.
| typedef GenericMemberIterator<Const, typename ValueT::EncodingType, typename ValueT::AllocatorType> GenericObject< Const, ValueT >::MemberIterator |
Definition at line 2960 of file document.h.
| typedef GenericObject<false, ValueT> GenericObject< Const, ValueT >::Object |
Definition at line 2957 of file document.h.
| typedef ValueT GenericObject< Const, ValueT >::PlainType |
Definition at line 2958 of file document.h.
| typedef ValueType::StringRefType GenericObject< Const, ValueT >::StringRefType |
Definition at line 2963 of file document.h.
| typedef internal::MaybeAddConst<Const,PlainType>::Type GenericObject< Const, ValueT >::ValueType |
Definition at line 2959 of file document.h.
|
inline |
Definition at line 2970 of file document.h.
|
inline |
Definition at line 2972 of file document.h.
|
inlineprivate |
Definition at line 3033 of file document.h.
|
inline |
Definition at line 3009 of file document.h.
|
inline |
Definition at line 3008 of file document.h.
|
inline |
Definition at line 2997 of file document.h.
|
inline |
Definition at line 2996 of file document.h.
|
inline |
Definition at line 3020 of file document.h.
|
inline |
Definition at line 3024 of file document.h.
|
inline |
Definition at line 3019 of file document.h.
|
inline |
Definition at line 3018 of file document.h.
|
inline |
Definition at line 2991 of file document.h.
|
inline |
Definition at line 2992 of file document.h.
|
inline |
Definition at line 2986 of file document.h.
|
inline |
Definition at line 2990 of file document.h.
|
inline |
Definition at line 2983 of file document.h.
|
inline |
Definition at line 2976 of file document.h.
|
inline |
Definition at line 2975 of file document.h.
|
inline |
Definition at line 2984 of file document.h.
|
inline |
Definition at line 2985 of file document.h.
|
inline |
Definition at line 2977 of file document.h.
|
inline |
Definition at line 2974 of file document.h.
|
inline |
Definition at line 2971 of file document.h.
|
inline |
Definition at line 2979 of file document.h.
|
inline |
Definition at line 2978 of file document.h.
|
inline |
Definition at line 3011 of file document.h.
|
inline |
Definition at line 3012 of file document.h.
|
inline |
Definition at line 3016 of file document.h.
|
inline |
Definition at line 3017 of file document.h.
Definition at line 2968 of file document.h.
| T AllocatorType &allocator GenericObject< Const, ValueT >::const { value_.AddMember(name, value, allocator) |
Definition at line 3001 of file document.h.
| return * GenericObject< Const, ValueT >::this |
Definition at line 3001 of file document.h.
| T GenericObject< Const, ValueT >::value |
Definition at line 3001 of file document.h.
|
private |
Definition at line 3034 of file document.h.