Helper class for accessing Value of array type. More...
#include <document.h>
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 Member Functions | |
ValueIterator | Begin () const |
SizeType | Capacity () const |
void | Clear () const |
bool | Empty () const |
ValueIterator | End () const |
ValueIterator | Erase (ConstValueIterator pos) const |
ValueIterator | Erase (ConstValueIterator first, ConstValueIterator last) const |
GenericArray (const GenericArray &rhs) | |
GenericArray & | operator= (const GenericArray &rhs) |
ValueType & | operator[] (SizeType index) const |
GenericArray | PopBack () 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 | Reserve (SizeType newCapacity, AllocatorType &allocator) const |
SizeType | Size () const |
~GenericArray () | |
Public Attributes | |
AllocatorType &allocator | const |
return * | this |
Private Member Functions | |
GenericArray () | |
GenericArray (ValueType &value) | |
Private Attributes | |
ValueType & | value_ |
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
.
Definition at line 692 of file document.h.
typedef ValueType::AllocatorType GenericArray< Const, ValueT >::AllocatorType |
Definition at line 3046 of file document.h.
typedef GenericArray<false, ValueT> GenericArray< Const, ValueT >::Array |
Definition at line 3041 of file document.h.
typedef GenericArray<true, ValueT> GenericArray< Const, ValueT >::ConstArray |
Definition at line 3040 of file document.h.
typedef const ValueT* GenericArray< Const, ValueT >::ConstValueIterator |
Definition at line 3045 of file document.h.
typedef ValueT GenericArray< Const, ValueT >::PlainType |
Definition at line 3042 of file document.h.
typedef ValueType::StringRefType GenericArray< Const, ValueT >::StringRefType |
Definition at line 3047 of file document.h.
typedef ValueType* GenericArray< Const, ValueT >::ValueIterator |
Definition at line 3044 of file document.h.
typedef internal::MaybeAddConst<Const, PlainType>::Type GenericArray< Const, ValueT >::ValueType |
Definition at line 3043 of file document.h.
|
inline |
Definition at line 3052 of file document.h.
|
inline |
Definition at line 3057 of file document.h.
|
private |
|
inlineprivate |
Definition at line 3110 of file document.h.
|
inline |
Definition at line 3064 of file document.h.
|
inline |
Definition at line 3060 of file document.h.
|
inline |
Definition at line 3062 of file document.h.
|
inline |
Definition at line 3061 of file document.h.
|
inline |
Definition at line 3065 of file document.h.
|
inline |
Definition at line 3096 of file document.h.
|
inline |
Definition at line 3099 of file document.h.
|
inline |
Definition at line 3053 of file document.h.
|
inline |
Definition at line 3063 of file document.h.
|
inline |
Definition at line 3092 of file document.h.
|
inline |
Definition at line 3070 of file document.h.
|
inline |
Definition at line 3080 of file document.h.
GenericArray< Const, ValueT >::RAPIDJSON_DISABLEIF_RETURN | ( | (internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T >>) | , |
(const GenericArray< Const, ValueT > &) | |||
) |
|
inline |
Definition at line 3066 of file document.h.
|
inline |
Definition at line 3059 of file document.h.
|
friend |
Definition at line 3050 of file document.h.
AllocatorType& allocator GenericArray< Const, ValueT >::const |
Definition at line 3088 of file document.h.
return* GenericArray< Const, ValueT >::this |
Definition at line 3090 of file document.h.
|
private |
Definition at line 3111 of file document.h.