Arcane  v3.16.8.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
Référence du modèle de la classe GenericValue< Encoding, Allocator >

Represents a JSON value. Use Value for UTF8 encoding and default allocator. Plus de détails...

#include <arcane/utils/internal/json/rapidjson/document.h>

+ Graphe d'héritage de GenericValue< Encoding, Allocator >:
+ Graphe de collaboration de GenericValue< Encoding, Allocator >:

Classes

struct  ArrayData
 
union  Data
 
struct  Flag
 
union  Number
 
struct  ObjectData
 
struct  ShortString
 
struct  String
 

Types publics

typedef GenericMember< Encoding, AllocatorMember
 Name-value pair in an object.
 
typedef Encoding EncodingType
 Encoding type from template parameter.
 
typedef Allocator AllocatorType
 Allocator type from template parameter.
 
typedef Encoding::Ch Ch
 Character type derived from Encoding.
 
typedef GenericStringRef< ChStringRefType
 Reference to a constant string.
 
typedef GenericMemberIterator< false, Encoding, Allocator >::Iterator MemberIterator
 Member iterator for iterating in object.
 
typedef GenericMemberIterator< true, Encoding, Allocator >::Iterator ConstMemberIterator
 Constant member iterator for iterating in object.
 
typedef GenericValueValueIterator
 Value iterator for iterating in array.
 
typedef const GenericValueConstValueIterator
 Constant value iterator for iterating in array.
 
typedef GenericValue< Encoding, AllocatorValueType
 Value type of itself.
 
typedef GenericArray< false, ValueTypeArray
 
typedef GenericArray< true, ValueTypeConstArray
 
typedef GenericObject< false, ValueTypeObject
 
typedef GenericObject< true, ValueTypeConstObject
 

Assignment operators

enum  {
  kBoolFlag = 0x0008 , kNumberFlag = 0x0010 , kIntFlag = 0x0020 , kUintFlag = 0x0040 ,
  kInt64Flag = 0x0080 , kUint64Flag = 0x0100 , kDoubleFlag = 0x0200 , kStringFlag = 0x0400 ,
  kCopyFlag = 0x0800 , kInlineStrFlag = 0x1000 , kNullFlag = kNullType , kTrueFlag = static_cast<int>(kTrueType) | static_cast<int>(kBoolFlag) ,
  kFalseFlag = static_cast<int>(kFalseType) | static_cast<int>(kBoolFlag) , kNumberIntFlag = static_cast<int>(kNumberType) | static_cast<int>(kNumberFlag | kIntFlag | kInt64Flag) , kNumberUintFlag = static_cast<int>(kNumberType) | static_cast<int>(kNumberFlag | kUintFlag | kUint64Flag | kInt64Flag) , kNumberInt64Flag = static_cast<int>(kNumberType) | static_cast<int>(kNumberFlag | kInt64Flag) ,
  kNumberUint64Flag = static_cast<int>(kNumberType) | static_cast<int>(kNumberFlag | kUint64Flag) , kNumberDoubleFlag = static_cast<int>(kNumberType) | static_cast<int>(kNumberFlag | kDoubleFlag) , kNumberAnyFlag = static_cast<int>(kNumberType) | static_cast<int>(kNumberFlag | kIntFlag | kInt64Flag | kUintFlag | kUint64Flag | kDoubleFlag) , kConstStringFlag = static_cast<int>(kStringType) | static_cast<int>(kStringFlag) ,
  kCopyStringFlag = static_cast<int>(kStringType) | static_cast<int>(kStringFlag | kCopyFlag) , kShortStringFlag = static_cast<int>(kStringType) | static_cast<int>(kStringFlag | kCopyFlag | kInlineStrFlag) , kObjectFlag = kObjectType , kArrayFlag = kArrayType ,
  kTypeMask = 0x07
}
 
template<typename, typename, typename>
class GenericDocument
 
static const SizeType kDefaultArrayCapacity = RAPIDJSON_VALUE_DEFAULT_ARRAY_CAPACITY
 
static const SizeType kDefaultObjectCapacity = RAPIDJSON_VALUE_DEFAULT_OBJECT_CAPACITY
 
Data data_
 
GenericValueoperator= (GenericValue &rhs) RAPIDJSON_NOEXCEPT
 Assignment with move semantics.
 
GenericValueoperator= (StringRefType str) RAPIDJSON_NOEXCEPT
 Assignment of constant string reference (no copy)
 
template<typename T>
 RAPIDJSON_DISABLEIF_RETURN ((internal::IsPointer< T >),(GenericValue &)) operator
 Assignment with primitive types.
 
RAPIDJSON_FORCEINLINE const ChGetStringPointer () const
 
RAPIDJSON_FORCEINLINE const ChSetStringPointer (const Ch *str)
 
RAPIDJSON_FORCEINLINE GenericValueGetElementsPointer () const
 
RAPIDJSON_FORCEINLINE GenericValueSetElementsPointer (GenericValue *elements)
 
RAPIDJSON_FORCEINLINE MemberGetMembersPointer () const
 
RAPIDJSON_FORCEINLINE MemberSetMembersPointer (Member *members)
 
RAPIDJSON_FORCEINLINE MemberDoAllocMembers (SizeType capacity, Allocator &allocator)
 
void DoReserveMembers (SizeType newCapacity, Allocator &allocator)
 
template<typename SourceAllocator>
MemberIterator DoFindMember (const GenericValue< Encoding, SourceAllocator > &name)
 
void DoClearMembers ()
 
void DoFreeMembers ()
 
void DoAddMember (GenericValue &name, GenericValue &value, Allocator &allocator)
 
MemberIterator DoRemoveMember (MemberIterator m)
 
MemberIterator DoEraseMembers (ConstMemberIterator first, ConstMemberIterator last)
 
template<typename SourceAllocator>
void DoCopyMembers (const GenericValue< Encoding, SourceAllocator > &rhs, Allocator &allocator, bool copyConstStrings)
 
void SetArrayRaw (GenericValue *values, SizeType count, Allocator &allocator)
 
void SetObjectRaw (Member *members, SizeType count, Allocator &allocator)
 Initialize this value as object with initial data, without calling destructor.
 
void SetStringRaw (StringRefType s) RAPIDJSON_NOEXCEPT
 Initialize this value as constant string, without calling destructor.
 
void SetStringRaw (StringRefType s, Allocator &allocator)
 Initialize this value as copy string with initial data, without calling destructor.
 
void RawAssign (GenericValue &rhs) RAPIDJSON_NOEXCEPT
 Assignment without calling destructor.
 
template<typename SourceAllocator>
bool StringEqual (const GenericValue< Encoding, SourceAllocator > &rhs) const
 
static RAPIDJSON_FORCEINLINE const ChDataString (const Data &data)
 
static RAPIDJSON_FORCEINLINE SizeType DataStringLength (const Data &data)
 

Constructors and destructor.

 GenericValue () RAPIDJSON_NOEXCEPT
 Default constructor creates a null value.
 
 GenericValue (Type type) RAPIDJSON_NOEXCEPT
 Constructor with JSON value type.
 
template<typename SourceAllocator>
 GenericValue (const GenericValue< Encoding, SourceAllocator > &rhs, Allocator &allocator, bool copyConstStrings=false)
 Explicit copy constructor (with allocator)
 
template<typename T>
 GenericValue (T b, RAPIDJSON_ENABLEIF((internal::IsSame< bool, T >))) RAPIDJSON_NOEXCEPT
 Constructor for boolean value.
 
 GenericValue (int i) RAPIDJSON_NOEXCEPT
 Constructor for int value.
 
 GenericValue (unsigned u) RAPIDJSON_NOEXCEPT
 Constructor for unsigned value.
 
 GenericValue (int64_t i64) RAPIDJSON_NOEXCEPT
 Constructor for int64_t value.
 
 GenericValue (uint64_t u64) RAPIDJSON_NOEXCEPT
 Constructor for uint64_t value.
 
 GenericValue (double d) RAPIDJSON_NOEXCEPT
 Constructor for double value.
 
 GenericValue (float f) RAPIDJSON_NOEXCEPT
 Constructor for float value.
 
 GenericValue (const Ch *s, SizeType length) RAPIDJSON_NOEXCEPT
 Constructor for constant string (i.e. do not make a copy of string)
 
 GenericValue (StringRefType s) RAPIDJSON_NOEXCEPT
 Constructor for constant string (i.e. do not make a copy of string)
 
 GenericValue (const Ch *s, SizeType length, Allocator &allocator)
 Constructor for copy-string (i.e. do make a copy of string)
 
 GenericValue (const Ch *s, Allocator &allocator)
 Constructor for copy-string (i.e. do make a copy of string)
 
 GenericValue (Array a) RAPIDJSON_NOEXCEPT
 Constructor for Array.
 
 GenericValue (Object o) RAPIDJSON_NOEXCEPT
 Constructor for Object.
 
 ~GenericValue ()
 Destructor.
 
 GenericValue (const GenericValue &rhs)
 Copy constructor is not permitted.
 

Description détaillée

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
class GenericValue< Encoding, Allocator >

Represents a JSON value. Use Value for UTF8 encoding and default allocator.

A JSON value can be one of 7 types. This class is a variant type supporting these types.

Use the Value if UTF8 and default allocator

Paramètres du template
EncodingEncoding of the value. (Even non-string values need to have the same encoding in a document)
AllocatorAllocator type for allocating memory of object, array and string.

Définition à la ligne 669 du fichier document.h.

Documentation des définitions de type membres

◆ AllocatorType

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
typedef Allocator GenericValue< Encoding, Allocator >::AllocatorType

Allocator type from template parameter.

Définition à la ligne 674 du fichier document.h.

◆ Array

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
typedef GenericArray<false, ValueType> GenericValue< Encoding, Allocator >::Array

Définition à la ligne 682 du fichier document.h.

◆ Ch

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
typedef Encoding::Ch GenericValue< Encoding, Allocator >::Ch

Character type derived from Encoding.

Définition à la ligne 675 du fichier document.h.

◆ ConstArray

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
typedef GenericArray<true, ValueType> GenericValue< Encoding, Allocator >::ConstArray

Définition à la ligne 683 du fichier document.h.

◆ ConstMemberIterator

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
typedef GenericMemberIterator<true,Encoding,Allocator>::Iterator GenericValue< Encoding, Allocator >::ConstMemberIterator

Constant member iterator for iterating in object.

Définition à la ligne 678 du fichier document.h.

◆ ConstObject

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
typedef GenericObject<true, ValueType> GenericValue< Encoding, Allocator >::ConstObject

Définition à la ligne 685 du fichier document.h.

◆ ConstValueIterator

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
typedef const GenericValue* GenericValue< Encoding, Allocator >::ConstValueIterator

Constant value iterator for iterating in array.

Définition à la ligne 680 du fichier document.h.

◆ EncodingType

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
typedef Encoding GenericValue< Encoding, Allocator >::EncodingType

Encoding type from template parameter.

Définition à la ligne 673 du fichier document.h.

◆ Member

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
typedef GenericMember<Encoding, Allocator> GenericValue< Encoding, Allocator >::Member

Name-value pair in an object.

Définition à la ligne 672 du fichier document.h.

◆ MemberIterator

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
typedef GenericMemberIterator<false,Encoding,Allocator>::Iterator GenericValue< Encoding, Allocator >::MemberIterator

Member iterator for iterating in object.

Définition à la ligne 677 du fichier document.h.

◆ Object

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
typedef GenericObject<false, ValueType> GenericValue< Encoding, Allocator >::Object

Définition à la ligne 684 du fichier document.h.

◆ StringRefType

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
typedef GenericStringRef<Ch> GenericValue< Encoding, Allocator >::StringRefType

Reference to a constant string.

Définition à la ligne 676 du fichier document.h.

◆ ValueIterator

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
typedef GenericValue* GenericValue< Encoding, Allocator >::ValueIterator

Value iterator for iterating in array.

Définition à la ligne 679 du fichier document.h.

◆ ValueType

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
typedef GenericValue<Encoding, Allocator> GenericValue< Encoding, Allocator >::ValueType

Value type of itself.

Définition à la ligne 681 du fichier document.h.

Documentation des énumérations membres

◆ anonymous enum

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
anonymous enum

Définition à la ligne 1992 du fichier document.h.

Documentation des constructeurs et destructeur

◆ GenericValue() [1/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::GenericValue ( )
inline

Default constructor creates a null value.

Définition à la ligne 691 du fichier document.h.

Référencé par GenericValue().

+ Voici le graphe des appelants de cette fonction :

◆ GenericValue() [2/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::GenericValue ( Type type)
inlineexplicit

Constructor with JSON value type.

This creates a Value of specified type with default content.

Paramètres
typeType of the value.
Note
Default content for number is zero.

Définition à la ligne 721 du fichier document.h.

◆ GenericValue() [3/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
template<typename SourceAllocator>
GenericValue< Encoding, Allocator >::GenericValue ( const GenericValue< Encoding, SourceAllocator > & rhs,
Allocator & allocator,
bool copyConstStrings = false )
inline

Explicit copy constructor (with allocator)

Creates a copy of a Value by using the given Allocator

Paramètres du template
SourceAllocatorallocator of rhs
Paramètres
rhsValue to copy from (read-only)
allocatorAllocator for allocating copied elements and buffers. Commonly use GenericDocument::GetAllocator().
copyConstStringsForce copying of constant strings (e.g. referencing an in-situ buffer)
Voir également
CopyFrom()

Définition à la ligne 743 du fichier document.h.

◆ GenericValue() [4/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
template<typename T>
GenericValue< Encoding, Allocator >::GenericValue ( T b,
RAPIDJSON_ENABLEIF((internal::IsSame< bool, T >))  )
inlineexplicit

Constructor for boolean value.

Paramètres
bBoolean value
Note
This constructor is limited to real boolean values and rejects implicitly converted types like arbitrary pointers. Use an explicit cast to bool, if you want to construct a boolean JSON value in such cases.

Définition à la ligne 782 du fichier document.h.

◆ GenericValue() [5/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::GenericValue ( int i)
inlineexplicit

Constructor for int value.

Définition à la ligne 793 du fichier document.h.

◆ GenericValue() [6/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::GenericValue ( unsigned u)
inlineexplicit

Constructor for unsigned value.

Définition à la ligne 799 du fichier document.h.

◆ GenericValue() [7/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::GenericValue ( int64_t i64)
inlineexplicit

Constructor for int64_t value.

Définition à la ligne 805 du fichier document.h.

◆ GenericValue() [8/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::GenericValue ( uint64_t u64)
inlineexplicit

Constructor for uint64_t value.

Définition à la ligne 820 du fichier document.h.

◆ GenericValue() [9/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::GenericValue ( double d)
inlineexplicit

Constructor for double value.

Définition à la ligne 832 du fichier document.h.

◆ GenericValue() [10/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::GenericValue ( float f)
inlineexplicit

Constructor for float value.

Définition à la ligne 835 du fichier document.h.

◆ GenericValue() [11/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::GenericValue ( const Ch * s,
SizeType length )
inline

Constructor for constant string (i.e. do not make a copy of string)

Définition à la ligne 838 du fichier document.h.

◆ GenericValue() [12/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::GenericValue ( StringRefType s)
inlineexplicit

Constructor for constant string (i.e. do not make a copy of string)

Définition à la ligne 841 du fichier document.h.

◆ GenericValue() [13/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::GenericValue ( const Ch * s,
SizeType length,
Allocator & allocator )
inline

Constructor for copy-string (i.e. do make a copy of string)

Définition à la ligne 844 du fichier document.h.

◆ GenericValue() [14/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::GenericValue ( const Ch * s,
Allocator & allocator )
inline

Constructor for copy-string (i.e. do make a copy of string)

Définition à la ligne 847 du fichier document.h.

◆ GenericValue() [15/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::GenericValue ( Array a)
inline

Constructor for Array.

Paramètres
aAn array obtained by GetArray().
Note
Array is always pass-by-value.
the source array is moved into this value and the sourec array becomes empty.

Définition à la ligne 862 du fichier document.h.

◆ GenericValue() [16/16]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::GenericValue ( Object o)
inline

Constructor for Object.

Paramètres
oAn object obtained by GetObject().
Note
Object is always pass-by-value.
the source object is moved into this value and the sourec object becomes empty.

Définition à la ligne 873 du fichier document.h.

◆ ~GenericValue()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue< Encoding, Allocator >::~GenericValue ( )
inline

Destructor.

Need to destruct elements of array, members of object, or copy-string.

Définition à la ligne 881 du fichier document.h.

Référencé par operator=().

+ Voici le graphe des appelants de cette fonction :

Documentation des fonctions membres

◆ DataString()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
static RAPIDJSON_FORCEINLINE const Ch * GenericValue< Encoding, Allocator >::DataString ( const Data & data)
inlinestatic

Définition à la ligne 2108 du fichier document.h.

◆ DataStringLength()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
static RAPIDJSON_FORCEINLINE SizeType GenericValue< Encoding, Allocator >::DataStringLength ( const Data & data)
inlinestatic

Définition à la ligne 2111 du fichier document.h.

◆ DoAddMember()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
void GenericValue< Encoding, Allocator >::DoAddMember ( GenericValue< Encoding, Allocator > & name,
GenericValue< Encoding, Allocator > & value,
Allocator & allocator )
inline

Définition à la ligne 2305 du fichier document.h.

◆ DoAllocMembers()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
RAPIDJSON_FORCEINLINE Member * GenericValue< Encoding, Allocator >::DoAllocMembers ( SizeType capacity,
Allocator & allocator )
inline

Définition à la ligne 2269 du fichier document.h.

◆ DoClearMembers()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
void GenericValue< Encoding, Allocator >::DoClearMembers ( )
inline

Définition à la ligne 2291 du fichier document.h.

◆ DoCopyMembers()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
template<typename SourceAllocator>
void GenericValue< Encoding, Allocator >::DoCopyMembers ( const GenericValue< Encoding, SourceAllocator > & rhs,
Allocator & allocator,
bool copyConstStrings )
inline

Définition à la ligne 2380 du fichier document.h.

◆ DoEraseMembers()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
MemberIterator GenericValue< Encoding, Allocator >::DoEraseMembers ( ConstMemberIterator first,
ConstMemberIterator last )
inline

Définition à la ligne 2345 du fichier document.h.

◆ DoFindMember()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
template<typename SourceAllocator>
MemberIterator GenericValue< Encoding, Allocator >::DoFindMember ( const GenericValue< Encoding, SourceAllocator > & name)
inline

Définition à la ligne 2283 du fichier document.h.

◆ DoFreeMembers()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
void GenericValue< Encoding, Allocator >::DoFreeMembers ( )
inline

Définition à la ligne 2297 du fichier document.h.

◆ DoRemoveMember()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
MemberIterator GenericValue< Encoding, Allocator >::DoRemoveMember ( MemberIterator m)
inline

Définition à la ligne 2321 du fichier document.h.

◆ DoReserveMembers()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
void GenericValue< Encoding, Allocator >::DoReserveMembers ( SizeType newCapacity,
Allocator & allocator )
inline

Définition à la ligne 2273 du fichier document.h.

◆ GetElementsPointer()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
RAPIDJSON_FORCEINLINE GenericValue * GenericValue< Encoding, Allocator >::GetElementsPointer ( ) const
inline

Définition à la ligne 2117 du fichier document.h.

◆ GetMembersPointer()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
RAPIDJSON_FORCEINLINE Member * GenericValue< Encoding, Allocator >::GetMembersPointer ( ) const
inline

Définition à la ligne 2119 du fichier document.h.

◆ GetStringPointer()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
RAPIDJSON_FORCEINLINE const Ch * GenericValue< Encoding, Allocator >::GetStringPointer ( ) const
inline

Définition à la ligne 2115 du fichier document.h.

◆ operator=() [1/2]

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

Assignment with move semantics.

Paramètres
rhsSource of the assignment. It will become a null value after assignment.

Définition à la ligne 922 du fichier document.h.

◆ operator=() [2/2]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
GenericValue & GenericValue< Encoding, Allocator >::operator= ( StringRefType str)
inline

Assignment of constant string reference (no copy)

Paramètres
strConstant string reference to be assigned
Note
This overload is needed to avoid clashes with the generic primitive type assignment overload below.
Voir également
GenericStringRef, operator=(T)

Définition à la ligne 947 du fichier document.h.

◆ RAPIDJSON_DISABLEIF_RETURN()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
template<typename T>
GenericValue< Encoding, Allocator >::RAPIDJSON_DISABLEIF_RETURN ( (internal::IsPointer< T >) ,
(GenericValue< Encoding, Allocator > &)  )

Assignment with primitive types.

Paramètres du template
TEither Type, int, unsigned, int64_t, uint64_t
Paramètres
valueThe value to be assigned.
Note
The source type T explicitly disallows all pointer types, especially (const) Ch*. This helps avoiding implicitly referencing character strings with insufficient lifetime, use SetString(const Ch*, Allocator&) (for copying) or StringRef() (to explicitly mark the pointer as constant) instead. All other pointer types would implicitly convert to bool, use SetBool() instead. Set boolean value

◆ RawAssign()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
void GenericValue< Encoding, Allocator >::RawAssign ( GenericValue< Encoding, Allocator > & rhs)
inline

Assignment without calling destructor.

Définition à la ligne 2461 du fichier document.h.

Référencé par operator=().

+ Voici le graphe des appelants de cette fonction :

◆ SetArrayRaw()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
void GenericValue< Encoding, Allocator >::SetArrayRaw ( GenericValue< Encoding, Allocator > * values,
SizeType count,
Allocator & allocator )
inline

Définition à la ligne 2403 du fichier document.h.

◆ SetElementsPointer()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
RAPIDJSON_FORCEINLINE GenericValue * GenericValue< Encoding, Allocator >::SetElementsPointer ( GenericValue< Encoding, Allocator > * elements)
inline

Définition à la ligne 2118 du fichier document.h.

◆ SetMembersPointer()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
RAPIDJSON_FORCEINLINE Member * GenericValue< Encoding, Allocator >::SetMembersPointer ( Member * members)
inline

Définition à la ligne 2120 du fichier document.h.

◆ SetObjectRaw()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
void GenericValue< Encoding, Allocator >::SetObjectRaw ( Member * members,
SizeType count,
Allocator & allocator )
inline

Initialize this value as object with initial data, without calling destructor.

Définition à la ligne 2416 du fichier document.h.

◆ SetStringPointer()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
RAPIDJSON_FORCEINLINE const Ch * GenericValue< Encoding, Allocator >::SetStringPointer ( const Ch * str)
inline

Définition à la ligne 2116 du fichier document.h.

◆ SetStringRaw() [1/2]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
void GenericValue< Encoding, Allocator >::SetStringRaw ( StringRefType s)
inline

Initialize this value as constant string, without calling destructor.

Définition à la ligne 2436 du fichier document.h.

Référencé par GenericValue(), GenericValue(), GenericValue(), GenericValue(), et GenericValue().

+ Voici le graphe des appelants de cette fonction :

◆ SetStringRaw() [2/2]

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
void GenericValue< Encoding, Allocator >::SetStringRaw ( StringRefType s,
Allocator & allocator )
inline

Initialize this value as copy string with initial data, without calling destructor.

Définition à la ligne 2443 du fichier document.h.

◆ StringEqual()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
template<typename SourceAllocator>
bool GenericValue< Encoding, Allocator >::StringEqual ( const GenericValue< Encoding, SourceAllocator > & rhs) const
inline

Définition à la ligne 2468 du fichier document.h.

Documentation des fonctions amies et associées

◆ GenericDocument

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
template<typename, typename, typename>
friend class GenericDocument
friend

Définition à la ligne 1990 du fichier document.h.

Documentation des données membres

◆ data_

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
Data GenericValue< Encoding, Allocator >::data_

Définition à la ligne 2483 du fichier document.h.

◆ kDefaultArrayCapacity

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
const SizeType GenericValue< Encoding, Allocator >::kDefaultArrayCapacity = RAPIDJSON_VALUE_DEFAULT_ARRAY_CAPACITY
static

Définition à la ligne 2024 du fichier document.h.

◆ kDefaultObjectCapacity

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
const SizeType GenericValue< Encoding, Allocator >::kDefaultObjectCapacity = RAPIDJSON_VALUE_DEFAULT_OBJECT_CAPACITY
static

Définition à la ligne 2025 du fichier document.h.


La documentation de cette classe a été générée à partir du fichier suivant :