bes  Updated for version 3.20.6
GenericArray< Const, ValueT > Class Template Reference

Helper class for accessing Value of array type. More...

#include <document.h>

Collaboration diagram for GenericArray< Const, ValueT >:
Collaboration graph

Public Types

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

Public Member Functions

ValueIterator Begin () const
 
ValueIterator Begin () const
 
SizeType Capacity () const
 
SizeType Capacity () const
 
void Clear () const
 
void Clear () const
 
bool Empty () const
 
bool Empty () const
 
ValueIterator End () const
 
ValueIterator End () const
 
ValueIterator Erase (ConstValueIterator first, ConstValueIterator last) const
 
ValueIterator Erase (ConstValueIterator first, ConstValueIterator last) const
 
ValueIterator Erase (ConstValueIterator pos) const
 
ValueIterator Erase (ConstValueIterator pos) const
 
 GenericArray (const GenericArray &rhs)
 
 GenericArray (const GenericArray &rhs)
 
GenericArrayoperator= (const GenericArray &rhs)
 
GenericArrayoperator= (const GenericArray &rhs)
 
ValueType & operator[] (SizeType index) const
 
ValueType & operator[] (SizeType index) const
 
GenericArray PopBack () const
 
GenericArray PopBack () const
 
GenericArray PushBack (StringRefType value, AllocatorType &allocator) const
 
GenericArray PushBack (StringRefType value, AllocatorType &allocator) const
 
GenericArray PushBack (ValueType &value, AllocatorType &allocator) const
 
GenericArray PushBack (ValueType &value, AllocatorType &allocator) const
 
template<typename T >
 RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >),(const GenericArray &)) PushBack(T value
 
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
 
GenericArray Reserve (SizeType newCapacity, AllocatorType &allocator) const
 
SizeType Size () const
 
SizeType Size () const
 

Public Attributes

AllocatorType &const allocator { value_.PushBack(value, allocator)
 
const typedef ValueT * ConstValueIterator
 
return * this
 

Friends

template<typename , typename >
class GenericValue
 
template<typename , typename >
class GenericValue
 

Detailed Description

template<bool Const, typename ValueT>
class GenericArray< Const, ValueT >

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 523 of file cmr_module/rapidjson/document.h.


The documentation for this class was generated from the following file: