Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
GenericMember< Encoding, Allocator > Class Template Reference

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

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/common/arccore/common/internal/json/rapidjson/document.h>

Collaboration diagram for GenericMember< Encoding, Allocator >:

Public Member Functions

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

Public Attributes

GenericValue< Encoding, Allocatorname
 name of member (must be a string)
GenericValue< Encoding, Allocatorvalue
 value of member.

Private Member Functions

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

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

Member Function Documentation

◆ operator=()

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

References GenericMember(), name, RAPIDJSON_LIKELY, and value.

Here is the call graph for this function:

◆ swap

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

Definition at line 152 of file document.h.

Member Data Documentation

◆ name

name of member (must be a string)

Definition at line 123 of file document.h.

Referenced by operator=().

◆ value

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

value of member.

Definition at line 124 of file document.h.

Referenced by operator=().


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