GenericObject
Engine/source/persistence/rapidjson/document.h
Helper class for accessing Value of object type.
Public Types
ValueType::AllocatorType
AllocatorType
ValueType::Ch
Ch
GenericMemberIterator< true, typename ValueT::EncodingType, typename ValueT::AllocatorType >
ConstMemberIterator
GenericObject< true, ValueT >
ConstObject
ValueType::EncodingType
EncodingType
GenericMemberIterator< Const, typename ValueT::EncodingType, typename ValueT::AllocatorType >
MemberIterator
GenericObject< false, ValueT >
Object
ValueT
PlainType
ValueType::StringRefType
StringRefType
Public Friends
class
Public Functions
GenericObject(const GenericObject & rhs)
AddMember(StringRefType name, StringRefType value, AllocatorType & allocator)
AddMember(StringRefType name, ValueType & value, AllocatorType & allocator)
AddMember(ValueType & name, StringRefType value, AllocatorType & allocator)
AddMember(ValueType & name, ValueType & value, AllocatorType & allocator)
bool
EraseMember(const Ch * name)
bool
EraseMember(const GenericValue< EncodingType, SourceAllocator > & name)
EraseMember(ConstMemberIterator first, ConstMemberIterator last)
FindMember(const Ch * name)
FindMember(const GenericValue< EncodingType, SourceAllocator > & name)
bool
HasMember(const GenericValue< EncodingType, SourceAllocator > & name)
MemberReserve(SizeType newCapacity, AllocatorType & allocator)
bool
operator=(const GenericObject & rhs)
operator[](const GenericValue< EncodingType, SourceAllocator > & name)
operator[](T * name)
RAPIDJSON_DISABLEIF_RETURN((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >) , (GenericObject) )
RAPIDJSON_DISABLEIF_RETURN((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >) , (ValueType &) )
bool
RemoveMember(const Ch * name)
bool
RemoveMember(const GenericValue< EncodingType, SourceAllocator > & name)
Private Functions
GenericObject(ValueType & value)
Detailed Description
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.
Public Types
typedef ValueType::AllocatorType AllocatorType
typedef ValueType::Ch Ch
typedef GenericMemberIterator< true, typename ValueT::EncodingType, typename ValueT::AllocatorType > ConstMemberIterator
typedef GenericObject< true, ValueT > ConstObject
typedef ValueType::EncodingType EncodingType
typedef GenericMemberIterator< Const, typename ValueT::EncodingType, typename ValueT::AllocatorType > MemberIterator
typedef GenericObject< false, ValueT > Object
typedef ValueT PlainType
typedef ValueType::StringRefType StringRefType
typedef internal::MaybeAddConst< Const, PlainType >::Type ValueType
Public Friends
Public Attributes
T AllocatorType &allocator const
return * this
T value
Private Attributes
ValueType & value_
Public Functions
GenericObject(const GenericObject & rhs)
~GenericObject()
AddMember(StringRefType name, StringRefType value, AllocatorType & allocator)
AddMember(StringRefType name, ValueType & value, AllocatorType & allocator)
AddMember(ValueType & name, StringRefType value, AllocatorType & allocator)
AddMember(ValueType & name, ValueType & value, AllocatorType & allocator)
EraseMember(const Ch * name)
EraseMember(const GenericValue< EncodingType, SourceAllocator > & name)
EraseMember(ConstMemberIterator first, ConstMemberIterator last)
EraseMember(ConstMemberIterator pos)
FindMember(const Ch * name)
FindMember(const GenericValue< EncodingType, SourceAllocator > & name)
HasMember(const Ch * name)
HasMember(const GenericValue< EncodingType, SourceAllocator > & name)
MemberBegin()
MemberCapacity()
MemberCount()
MemberEnd()
MemberReserve(SizeType newCapacity, AllocatorType & allocator)
ObjectEmpty()
operator=(const GenericObject & rhs)
operator[](const GenericValue< EncodingType, SourceAllocator > & name)
operator[](T * name)
RAPIDJSON_DISABLEIF_RETURN((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >) , (GenericObject) )
RAPIDJSON_DISABLEIF_RETURN((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >) , (ValueType &) )
RemoveAllMembers()
RemoveMember(const Ch * name)
RemoveMember(const GenericValue< EncodingType, SourceAllocator > & name)
RemoveMember(MemberIterator m)