Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
GenericArray< Const, ValueT > Class Template Reference

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 ValueTypeValueIterator
 
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)
 
GenericArrayoperator= (const GenericArray &rhs)
 
ValueTypeoperator[] (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 { value_.PushBack(value, allocator)
 
return * this
 

Private Member Functions

 GenericArray ()
 
 GenericArray (ValueType &value)
 

Private Attributes

ValueTypevalue_
 

Friends

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 542 of file document.h.

Member Typedef Documentation

template<bool Const, typename ValueT >
typedef ValueType::AllocatorType GenericArray< Const, ValueT >::AllocatorType

Definition at line 2493 of file document.h.

template<bool Const, typename ValueT >
typedef GenericArray<false, ValueT> GenericArray< Const, ValueT >::Array

Definition at line 2488 of file document.h.

template<bool Const, typename ValueT >
typedef GenericArray<true, ValueT> GenericArray< Const, ValueT >::ConstArray

Definition at line 2487 of file document.h.

template<bool Const, typename ValueT >
typedef const ValueT* GenericArray< Const, ValueT >::ConstValueIterator

Definition at line 2492 of file document.h.

template<bool Const, typename ValueT >
typedef ValueT GenericArray< Const, ValueT >::PlainType

Definition at line 2489 of file document.h.

template<bool Const, typename ValueT >
typedef ValueType::StringRefType GenericArray< Const, ValueT >::StringRefType

Definition at line 2494 of file document.h.

template<bool Const, typename ValueT >
typedef ValueType* GenericArray< Const, ValueT >::ValueIterator

Definition at line 2491 of file document.h.

template<bool Const, typename ValueT >
typedef internal::MaybeAddConst<Const,PlainType>::Type GenericArray< Const, ValueT >::ValueType

Definition at line 2490 of file document.h.

Constructor & Destructor Documentation

template<bool Const, typename ValueT >
GenericArray< Const, ValueT >::GenericArray ( const GenericArray< Const, ValueT > &  rhs)
inline

Definition at line 2499 of file document.h.

template<bool Const, typename ValueT >
GenericArray< Const, ValueT >::~GenericArray ( )
inline

Definition at line 2501 of file document.h.

template<bool Const, typename ValueT >
GenericArray< Const, ValueT >::GenericArray ( )
private
template<bool Const, typename ValueT >
GenericArray< Const, ValueT >::GenericArray ( ValueType value)
inlineprivate

Definition at line 2528 of file document.h.

Member Function Documentation

template<bool Const, typename ValueT >
ValueIterator GenericArray< Const, ValueT >::Begin ( ) const
inline

Definition at line 2508 of file document.h.

template<bool Const, typename ValueT >
SizeType GenericArray< Const, ValueT >::Capacity ( ) const
inline

Definition at line 2504 of file document.h.

template<bool Const, typename ValueT >
void GenericArray< Const, ValueT >::Clear ( ) const
inline

Definition at line 2506 of file document.h.

template<bool Const, typename ValueT >
bool GenericArray< Const, ValueT >::Empty ( ) const
inline

Definition at line 2505 of file document.h.

template<bool Const, typename ValueT >
ValueIterator GenericArray< Const, ValueT >::End ( ) const
inline

Definition at line 2509 of file document.h.

template<bool Const, typename ValueT >
ValueIterator GenericArray< Const, ValueT >::Erase ( ConstValueIterator  pos) const
inline

Definition at line 2518 of file document.h.

template<bool Const, typename ValueT >
ValueIterator GenericArray< Const, ValueT >::Erase ( ConstValueIterator  first,
ConstValueIterator  last 
) const
inline

Definition at line 2519 of file document.h.

template<bool Const, typename ValueT >
GenericArray& GenericArray< Const, ValueT >::operator= ( const GenericArray< Const, ValueT > &  rhs)
inline

Definition at line 2500 of file document.h.

template<bool Const, typename ValueT >
ValueType& GenericArray< Const, ValueT >::operator[] ( SizeType  index) const
inline

Definition at line 2507 of file document.h.

template<bool Const, typename ValueT >
GenericArray GenericArray< Const, ValueT >::PopBack ( ) const
inline

Definition at line 2517 of file document.h.

template<bool Const, typename ValueT >
GenericArray GenericArray< Const, ValueT >::PushBack ( ValueType value,
AllocatorType allocator 
) const
inline

Definition at line 2511 of file document.h.

template<bool Const, typename ValueT >
GenericArray GenericArray< Const, ValueT >::PushBack ( StringRefType  value,
AllocatorType allocator 
) const
inline

Definition at line 2515 of file document.h.

template<bool Const, typename ValueT >
template<typename T >
GenericArray< Const, ValueT >::RAPIDJSON_DISABLEIF_RETURN ( (internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >)  ,
(const GenericArray< Const, ValueT > &)   
)
template<bool Const, typename ValueT >
GenericArray GenericArray< Const, ValueT >::Reserve ( SizeType  newCapacity,
AllocatorType allocator 
) const
inline

Definition at line 2510 of file document.h.

template<bool Const, typename ValueT >
SizeType GenericArray< Const, ValueT >::Size ( ) const
inline

Definition at line 2503 of file document.h.

Friends And Related Function Documentation

template<bool Const, typename ValueT >
template<typename , typename >
friend class GenericValue
friend

Definition at line 2497 of file document.h.

Member Data Documentation

template<bool Const, typename ValueT >
AllocatorType& allocator GenericArray< Const, ValueT >::const { value_.PushBack(value, allocator)

Definition at line 2516 of file document.h.

template<bool Const, typename ValueT >
return* GenericArray< Const, ValueT >::this

Definition at line 2516 of file document.h.

template<bool Const, typename ValueT >
ValueType& GenericArray< Const, ValueT >::value_
private

Definition at line 2529 of file document.h.


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


choreo_rapidjson
Author(s):
autogenerated on Thu Jul 18 2019 03:59:10