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

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

#include <document.h>

Public Types

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

Public Member Functions

GenericObject AddMember (ValueType &name, ValueType &value, AllocatorType &allocator) const
 
GenericObject AddMember (ValueType &name, StringRefType value, AllocatorType &allocator) const
 
GenericObject AddMember (StringRefType name, ValueType &value, AllocatorType &allocator) const
 
GenericObject AddMember (StringRefType name, StringRefType value, AllocatorType &allocator) const
 
MemberIterator EraseMember (ConstMemberIterator pos) const
 
MemberIterator EraseMember (ConstMemberIterator first, ConstMemberIterator last) const
 
bool EraseMember (const Ch *name) const
 
template<typename SourceAllocator >
bool EraseMember (const GenericValue< EncodingType, SourceAllocator > &name) const
 
MemberIterator FindMember (const Ch *name) const
 
template<typename SourceAllocator >
MemberIterator FindMember (const GenericValue< EncodingType, SourceAllocator > &name) const
 
 GenericObject (const GenericObject &rhs)
 
bool HasMember (const Ch *name) const
 
template<typename SourceAllocator >
bool HasMember (const GenericValue< EncodingType, SourceAllocator > &name) const
 
MemberIterator MemberBegin () const
 
SizeType MemberCapacity () const
 
SizeType MemberCount () const
 
MemberIterator MemberEnd () const
 
GenericObject MemberReserve (SizeType newCapacity, AllocatorType &allocator) const
 
bool ObjectEmpty () const
 
GenericObjectoperator= (const GenericObject &rhs)
 
template<typename T >
ValueTypeoperator[] (T *name) const
 
template<typename SourceAllocator >
ValueTypeoperator[] (const GenericValue< EncodingType, SourceAllocator > &name) const
 
template<typename T >
 RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T >>),(ValueType &)) AddMember(ValueType &name
 
template<typename T >
 RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T >>),(GenericObject)) AddMember(StringRefType name
 
void RemoveAllMembers ()
 
bool RemoveMember (const Ch *name) const
 
template<typename SourceAllocator >
bool RemoveMember (const GenericValue< EncodingType, SourceAllocator > &name) const
 
MemberIterator RemoveMember (MemberIterator m) const
 
 ~GenericObject ()
 

Public Attributes

T AllocatorType &allocator const
 
return * this
 
value
 

Private Member Functions

 GenericObject ()
 
 GenericObject (ValueType &value)
 

Private Attributes

ValueTypevalue_
 

Friends

template<typename , typename >
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.

Definition at line 694 of file document.h.

Member Typedef Documentation

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

Definition at line 3133 of file document.h.

template<bool Const, typename ValueT >
typedef ValueType::Ch GenericObject< Const, ValueT >::Ch

Definition at line 3136 of file document.h.

template<bool Const, typename ValueT >
typedef GenericMemberIterator<true, typename ValueT::EncodingType, typename ValueT::AllocatorType> GenericObject< Const, ValueT >::ConstMemberIterator

Definition at line 3132 of file document.h.

template<bool Const, typename ValueT >
typedef GenericObject<true, ValueT> GenericObject< Const, ValueT >::ConstObject

Definition at line 3123 of file document.h.

template<bool Const, typename ValueT >
typedef ValueType::EncodingType GenericObject< Const, ValueT >::EncodingType

Definition at line 3135 of file document.h.

template<bool Const, typename ValueT >
typedef GenericMemberIterator<Const, typename ValueT::EncodingType, typename ValueT::AllocatorType> GenericObject< Const, ValueT >::MemberIterator

Definition at line 3129 of file document.h.

template<bool Const, typename ValueT >
typedef GenericObject<false, ValueT> GenericObject< Const, ValueT >::Object

Definition at line 3124 of file document.h.

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

Definition at line 3125 of file document.h.

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

Definition at line 3134 of file document.h.

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

Definition at line 3126 of file document.h.

Constructor & Destructor Documentation

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

Definition at line 3141 of file document.h.

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

Definition at line 3146 of file document.h.

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

Definition at line 3302 of file document.h.

Member Function Documentation

template<bool Const, typename ValueT >
GenericObject GenericObject< Const, ValueT >::AddMember ( ValueType name,
ValueType value,
AllocatorType allocator 
) const
inline

Definition at line 3196 of file document.h.

template<bool Const, typename ValueT >
GenericObject GenericObject< Const, ValueT >::AddMember ( ValueType name,
StringRefType  value,
AllocatorType allocator 
) const
inline

Definition at line 3201 of file document.h.

template<bool Const, typename ValueT >
GenericObject GenericObject< Const, ValueT >::AddMember ( StringRefType  name,
ValueType value,
AllocatorType allocator 
) const
inline

Definition at line 3243 of file document.h.

template<bool Const, typename ValueT >
GenericObject GenericObject< Const, ValueT >::AddMember ( StringRefType  name,
StringRefType  value,
AllocatorType allocator 
) const
inline

Definition at line 3248 of file document.h.

template<bool Const, typename ValueT >
MemberIterator GenericObject< Const, ValueT >::EraseMember ( ConstMemberIterator  pos) const
inline

Definition at line 3276 of file document.h.

template<bool Const, typename ValueT >
MemberIterator GenericObject< Const, ValueT >::EraseMember ( ConstMemberIterator  first,
ConstMemberIterator  last 
) const
inline

Definition at line 3279 of file document.h.

template<bool Const, typename ValueT >
bool GenericObject< Const, ValueT >::EraseMember ( const Ch name) const
inline

Definition at line 3283 of file document.h.

template<bool Const, typename ValueT >
template<typename SourceAllocator >
bool GenericObject< Const, ValueT >::EraseMember ( const GenericValue< EncodingType, SourceAllocator > &  name) const
inline

Definition at line 3290 of file document.h.

template<bool Const, typename ValueT >
MemberIterator GenericObject< Const, ValueT >::FindMember ( const Ch name) const
inline

Definition at line 3183 of file document.h.

template<bool Const, typename ValueT >
template<typename SourceAllocator >
MemberIterator GenericObject< Const, ValueT >::FindMember ( const GenericValue< EncodingType, SourceAllocator > &  name) const
inline

Definition at line 3187 of file document.h.

template<bool Const, typename ValueT >
bool GenericObject< Const, ValueT >::HasMember ( const Ch name) const
inline

Definition at line 3172 of file document.h.

template<bool Const, typename ValueT >
template<typename SourceAllocator >
bool GenericObject< Const, ValueT >::HasMember ( const GenericValue< EncodingType, SourceAllocator > &  name) const
inline

Definition at line 3179 of file document.h.

template<bool Const, typename ValueT >
MemberIterator GenericObject< Const, ValueT >::MemberBegin ( ) const
inline

Definition at line 3165 of file document.h.

template<bool Const, typename ValueT >
SizeType GenericObject< Const, ValueT >::MemberCapacity ( ) const
inline

Definition at line 3149 of file document.h.

template<bool Const, typename ValueT >
SizeType GenericObject< Const, ValueT >::MemberCount ( ) const
inline

Definition at line 3148 of file document.h.

template<bool Const, typename ValueT >
MemberIterator GenericObject< Const, ValueT >::MemberEnd ( ) const
inline

Definition at line 3166 of file document.h.

template<bool Const, typename ValueT >
GenericObject GenericObject< Const, ValueT >::MemberReserve ( SizeType  newCapacity,
AllocatorType allocator 
) const
inline

Definition at line 3167 of file document.h.

template<bool Const, typename ValueT >
bool GenericObject< Const, ValueT >::ObjectEmpty ( ) const
inline

Definition at line 3150 of file document.h.

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

Definition at line 3142 of file document.h.

template<bool Const, typename ValueT >
template<typename T >
ValueType& GenericObject< Const, ValueT >::operator[] ( T *  name) const
inline

Definition at line 3152 of file document.h.

template<bool Const, typename ValueT >
template<typename SourceAllocator >
ValueType& GenericObject< Const, ValueT >::operator[] ( const GenericValue< EncodingType, SourceAllocator > &  name) const
inline

Definition at line 3156 of file document.h.

template<bool Const, typename ValueT >
template<typename T >
GenericObject< Const, ValueT >::RAPIDJSON_DISABLEIF_RETURN ( (internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T >>)  ,
(ValueType &)   
)
template<bool Const, typename ValueT >
template<typename T >
GenericObject< Const, ValueT >::RAPIDJSON_DISABLEIF_RETURN ( (internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T >>)  ,
(GenericObject< Const, ValueT >)   
)
template<bool Const, typename ValueT >
void GenericObject< Const, ValueT >::RemoveAllMembers ( )
inline

Definition at line 3261 of file document.h.

template<bool Const, typename ValueT >
bool GenericObject< Const, ValueT >::RemoveMember ( const Ch name) const
inline

Definition at line 3262 of file document.h.

template<bool Const, typename ValueT >
template<typename SourceAllocator >
bool GenericObject< Const, ValueT >::RemoveMember ( const GenericValue< EncodingType, SourceAllocator > &  name) const
inline

Definition at line 3269 of file document.h.

template<bool Const, typename ValueT >
MemberIterator GenericObject< Const, ValueT >::RemoveMember ( MemberIterator  m) const
inline

Definition at line 3273 of file document.h.

Friends And Related Function Documentation

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

Definition at line 3139 of file document.h.

Member Data Documentation

template<bool Const, typename ValueT >
T AllocatorType &allocator GenericObject< Const, ValueT >::const
Initial value:
{
value_.AddMember(name, value, allocator)

Definition at line 3217 of file document.h.

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

Definition at line 3219 of file document.h.

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

Definition at line 3217 of file document.h.

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

Definition at line 3303 of file document.h.


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


livox_ros_driver
Author(s): Livox Dev Team
autogenerated on Mon Mar 15 2021 02:40:46