Public Member Functions | Public Attributes | Private Member Functions | Friends | List of all members
GenericMember< Encoding, Allocator > Class Template Reference

Name-value pair in a JSON object value. More...

#include <document.h>

Public Member Functions

GenericMemberoperator= (GenericMember &rhs) RAPIDJSON_NOEXCEPT
 Assignment with move semantics. More...
 

Public Attributes

GenericValue< Encoding, Allocator > name
 name of member (must be a string) More...
 
GenericValue< Encoding, Allocator > value
 value of member. More...
 

Private Member Functions

 GenericMember (const GenericMember &rhs)
 Copy constructor is not permitted. More...
 

Friends

void swap (GenericMember &a, GenericMember &b) RAPIDJSON_NOEXCEPT
 

Detailed Description

template<typename Encoding, typename Allocator>
class GenericMember< Encoding, Allocator >

Name-value pair in a JSON object value.

This class was internal to GenericValue. It used to be a inner struct. But a compiler (IBM XL C/C++ for AIX) have reported to have problem with that so it moved as a namespace scope struct. https://code.google.com/p/rapidjson/issues/detail?id=64

Definition at line 72 of file document.h.

Constructor & Destructor Documentation

template<typename Encoding , typename Allocator >
GenericMember< Encoding, Allocator >::GenericMember ( const GenericMember< Encoding, Allocator > &  rhs)
private

Copy constructor is not permitted.

Member Function Documentation

template<typename Encoding , typename Allocator >
GenericMember& GenericMember< Encoding, Allocator >::operator= ( GenericMember< Encoding, Allocator > &  rhs)
inline

Assignment with move semantics.

Parameters
rhsSource of the assignment. Its name and value will become a null value after assignment.

Definition at line 94 of file document.h.

Friends And Related Function Documentation

template<typename Encoding , typename Allocator >
void swap ( GenericMember< Encoding, Allocator > &  a,
GenericMember< Encoding, Allocator > &  b 
)
friend

Definition at line 103 of file document.h.

Member Data Documentation

template<typename Encoding , typename Allocator >
GenericValue<Encoding, Allocator> GenericMember< Encoding, Allocator >::name

name of member (must be a string)

Definition at line 75 of file document.h.

template<typename Encoding , typename Allocator >
GenericValue<Encoding, Allocator> GenericMember< Encoding, Allocator >::value

value of member.

Definition at line 76 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