GenericArray
Engine/source/persistence/rapidjson/document.h
Helper class for accessing Value of array type.
Public Types
ValueType::AllocatorType
AllocatorType
GenericArray< false, ValueT >
Array
GenericArray< true, ValueT >
ConstArray
const ValueT *
ConstValueIterator
ValueT
PlainType
ValueType::StringRefType
StringRefType
ValueIterator
Public Friends
class
Public Attributes
AllocatorType &allocator
return *
Public Functions
GenericArray(const GenericArray & rhs)
bool
Empty()
Erase(ConstValueIterator first, ConstValueIterator last)
operator=(const GenericArray & rhs)
operator[](SizeType index)
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)
Private Functions
GenericArray(ValueType & value)
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()