![]() |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Helper class for accessing Value of array type. More...
#include <document.h>
Public Types | |
typedef GenericArray< true, ValueT > | ConstArray |
typedef GenericArray< false, ValueT > | Array |
typedef ValueT | PlainType |
typedef internal::MaybeAddConst< Const, PlainType >::Type | ValueType |
typedef ValueType * | ValueIterator |
typedef ValueType::AllocatorType | AllocatorType |
typedef ValueType::StringRefType | StringRefType |
Public Member Functions | |
GenericArray (const GenericArray &rhs) | |
GenericArray & | operator= (const GenericArray &rhs) |
~GenericArray () | |
operator ValueType & () const | |
SizeType | Size () const |
SizeType | Capacity () const |
bool | Empty () const |
void | Clear () const |
ValueType & | operator[] (SizeType index) const |
ValueIterator | Begin () const |
ValueIterator | End () const |
GenericArray | Reserve (SizeType newCapacity, AllocatorType &allocator) const |
GenericArray | PushBack (ValueType &value, AllocatorType &allocator) const |
GenericArray | PushBack (StringRefType value, AllocatorType &allocator) const |
template<typename T > | |
RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >),(const GenericArray &)) PushBack(T value | |
GenericArray | PopBack () const |
ValueIterator | Erase (ConstValueIterator pos) const |
ValueIterator | Erase (ConstValueIterator first, ConstValueIterator last) const |
Public Attributes | |
const typedef ValueT * | ConstValueIterator |
AllocatorType &const | allocator { value_.PushBack(value, allocator) |
return * | this |
Friends | |
template<typename , typename > | |
class | GenericValue |
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
.
typedef ValueType::AllocatorType GenericArray< Const, ValueT >::AllocatorType |
typedef GenericArray<false, ValueT> GenericArray< Const, ValueT >::Array |
typedef GenericArray<true, ValueT> GenericArray< Const, ValueT >::ConstArray |
typedef ValueT GenericArray< Const, ValueT >::PlainType |
typedef ValueType::StringRefType GenericArray< Const, ValueT >::StringRefType |
typedef ValueType* GenericArray< Const, ValueT >::ValueIterator |
typedef internal::MaybeAddConst<Const,PlainType>::Type GenericArray< Const, ValueT >::ValueType |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
GenericArray< Const, ValueT >::RAPIDJSON_DISABLEIF_RETURN | ( | (internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >) | , |
(const GenericArray< Const, ValueT > &) | |||
) |
|
inline |
|
inline |
|
friend |
AllocatorType& const GenericArray< Const, ValueT >::allocator { value_.PushBack(value, allocator) |
const typedef ValueT* GenericArray< Const, ValueT >::ConstValueIterator |
return* GenericArray< Const, ValueT >::this |