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 const ValueT * | ConstValueIterator |
| typedef ValueType::AllocatorType | AllocatorType |
| typedef ValueType::StringRefType | StringRefType |
Public Member Functions | |
| GenericArray (const GenericArray &rhs) | |
| GenericArray & | operator= (const GenericArray &rhs) |
| ~GenericArray () | |
| 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 | |
| AllocatorType &allocator | const { value_.PushBack(value, allocator) |
| 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 558 of file document.h.
| typedef ValueType::AllocatorType GenericArray< Const, ValueT >::AllocatorType |
Definition at line 2518 of file document.h.
| typedef GenericArray<false, ValueT> GenericArray< Const, ValueT >::Array |
Definition at line 2513 of file document.h.
| typedef GenericArray<true, ValueT> GenericArray< Const, ValueT >::ConstArray |
Definition at line 2512 of file document.h.
| typedef const ValueT* GenericArray< Const, ValueT >::ConstValueIterator |
Definition at line 2517 of file document.h.
| typedef ValueT GenericArray< Const, ValueT >::PlainType |
Definition at line 2514 of file document.h.
| typedef ValueType::StringRefType GenericArray< Const, ValueT >::StringRefType |
Definition at line 2519 of file document.h.
| typedef ValueType* GenericArray< Const, ValueT >::ValueIterator |
Definition at line 2516 of file document.h.
| typedef internal::MaybeAddConst<Const,PlainType>::Type GenericArray< Const, ValueT >::ValueType |
Definition at line 2515 of file document.h.
|
inline |
Definition at line 2524 of file document.h.
|
inline |
Definition at line 2526 of file document.h.
|
private |
|
inlineprivate |
Definition at line 2553 of file document.h.
|
inline |
Definition at line 2533 of file document.h.
|
inline |
Definition at line 2529 of file document.h.
|
inline |
Definition at line 2531 of file document.h.
|
inline |
Definition at line 2530 of file document.h.
|
inline |
Definition at line 2534 of file document.h.
|
inline |
Definition at line 2543 of file document.h.
|
inline |
Definition at line 2544 of file document.h.
|
inline |
Definition at line 2525 of file document.h.
|
inline |
Definition at line 2532 of file document.h.
|
inline |
Definition at line 2542 of file document.h.
|
inline |
Definition at line 2536 of file document.h.
|
inline |
Definition at line 2540 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 2535 of file document.h.
|
inline |
Definition at line 2528 of file document.h.
|
friend |
Definition at line 2522 of file document.h.
| AllocatorType& allocator GenericArray< Const, ValueT >::const { value_.PushBack(value, allocator) |
Definition at line 2541 of file document.h.
| return* GenericArray< Const, ValueT >::this |
Definition at line 2541 of file document.h.
|
private |
Definition at line 2554 of file document.h.
1.8.11