GenericArray

Engine/source/persistence/rapidjson/document.h

Helper class for accessing Value of array type.

More...

Public Types

ValueType::AllocatorType
AllocatorType 
GenericArray< false, ValueT >
Array 
GenericArray< true, ValueT >
ConstArray 
const ValueT *
ConstValueIterator 
ValueT
PlainType 
ValueType::StringRefType
StringRefType 
ValueIterator 
internal::MaybeAddConst< Const, PlainType >::Type
ValueType 

Public Friends

Public Attributes

AllocatorType &allocator
return *

Private Attributes

Private Functions

Detailed Description

Helper class for accessing Value of array type.

Instance of this helper class is obtained by

GenericValue::GetArray()
. 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 GenericArray< false, ValueT > Array 
typedef GenericArray< true, ValueT > ConstArray 
typedef const ValueT * ConstValueIterator 
typedef ValueT PlainType 
typedef ValueType::StringRefType StringRefType 
typedef ValueType * ValueIterator 
typedef internal::MaybeAddConst< Const, PlainType >::Type ValueType 

Public Friends

Public Attributes

AllocatorType &allocator const 
return * this 

Private Attributes

ValueType & value_ 

Public Functions

GenericArray(const GenericArray & rhs)

~GenericArray()

Begin()

Capacity()

Clear()

Empty()

End()

Erase(ConstValueIterator first, ConstValueIterator last)

Erase(ConstValueIterator pos)

operator=(const GenericArray & rhs)

operator[](SizeType index)

PopBack()

PushBack(StringRefType value, AllocatorType & allocator)

PushBack(ValueType & value, AllocatorType & allocator)

RAPIDJSON_DISABLEIF_RETURN((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >) , (const GenericArray &) )

Reserve(SizeType newCapacity, AllocatorType & allocator)

Size()

Private Functions

GenericArray()

GenericArray(ValueType & value)