VR-Vantage 3.0.3 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
GenericObject< Const, ValueT > Class Template Reference

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

Public Types

typedef GenericObject< true,
ValueT > 
ConstObject
typedef GenericObject< false,
ValueT > 
Object
typedef ValueT PlainType
typedef
internal::MaybeAddConst< Const,
PlainType >::Type 
ValueType
typedef GenericMemberIterator
< Const, typename
ValueT::EncodingType, typename
ValueT::AllocatorType > 
MemberIterator
typedef GenericMemberIterator
< true, typename
ValueT::EncodingType, typename
ValueT::AllocatorType > 
ConstMemberIterator
typedef ValueType::AllocatorType AllocatorType
typedef ValueType::StringRefType StringRefType
typedef ValueType::EncodingType EncodingType
typedef ValueType::Ch Ch

Public Member Functions

 GenericObject (const GenericObject &rhs)
GenericObjectoperator= (const GenericObject &rhs)
 ~GenericObject ()
SizeType MemberCount () const
bool ObjectEmpty () const
template<typename T >
ValueTypeoperator[] (T *name) const
template<typename SourceAllocator >
ValueTypeoperator[] (const GenericValue< EncodingType, SourceAllocator > &name) const
MemberIterator MemberBegin () const
MemberIterator MemberEnd () const
bool HasMember (const Ch *name) const
template<typename SourceAllocator >
bool HasMember (const GenericValue< EncodingType, SourceAllocator > &name) const
MemberIterator FindMember (const Ch *name) const
template<typename SourceAllocator >
MemberIterator FindMember (const GenericValue< EncodingType, SourceAllocator > &name) const
GenericObject AddMember (ValueType &name, ValueType &value, AllocatorType &allocator) const
GenericObject AddMember (ValueType &name, StringRefType value, AllocatorType &allocator) const
template<typename T >
 RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >),(ValueType &)) AddMember(ValueType &name
 GenericObject (ValueType &value)

Public Attributes

value
ValueTypevalue_

Friends

class GenericValue

Detailed Description

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

Helper class for accessing Value of object type.

Instance of this helper class is obtained by GenericValue::GetObject(). 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 GenericObject<true, ValueT> GenericObject< Const, ValueT >::ConstObject
template<bool Const, typename ValueT >
typedef GenericObject<false, ValueT> GenericObject< Const, ValueT >::Object
template<bool Const, typename ValueT >
typedef ValueT GenericObject< Const, ValueT >::PlainType
template<bool Const, typename ValueT >
typedef internal::MaybeAddConst<Const,PlainType>::Type GenericObject< Const, ValueT >::ValueType
template<bool Const, typename ValueT >
typedef GenericMemberIterator<Const, typename ValueT::EncodingType, typename ValueT::AllocatorType> GenericObject< Const, ValueT >::MemberIterator
template<bool Const, typename ValueT >
typedef GenericMemberIterator<true, typename ValueT::EncodingType, typename ValueT::AllocatorType> GenericObject< Const, ValueT >::ConstMemberIterator
template<bool Const, typename ValueT >
typedef ValueType::AllocatorType GenericObject< Const, ValueT >::AllocatorType
template<bool Const, typename ValueT >
typedef ValueType::StringRefType GenericObject< Const, ValueT >::StringRefType
template<bool Const, typename ValueT >
typedef ValueType::EncodingType GenericObject< Const, ValueT >::EncodingType
template<bool Const, typename ValueT >
typedef ValueType::Ch GenericObject< Const, ValueT >::Ch

Constructor & Destructor Documentation

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

Member Function Documentation

template<bool Const, typename ValueT >
GenericObject& GenericObject< Const, ValueT >::operator= ( const GenericObject< Const, ValueT > &  rhs)
inline
template<bool Const, typename ValueT >
SizeType GenericObject< Const, ValueT >::MemberCount ( ) const
inline
template<bool Const, typename ValueT >
bool GenericObject< Const, ValueT >::ObjectEmpty ( ) const
inline
template<bool Const, typename ValueT >
template<typename T >
ValueType& GenericObject< Const, ValueT >::operator[] ( T *  name) const
inline
template<bool Const, typename ValueT >
template<typename SourceAllocator >
ValueType& GenericObject< Const, ValueT >::operator[] ( const GenericValue< EncodingType, SourceAllocator > &  name) const
inline
template<bool Const, typename ValueT >
MemberIterator GenericObject< Const, ValueT >::MemberBegin ( ) const
inline
template<bool Const, typename ValueT >
MemberIterator GenericObject< Const, ValueT >::MemberEnd ( ) const
inline
template<bool Const, typename ValueT >
bool GenericObject< Const, ValueT >::HasMember ( const Ch name) const
inline
template<bool Const, typename ValueT >
template<typename SourceAllocator >
bool GenericObject< Const, ValueT >::HasMember ( const GenericValue< EncodingType, SourceAllocator > &  name) const
inline
template<bool Const, typename ValueT >
MemberIterator GenericObject< Const, ValueT >::FindMember ( const Ch name) const
inline
template<bool Const, typename ValueT >
template<typename SourceAllocator >
MemberIterator GenericObject< Const, ValueT >::FindMember ( const GenericValue< EncodingType, SourceAllocator > &  name) const
inline
template<bool Const, typename ValueT >
GenericObject GenericObject< Const, ValueT >::AddMember ( ValueType name,
ValueType value,
AllocatorType allocator 
) const
inline
template<bool Const, typename ValueT >
GenericObject GenericObject< Const, ValueT >::AddMember ( ValueType name,
StringRefType  value,
AllocatorType allocator 
) const
inline
template<bool Const, typename ValueT >
template<typename T >
GenericObject< Const, ValueT >::RAPIDJSON_DISABLEIF_RETURN ( (internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >)  ,
(ValueType &)   
)

Friends And Related Function Documentation

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

Member Data Documentation

template<bool Const, typename ValueT >
T GenericObject< Const, ValueT >::value
template<bool Const, typename ValueT >
ValueType& GenericObject< Const, ValueT >::value_

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


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