bes  Updated for version 3.20.6
GenericObject< Const, ValueT > Class Template Reference

Helper class for accessing Value of object type. More...

#include <document.h>

Collaboration diagram for GenericObject< Const, ValueT >:
Collaboration graph

Public Types

typedef ValueType::AllocatorType AllocatorType
 
typedef ValueType::AllocatorType AllocatorType
 
typedef ValueType::Ch Ch
 
typedef ValueType::Ch Ch
 
typedef GenericMemberIterator< true, typename ValueT::EncodingType, typename ValueT::AllocatorType > ConstMemberIterator
 
typedef GenericMemberIterator< true, typename ValueT::EncodingType, typename ValueT::AllocatorType > ConstMemberIterator
 
typedef GenericObject< true, ValueT > ConstObject
 
typedef GenericObject< true, ValueT > ConstObject
 
typedef ValueType::EncodingType EncodingType
 
typedef ValueType::EncodingType EncodingType
 
typedef GenericMemberIterator< Const, typename ValueT::EncodingType, typename ValueT::AllocatorType > MemberIterator
 
typedef GenericMemberIterator< Const, typename ValueT::EncodingType, typename ValueT::AllocatorType > MemberIterator
 
typedef GenericObject< false, ValueT > Object
 
typedef GenericObject< false, ValueT > Object
 
typedef ValueT PlainType
 
typedef ValueT PlainType
 
typedef ValueType::StringRefType StringRefType
 
typedef ValueType::StringRefType StringRefType
 
typedef internal::MaybeAddConst< Const, PlainType >::Type ValueType
 
typedef internal::MaybeAddConst< Const, PlainType >::Type ValueType
 

Public Member Functions

GenericObject AddMember (StringRefType name, StringRefType value, AllocatorType &allocator) const
 
GenericObject AddMember (StringRefType name, StringRefType value, AllocatorType &allocator) const
 
GenericObject AddMember (StringRefType name, ValueType &value, AllocatorType &allocator) const
 
GenericObject AddMember (StringRefType name, ValueType &value, AllocatorType &allocator) const
 
GenericObject AddMember (ValueType &name, StringRefType value, AllocatorType &allocator) const
 
GenericObject AddMember (ValueType &name, StringRefType value, AllocatorType &allocator) const
 
GenericObject AddMember (ValueType &name, ValueType &value, AllocatorType &allocator) const
 
GenericObject AddMember (ValueType &name, ValueType &value, AllocatorType &allocator) const
 
bool EraseMember (const Ch *name) const
 
bool EraseMember (const Ch *name) const
 
template<typename SourceAllocator >
bool EraseMember (const GenericValue< EncodingType, SourceAllocator > &name) const
 
template<typename SourceAllocator >
bool EraseMember (const GenericValue< EncodingType, SourceAllocator > &name) const
 
MemberIterator EraseMember (ConstMemberIterator first, ConstMemberIterator last) const
 
MemberIterator EraseMember (ConstMemberIterator first, ConstMemberIterator last) const
 
MemberIterator EraseMember (ConstMemberIterator pos) const
 
MemberIterator EraseMember (ConstMemberIterator pos) const
 
MemberIterator FindMember (const Ch *name) const
 
MemberIterator FindMember (const Ch *name) const
 
template<typename SourceAllocator >
MemberIterator FindMember (const GenericValue< EncodingType, SourceAllocator > &name) const
 
template<typename SourceAllocator >
MemberIterator FindMember (const GenericValue< EncodingType, SourceAllocator > &name) const
 
 GenericObject (const GenericObject &rhs)
 
 GenericObject (const GenericObject &rhs)
 
bool HasMember (const Ch *name) const
 
bool HasMember (const Ch *name) const
 
template<typename SourceAllocator >
bool HasMember (const GenericValue< EncodingType, SourceAllocator > &name) const
 
template<typename SourceAllocator >
bool HasMember (const GenericValue< EncodingType, SourceAllocator > &name) const
 
MemberIterator MemberBegin () const
 
MemberIterator MemberBegin () const
 
SizeType MemberCount () const
 
SizeType MemberCount () const
 
MemberIterator MemberEnd () const
 
MemberIterator MemberEnd () const
 
bool ObjectEmpty () const
 
bool ObjectEmpty () const
 
GenericObjectoperator= (const GenericObject &rhs)
 
GenericObjectoperator= (const GenericObject &rhs)
 
template<typename SourceAllocator >
ValueType & operator[] (const GenericValue< EncodingType, SourceAllocator > &name) const
 
template<typename SourceAllocator >
ValueType & operator[] (const GenericValue< EncodingType, SourceAllocator > &name) const
 
template<typename T >
ValueType & operator[] (T *name) const
 
template<typename T >
ValueType & operator[] (T *name) const
 
template<typename T >
 RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >),(GenericObject)) AddMember(StringRefType name
 
template<typename T >
 RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >),(GenericObject)) AddMember(StringRefType name
 
template<typename T >
 RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >),(ValueType &)) AddMember(ValueType &name
 
template<typename T >
 RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >),(ValueType &)) AddMember(ValueType &name
 
void RemoveAllMembers ()
 
void RemoveAllMembers ()
 
bool RemoveMember (const Ch *name) const
 
bool RemoveMember (const Ch *name) const
 
template<typename SourceAllocator >
bool RemoveMember (const GenericValue< EncodingType, SourceAllocator > &name) const
 
template<typename SourceAllocator >
bool RemoveMember (const GenericValue< EncodingType, SourceAllocator > &name) const
 
MemberIterator RemoveMember (MemberIterator m) const
 
MemberIterator RemoveMember (MemberIterator m) const
 

Public Attributes

T AllocatorType &const allocator { value_.AddMember(name, value, allocator)
 
return * this
 
value
 

Friends

template<typename , typename >
class GenericValue
 
template<typename , typename >
class GenericValue
 

Detailed Description

template<bool Const, typename ValueT>
class GenericObject< Const, ValueT >

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 524 of file cmr_module/rapidjson/document.h.


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