Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
GenericMember< Encoding, Allocator > Struct Template Reference

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

#include <document.h>

Collaboration diagram for GenericMember< Encoding, Allocator >:

Public Attributes

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

Friends

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

Detailed Description

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

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

Friends And Related Symbol Documentation

◆ swap

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

Definition at line 71 of file document.h.

71 {
72 a.name.Swap(b.name);
73 a.value.Swap(b.value);
74 }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
GenericValue< Encoding, Allocator > name
name of member (must be a string)
Definition document.h:67
GenericValue< Encoding, Allocator > value
value of member.
Definition document.h:68

Member Data Documentation

◆ name

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

Definition at line 67 of file document.h.

◆ value

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

Definition at line 68 of file document.h.


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