VR-Vantage 3.0 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Friends
GenericArray< Const, ValueT > Class Template Reference

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

Public Types

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

Public Member Functions

 GenericArray (const GenericArray &rhs)
GenericArrayoperator= (const GenericArray &rhs)
 ~GenericArray ()
SizeType Size () const
SizeType Capacity () const
bool Empty () const
void Clear () const
ValueTypeoperator[] (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 (ValueType &value)

Public Attributes

ValueTypevalue_

Friends

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.

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Member Function Documentation

template<bool Const, typename ValueT >
GenericArray& GenericArray< Const, ValueT >::operator= ( const GenericArray< Const, ValueT > &  rhs)
inline
template<bool Const, typename ValueT >
SizeType GenericArray< Const, ValueT >::Size ( void  ) const
inline
template<bool Const, typename ValueT >
SizeType GenericArray< Const, ValueT >::Capacity ( ) const
inline
template<bool Const, typename ValueT >
bool GenericArray< Const, ValueT >::Empty ( ) const
inline
template<bool Const, typename ValueT >
void GenericArray< Const, ValueT >::Clear ( void  ) const
inline
template<bool Const, typename ValueT >
ValueType& GenericArray< Const, ValueT >::operator[] ( SizeType  index) const
inline
template<bool Const, typename ValueT >
ValueIterator GenericArray< Const, ValueT >::Begin ( ) const
inline
template<bool Const, typename ValueT >
ValueIterator GenericArray< Const, ValueT >::End ( ) const
inline
template<bool Const, typename ValueT >
GenericArray GenericArray< Const, ValueT >::Reserve ( SizeType  newCapacity,
AllocatorType allocator 
) const
inline
template<bool Const, typename ValueT >
GenericArray GenericArray< Const, ValueT >::PushBack ( ValueType value,
AllocatorType allocator 
) const
inline
template<bool Const, typename ValueT >
GenericArray GenericArray< Const, ValueT >::PushBack ( StringRefType  value,
AllocatorType allocator 
) const
inline
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 > &)   
)

Friends And Related Function Documentation

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

Member Data Documentation

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

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


Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)