15 #ifndef RAPIDJSON_DOCUMENT_H_ 16 #define RAPIDJSON_DOCUMENT_H_ 30 RAPIDJSON_DIAG_OFF(4127)
31 RAPIDJSON_DIAG_OFF(4244)
35 RAPIDJSON_DIAG_OFF(padded)
36 RAPIDJSON_DIAG_OFF(
switch-
enum)
37 RAPIDJSON_DIAG_OFF(
c++98-compat)
41 RAPIDJSON_DIAG_OFF(effc++)
43 RAPIDJSON_DIAG_OFF(terminate)
47 #ifndef RAPIDJSON_NOMEMBERITERATORCLASS 51 #if RAPIDJSON_HAS_CXX11_RVALUE_REFS 58 template <
typename Encoding,
typename Allocator>
61 template <
typename Encoding,
typename Allocator,
typename StackAllocator>
70 template <
typename Encoding,
typename Allocator>
79 #ifndef RAPIDJSON_NOMEMBERITERATORCLASS 100 template <
bool Const,
typename Encoding,
typename Allocator>
102 :
public std::iterator<std::random_access_iterator_tag
103 , typename internal::MaybeAddConst<Const,GenericMember<Encoding,Allocator> >::Type> {
110 typedef std::iterator<std::random_access_iterator_tag,ValueType>
BaseType;
196 #else // RAPIDJSON_NOMEMBERITERATORCLASS 200 template <
bool Const,
typename Encoding,
typename Allocator>
204 template <
typename Encoding,
typename Allocator>
210 template <
typename Encoding,
typename Allocator>
216 #endif // RAPIDJSON_NOMEMBERITERATORCLASS 248 template<
typename CharType>
253 #ifndef __clang__ // -Wdocumentation 282 #ifndef __clang__ // -Wdocumentation 306 #ifndef __clang__ // -Wdocumentation 322 operator const Ch *()
const {
return s; }
345 template<
typename CharType>
365 template<
typename CharType>
370 #if RAPIDJSON_HAS_STDSTRING 383 template<
typename CharType>
393 template <
typename T,
typename Encoding =
void,
typename Allocator =
void>
398 : IsBaseOf<GenericValue<typename T::EncodingType, typename T::AllocatorType>, T>
::Type {};
410 template <
typename ValueType,
typename T>
413 template<
typename ValueType>
415 static bool Is(
const ValueType&
v) {
return v.IsBool(); }
416 static bool Get(
const ValueType&
v) {
return v.GetBool(); }
418 static ValueType&
Set(ValueType&
v,
bool data,
typename ValueType::AllocatorType&) {
return v.SetBool(
data); }
421 template<
typename ValueType>
423 static bool Is(
const ValueType&
v) {
return v.IsInt(); }
424 static int Get(
const ValueType&
v) {
return v.GetInt(); }
426 static ValueType&
Set(ValueType&
v,
int data,
typename ValueType::AllocatorType&) {
return v.SetInt(
data); }
429 template<
typename ValueType>
431 static bool Is(
const ValueType&
v) {
return v.IsUint(); }
432 static unsigned Get(
const ValueType&
v) {
return v.GetUint(); }
433 static ValueType&
Set(ValueType&
v,
unsigned data) {
return v.SetUint(
data); }
434 static ValueType&
Set(ValueType&
v,
unsigned data,
typename ValueType::AllocatorType&) {
return v.SetUint(
data); }
437 template<
typename ValueType>
439 static bool Is(
const ValueType&
v) {
return v.IsInt64(); }
442 static ValueType&
Set(ValueType&
v,
int64_t data,
typename ValueType::AllocatorType&) {
return v.SetInt64(
data); }
445 template<
typename ValueType>
447 static bool Is(
const ValueType&
v) {
return v.IsUint64(); }
450 static ValueType&
Set(ValueType&
v,
uint64_t data,
typename ValueType::AllocatorType&) {
return v.SetUint64(
data); }
453 template<
typename ValueType>
455 static bool Is(
const ValueType&
v) {
return v.IsDouble(); }
456 static double Get(
const ValueType&
v) {
return v.GetDouble(); }
457 static ValueType&
Set(ValueType&
v,
double data) {
return v.SetDouble(
data); }
458 static ValueType&
Set(ValueType&
v,
double data,
typename ValueType::AllocatorType&) {
return v.SetDouble(
data); }
461 template<
typename ValueType>
463 static bool Is(
const ValueType&
v) {
return v.IsFloat(); }
464 static float Get(
const ValueType&
v) {
return v.GetFloat(); }
465 static ValueType&
Set(ValueType&
v,
float data) {
return v.SetFloat(
data); }
466 static ValueType&
Set(ValueType&
v,
float data,
typename ValueType::AllocatorType&) {
return v.SetFloat(
data); }
469 template<
typename ValueType>
472 static bool Is(
const ValueType&
v) {
return v.IsString(); }
478 #if RAPIDJSON_HAS_STDSTRING 479 template<
typename ValueType>
480 struct TypeHelper<ValueType,
std::basic_string<typename ValueType::Ch> > {
481 typedef std::basic_string<typename ValueType::Ch> StringType;
482 static bool Is(
const ValueType&
v) {
return v.IsString(); }
483 static StringType Get(
const ValueType&
v) {
return StringType(
v.GetString(),
v.GetStringLength()); }
484 static ValueType& Set(ValueType&
v,
const StringType&
data,
typename ValueType::AllocatorType&
a) {
return v.SetString(
data,
a); }
488 template<
typename ValueType>
491 static bool Is(
const ValueType&
v) {
return v.IsArray(); }
497 template<
typename ValueType>
498 struct TypeHelper<ValueType, typename ValueType::ConstArray> {
500 static bool Is(
const ValueType&
v) {
return v.IsArray(); }
504 template<
typename ValueType>
507 static bool Is(
const ValueType&
v) {
return v.IsObject(); }
513 template<
typename ValueType>
514 struct TypeHelper<ValueType, typename ValueType::ConstObject> {
516 static bool Is(
const ValueType&
v) {
return v.IsObject(); }
539 template <
typename Encoding,
typename Allocator = MemoryPoolAllocator<> >
546 typedef typename Encoding::Ch
Ch;
564 #if RAPIDJSON_HAS_CXX11_RVALUE_REFS 575 #if RAPIDJSON_HAS_CXX11_RVALUE_REFS 576 template <
typename StackAllocator>
581 template <
typename StackAllocator>
593 static const uint16_t defaultFlags[7] = {
612 template<
typename SourceAllocator >
621 #ifndef RAPIDJSON_DOXYGEN_RUNNING // hide SFINAE from Doxygen 622 template <
typename T>
623 explicit GenericValue(
T b, RAPIDJSON_ENABLEIF((internal::IsSame<bool, T>))) RAPIDJSON_NOEXCEPT
687 #if RAPIDJSON_HAS_STDSTRING 701 a.value_.data_ = Data();
712 o.value_.data_ = Data();
720 if (Allocator::kNeedFree) {
762 #if RAPIDJSON_HAS_CXX11_RVALUE_REFS 765 return *
this = rhs.Move();
791 template <
typename T>
804 template <
typename SourceAllocator>
806 RAPIDJSON_ASSERT(static_cast<void*>(
this) != static_cast<void const*>(&rhs));
821 other.RawAssign(temp);
841 GenericValue& Move() RAPIDJSON_NOEXCEPT {
return *
this; }
851 template <
typename SourceAllocator>
854 if (GetType() != rhs.GetType())
861 for (
ConstMemberIterator lhsMemberItr = MemberBegin(); lhsMemberItr != MemberEnd(); ++lhsMemberItr) {
862 typename RhsType::ConstMemberIterator rhsMemberItr = rhs.FindMember(lhsMemberItr->name);
863 if (rhsMemberItr == rhs.MemberEnd() || lhsMemberItr->value != rhsMemberItr->value)
872 if ((*
this)[i] != rhs[i])
880 if (IsDouble() || rhs.IsDouble()) {
881 double a = GetDouble();
882 double b = rhs.GetDouble();
883 return a >=
b &&
a <=
b;
896 #if RAPIDJSON_HAS_STDSTRING 911 template <
typename SourceAllocator>
915 bool operator!=(
const Ch* rhs)
const {
return !(*
this == rhs); }
952 bool IsLosslessDouble()
const {
953 if (!IsNumber())
return false;
956 volatile double d =
static_cast<double>(u);
958 && (d < static_cast<double>(std::numeric_limits<uint64_t>::max()))
963 volatile double d =
static_cast<double>(i);
964 return (d >= static_cast<double>(std::numeric_limits<int64_t>::min()))
965 && (d < static_cast<double>(std::numeric_limits<int64_t>::max()))
966 && (i == static_cast<int64_t>(d));
972 bool IsFloat()
const {
975 double d = GetDouble();
976 return d >= -3.4028234e38 && d <= 3.4028234e38;
979 bool IsLosslessFloat()
const {
980 if (!IsNumber())
return false;
981 double a = GetDouble();
982 if (
a < static_cast<double>(-std::numeric_limits<float>::max())
983 ||
a > static_cast<double>(std::numeric_limits<float>::max()))
985 double b =
static_cast<double>(
static_cast<float>(
a));
986 return a >=
b &&
a <=
b;
1030 template <
typename T>
1035 template <
typename T>
1047 template <
typename SourceAllocator>
1050 if (member != MemberEnd())
1051 return member->value;
1064 template <
typename SourceAllocator>
1067 #if RAPIDJSON_HAS_STDSTRING 1094 bool HasMember(
const Ch*
name)
const {
return FindMember(
name) != MemberEnd(); }
1096 #if RAPIDJSON_HAS_STDSTRING 1105 bool HasMember(
const std::basic_string<Ch>&
name)
const {
return FindMember(
name) != MemberEnd(); }
1117 template <
typename SourceAllocator>
1134 return FindMember(
n);
1152 template <
typename SourceAllocator>
1157 for ( ; member != MemberEnd(); ++member)
1158 if (
name.StringEqual(member->name))
1164 #if RAPIDJSON_HAS_STDSTRING 1191 if (o.size >= o.capacity) {
1192 if (o.capacity == 0) {
1198 o.capacity += (oldCapacity + 1) / 2;
1203 members[o.size].name.RawAssign(
name);
1204 members[o.size].value.RawAssign(
value);
1220 return AddMember(
name,
v, allocator);
1223 #if RAPIDJSON_HAS_STDSTRING 1235 return AddMember(
name,
v, allocator);
1256 template <
typename T>
1260 return AddMember(
name,
v, allocator);
1263 #if RAPIDJSON_HAS_CXX11_RVALUE_REFS 1265 return AddMember(
name,
value, allocator);
1268 return AddMember(
name,
value, allocator);
1271 return AddMember(
name,
value, allocator);
1275 return AddMember(
n,
value, allocator);
1277 #endif // RAPIDJSON_HAS_CXX11_RVALUE_REFS 1292 return AddMember(
n,
value, allocator);
1306 return AddMember(
name,
v, allocator);
1326 template <
typename T>
1330 return AddMember(
n,
value, allocator);
1337 void RemoveAllMembers() {
1352 bool RemoveMember(
const Ch*
name) {
1354 return RemoveMember(
n);
1357 #if RAPIDJSON_HAS_STDSTRING 1361 template <
typename SourceAllocator>
1364 if (
m != MemberEnd()) {
1405 return EraseMember(pos, pos +1);
1428 std::memmove(&*pos, &*last, static_cast<size_t>(MemberEnd() - last) *
sizeof(
Member));
1438 bool EraseMember(
const Ch*
name) {
1440 return EraseMember(
n);
1443 #if RAPIDJSON_HAS_STDSTRING 1447 template <
typename SourceAllocator>
1450 if (
m != MemberEnd()) {
1549 #if RAPIDJSON_HAS_CXX11_RVALUE_REFS 1551 return PushBack(
value, allocator);
1553 #endif // RAPIDJSON_HAS_CXX11_RVALUE_REFS 1565 return (*this).template PushBack<StringRefType>(
value, allocator);
1585 template <
typename T>
1587 PushBack(
T value, Allocator& allocator) {
1589 return PushBack(
v, allocator);
1611 return Erase(pos, pos + 1);
1632 std::memmove(pos, last, static_cast<size_t>(End() - last) *
sizeof(
GenericValue));
1653 double GetDouble()
const {
1665 float GetFloat()
const {
1666 return static_cast<float>(GetDouble());
1723 #if RAPIDJSON_HAS_STDSTRING 1731 GenericValue& SetString(
const std::basic_string<Ch>&
s, Allocator& allocator) {
return SetString(
s.data(),
SizeType(
s.size()), allocator); }
1743 template <
typename T>
1746 template <
typename T>
1749 template <
typename T>
1752 template<
typename T>
1755 template<
typename T>
1767 template <
typename Handler>
1768 bool Accept(Handler&
handler)
const {
1808 template <
typename,
typename>
friend class GenericValue;
1846 #if RAPIDJSON_48BITPOINTER_OPTIMIZATION 1848 #elif RAPIDJSON_64BIT 1881 #if RAPIDJSON_ENDIAN == RAPIDJSON_LITTLEENDIAN 1976 str =
static_cast<Ch *
>(allocator.Malloc((
s.length + 1) *
sizeof(
Ch)));
1980 str[
s.length] =
'\0';
1990 template <
typename SourceAllocator>
1995 const SizeType len1 = GetStringLength();
1996 const SizeType len2 = rhs.GetStringLength();
1997 if(len1 != len2) {
return false; }
1999 const Ch*
const str1 = GetString();
2000 const Ch*
const str2 = rhs.GetString();
2001 if(str1 == str2) {
return true; }
2023 template <
typename Encoding,
typename Allocator = MemoryPoolAllocator<>,
typename StackAllocator = CrtAllocator>
2026 typedef typename Encoding::Ch
Ch;
2057 #if RAPIDJSON_HAS_CXX11_RVALUE_REFS 2060 :
ValueType(std::forward<ValueType>(rhs)),
2063 stack_(std::move(rhs.stack_)),
2067 rhs.ownAllocator_ = 0;
2076 #if RAPIDJSON_HAS_CXX11_RVALUE_REFS 2089 stack_ = std::move(rhs.stack_);
2093 rhs.ownAllocator_ = 0;
2134 template <
typename Generator>
2136 ClearStackOnExit scope(*
this);
2154 template <
unsigned parseFlags,
typename SourceEncoding,
typename InputStream>
2158 ClearStackOnExit scope(*
this);
2173 template <
unsigned parseFlags,
typename InputStream>
2175 return ParseStream<parseFlags, Encoding, InputStream>(is);
2183 template <
typename InputStream>
2185 return ParseStream<kParseDefaultFlags, Encoding, InputStream>(is);
2197 template <
unsigned parseFlags>
2200 return ParseStream<parseFlags | kParseInsituFlag>(
s);
2208 return ParseInsitu<kParseDefaultFlags>(
str);
2220 template <
unsigned parseFlags,
typename SourceEncoding>
2224 return ParseStream<parseFlags, SourceEncoding>(
s);
2231 template <
unsigned parseFlags>
2233 return Parse<parseFlags, Encoding>(
str);
2240 return Parse<kParseDefaultFlags>(
str);
2243 template <
unsigned parseFlags,
typename SourceEncoding>
2248 ParseStream<parseFlags, SourceEncoding>(is);
2252 template <
unsigned parseFlags>
2254 return Parse<parseFlags, Encoding>(
str,
length);
2258 return Parse<kParseDefaultFlags>(
str,
length);
2261 #if RAPIDJSON_HAS_STDSTRING 2262 template <
unsigned parseFlags,
typename SourceEncoding>
2265 return Parse<parseFlags, SourceEncoding>(
str.c_str());
2268 template <
unsigned parseFlags>
2270 return Parse<parseFlags, Encoding>(
str.c_str());
2274 return Parse<kParseDefaultFlags>(
str);
2276 #endif // RAPIDJSON_HAS_STDSTRING 2293 #ifndef __clang // -Wdocumentation 2382 if (Allocator::kNeedFree)
2405 template <
typename Encoding,
typename Allocator>
2406 template <
typename SourceAllocator>
2410 switch (rhs.GetType()) {
2421 data_ = *
reinterpret_cast<const Data*
>(&rhs.
data_);
2428 data_ = *
reinterpret_cast<const Data*
>(&rhs.
data_);
2438 template <
bool Const,
typename ValueT>
2450 template <
typename,
typename>
2466 #if RAPIDJSON_HAS_CXX11_RVALUE_REFS 2468 #endif // RAPIDJSON_HAS_CXX11_RVALUE_REFS 2475 #if RAPIDJSON_HAS_CXX11_RANGE_FOR 2491 template <
bool Const,
typename ValueT>
2503 typedef typename ValueType::Ch
Ch;
2505 template <
typename,
typename>
2516 #if RAPIDJSON_HAS_STDSTRING 2522 #if RAPIDJSON_HAS_STDSTRING 2528 #if RAPIDJSON_HAS_STDSTRING 2533 #if RAPIDJSON_HAS_STDSTRING 2537 #if RAPIDJSON_HAS_CXX11_RVALUE_REFS 2542 #endif // RAPIDJSON_HAS_CXX11_RVALUE_REFS 2548 #if RAPIDJSON_HAS_STDSTRING 2556 #if RAPIDJSON_HAS_STDSTRING 2561 #if RAPIDJSON_HAS_CXX11_RANGE_FOR 2575 #endif // RAPIDJSON_DOCUMENT_H_ GenericDocument & Parse(const Ch *str, size_t length)
Definition: document.h:2253
Data data_
Definition: document.h:2006
ValueType::Array ArrayType
Definition: document.h:490
Definition: document.h:1828
struct GenericValue::Number::I i
GenericObject< true, ValueType > ConstObject
Definition: document.h:556
ObjectData o
Definition: document.h:1921
GenericValue< UTF8<> > Value
GenericValue with UTF8 encoding.
Definition: document.h:2010
GLuint const GLchar * name
Definition: glext.h:6671
static ValueType & Set(ValueType &v, int64_t data)
Definition: document.h:441
static ValueType & Set(ValueType &v, float data, typename ValueType::AllocatorType &)
Definition: document.h:466
GenericDocument & Parse(const typename SourceEncoding::Ch *str, size_t length)
Definition: document.h:2244
const GLint * first
Definition: glext.h:6478
true
Definition: rapidjson.h:606
SizeType GetLength() const
Definition: document.h:1876
GenericValue(T b, RAPIDJSON_ENABLEIF((internal::IsSame< bool, T >))) RAPIDJSON_NOEXCEPT
Constructor for boolean value.
Definition: document.h:623
bool StartArray()
Definition: document.h:2367
Encoding EncodingType
Encoding type from template parameter.
Definition: document.h:544
void Swap(T &a, T &b) RAPIDJSON_NOEXCEPT
Custom swap() to avoid dependency on C++ <algorithm> header.
Definition: swap.h:33
GenericArray< true, ValueType > ConstArray
Definition: document.h:554
#define const
Definition: zconf.h:217
Definition: document.h:1845
Reference operator*() const
Definition: document.h:181
static ValueType & Set(ValueType &v, int data, typename ValueType::AllocatorType &)
Definition: document.h:426
Allocator * allocator_
Definition: document.h:2395
Definition: document.h:1821
Definition: document.h:1815
const Ch * str
Definition: document.h:1859
static ValueType & Set(ValueType &v, int data)
Definition: document.h:425
Definition: document.h:1817
ShortString ss
Definition: document.h:1919
GenericStringRef< Ch > StringRefType
Reference to a constant string.
Definition: document.h:547
void SetObjectRaw(Member *members, SizeType count, Allocator &allocator)
Initialize this value as object with initial data, without calling destructor.
Definition: document.h:1947
bool StartObject()
Definition: document.h:2357
Unknown compiler Device disconnected from port File already exists Saving to backup buffer Got connection Port Mapping Successful No arguments supplied and no menu displaying help Waiting for client You have joined as player u Player *s has left the game *s has joined with input devices *s The netplay peer is running an old version of RetroArch Cannot connect A netplay peer is running a different core Cannot connect This core does not support inter architecture netplay between these systems Enter netplay server Incorrect password A netplay client has disconnected You do not have permission to play The input devices requested are not available Netplay peer s paused Give hardware rendered cores their own private context Avoids having to assume hardware state changes inbetween frames Adjusts menu screen appearance settings Improves performance at the cost of latency and more video stuttering Use only if you cannot obtain full speed otherwise Autodetect Capabilities Connecting to port Password Username Accounts List Endpoint Achievements Resume Achievements Hardcore Mode Scan Content Import content Ask Block Frames Audio Driver Audio Enable Turbo Deadzone Audio Maximum Timing Skew Audio Output Dynamic Audio Rate Control Audio Audio Volume WASAPI Exclusive Mode WASAPI Shared Buffer Length Load Override Files Automatically Load Shader Presets Automatically Confirm Quit Scroll Up Toggle Keyboard Basic menu controls Info Scroll Up Toggle Keyboard Don t overwrite SaveRAM on loading savestate Buildbot Assets URL Allow Camera Cheat Start Search For New Cheat Code Cheat File Load Cheat Load Cheat Save Cheat File As Description Leaderboards Locked Locked Test Unofficial Achievements Unlocked Verbose Mode Close Content Load Configuration Save Configuration on Exit Database History List Size Quick Menu Downloads Core Counters Core Information Categories Core name Permissions System manufacturer Controls Install or Restore a Core Core installation succesful Core Automatically extract downloaded archive Core Updater CPU CPU Cursor Custom Ratio Database Selection Start directory< Default > Directory not found Disk Cycle Tray Status Disk Index Don t care Download a Core DPI Override Enable Driver Check for Missing Firmware Before Loading Dynamic Backgrounds Menu entry hover color False Favorites Include Memory Details Sync to Exact Content Frame Throttle Load Content Specific Core Options Automatically Save Game options file Audio Video Troubleshooting Basic Menu Controls Loading Content What Is A Core History Image Information All Users Control Menu Left analog Left analog Left Analog Y Left analog Right Analog X Right analog Right Analog Y Right analog Gun Trigger Gun Aux A Gun Aux C Gun Select Gun D pad Down Gun D pad Right Analog Stick Deadzone Bind All Bind Timeout Hide Unbound Core Input Descriptors Device Index Mouse Index Duty Cycle Keyboard Gamepad Mapping Enable B Down D pad L3 L Left D pad R3 R Right D pad Start button X Y Mouse Mouse Mouse Wheel Down Wheel Right Max Users Cheat index Cheat toggle Disk next Enable hotkeys Fast forward toggle FPS toggle Grab mouse toggle Desktop menu toggle Menu toggle Audio mute toggle On screen keyboard toggle Pause toggle Reset game Cheat Details Save state Next shader Slow motion hold Savestate slot Volume Display Overlay Show Inputs On Overlay Poll Type Behavior Late Prefer Front Touch Remap Binds Enable Input Touch Enable Turbo Period Latency Input Autoconfig Services Dutch Esperanto German Japanese Polish Russian Vietnamese Greek Core Core Logging Level Load Archive Load Content Allow Location Logging Main Menu Menu Color Theme Blue Grey Green Red Footer Opacity Menu Driver Settings Horizontal Animation Background Missing Mouse Support Music Navigation Wrap Around Netplay Netplay Check Frames Input Latency Frames Range Disconnect from netplay host Connect to netplay host Stop netplay host Scan local network Username Publicly Announce Netplay Disallow Non Slave Mode Clients Analog Input Sharing Average Share Vote No preference Netplay Stateless Mode Netplay Spectator Enable Netplay NAT Traversal Network Command Port Network Gamepad Network None No achievements to display No cores available No core options available No history available No items No networks found No playlists No settings found OFF Online Onscreen Display Adjust Bezels and Onscreen controls Adjust the Onscreen Notifications Optional Autoload Preferred Overlay Overlay Opacity Overlay Scale Use PAL60 Mode Pause when menu activated Performance Counters Playlist Touch Support Present MIDI Analog supported CERO Rating CRC32 Developer Edge Magazine Rating ELSPA Rating ESRB Rating Franchise MD5 Origin Publisher Releasedate Year Serial Start Content Reboot Recording Output Custom Record Config Record Driver Enable Recording Save Recordings in Output Dir Load Remap File Save Content Directory Remap File Delete Core Remap File Delete Game Content Directory Remap File Restart Resume RetroKeyboard RetroPad w Analog Rewind Enable Auto Apply Cheats During Game Load Rewind Buffer Size(MB)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_REWIND_BUFFER_SIZE_STEP
#define RAPIDJSON_SETPOINTER(type, p, x)
Definition: rapidjson.h:318
GLboolean GLenum GLenum GLvoid * values
Definition: glext.h:6318
GenericDocument< UTF8<> > Document
GenericDocument with UTF8 encoding.
Definition: document.h:2402
GLuint buffer
Definition: glext.h:6555
Allocator & GetAllocator()
Definition: stack.h:170
bool Uint(unsigned i)
Definition: document.h:2336
array
Definition: rapidjson.h:608
Iterator & operator=(const NonConstIterator &it)
Definition: document.h:150
static const char * reader(lua_State *L, void *ud, size_t *size)
Definition: luac.c:122
Definition: document.h:1812
void RawAssign(GenericValue &rhs) RAPIDJSON_NOEXCEPT
Assignment without calling destructor.
Definition: document.h:1984
string
Definition: rapidjson.h:609
void ShrinkToFit()
Definition: stack.h:100
Reference operator[](DifferenceType n) const
Definition: document.h:183
void ClearStack()
Definition: document.h:2381
bool RawNumber(const Ch *str, SizeType length, bool copy)
Definition: document.h:2341
ValueType & value_
Definition: document.h:2483
GenericStringRef(const CharType(&str)[N]) RAPIDJSON_NOEXCEPT
Create string reference from const character array.
Definition: document.h:278
unsigned u
Definition: document.h:1887
static const SizeType kDefaultArrayCapacity
Definition: document.h:1842
Allocator AllocatorType
Allocator type from template parameter.
Definition: document.h:545
size_t GetErrorOffset() const
Get the position of last parsing error in input, 0 otherwise.
Definition: document.h:2290
ValueType * ValueIterator
Definition: document.h:2445
#define RAPIDJSON_GETPOINTER(type, p)
Definition: rapidjson.h:319
#define RAPIDJSON_NEW(x)
! customization point for global new
Definition: rapidjson.h:586
DifferenceType operator-(ConstIterator that) const
Distance.
Definition: document.h:187
const ValueT * ConstValueIterator
Definition: document.h:2446
ValueType::AllocatorType AllocatorType
Definition: document.h:2447
bool HasMember(const Ch *name) const
Definition: document.h:2521
ValueIterator End() const
Definition: document.h:2463
A read-write string stream.
Definition: fwd.h:52
CharType Ch
character type of the string
Definition: document.h:250
Definition: document.h:1886
Definition: document.h:1871
RAPIDJSON_FORCEINLINE const Ch * GetStringPointer() const
Definition: document.h:1926
(Constant) member iterator for a JSON object value
Definition: document.h:101
Definition: document.h:1814
ValueType::Ch Ch
Definition: document.h:2503
GenericArray< false, ValueT > Array
Definition: document.h:2442
GenericValue< Encoding, Allocator > value
value of member.
Definition: document.h:73
Iterator & operator-=(DifferenceType n)
Definition: document.h:166
Represents an in-memory input byte stream.
Definition: memorystream.h:40
GenericObject(ValueType &value)
Definition: document.h:2568
Definition: document.h:1870
GLenum GLsizei len
Definition: glext.h:7389
Represents a JSON value. Use Value for UTF8 encoding and default allocator.
Definition: document.h:59
false
Definition: rapidjson.h:605
bool Double(double d)
Definition: document.h:2339
static ValueType & Set(ValueType &v, ObjectType data, typename ValueType::AllocatorType &)
Definition: document.h:510
In-situ(destructive) parsing.
Definition: reader.h:147
Definition: document.h:1837
GenericArray< false, ValueType > Array
Definition: document.h:553
bool RemoveMember(const Ch *name) const
Definition: document.h:2547
internal::MaybeAddConst< Const, PlainType >::Type ValueType
Definition: document.h:2497
GenericMemberIterator Iterator
Iterator type itself.
Definition: document.h:114
Definition: document.h:1835
GenericDocument & d_
Definition: document.h:2324
object
Definition: rapidjson.h:607
size_t GetSize() const
Definition: stack.h:176
Helper class for accessing Value of object type.
Definition: document.h:524
ValueIterator Erase(ConstValueIterator first, ConstValueIterator last) const
Definition: document.h:2473
Definition: document.h:1829
ValueType::AllocatorType AllocatorType
Definition: document.h:2500
GLfloat f
Definition: glext.h:8207
ValueT PlainType
Definition: document.h:2443
void Swap(Stack &rhs) RAPIDJSON_NOEXCEPT
Definition: stack.h:89
GenericArray Reserve(SizeType newCapacity, AllocatorType &allocator) const
Definition: document.h:2464
GenericDocument & Parse(const Ch *str)
Parse JSON text from a read-only string.
Definition: document.h:2232
ArrayData a
Definition: document.h:1922
GenericStringRef< CharType > StringRef(const CharType *str)
Mark a character pointer as constant string.
Definition: document.h:346
ParseResult parseResult_
Definition: document.h:2398
GenericDocument & Parse(const Ch *str)
Parse JSON text from a read-only string (with kParseDefaultFlags)
Definition: document.h:2239
GLint reference
Definition: glext.h:12636
struct GenericValue::Number::U u
int memcmp(const void *s1, const void *s2, unsigned int length)
Definition: compat_ctype.c:51
GenericMemberIterator(const NonConstIterator &it)
Iterator conversions to more const.
Definition: document.h:149
GenericObject< true, ValueT > ConstObject
Definition: document.h:2494
GLdouble s
Definition: glext.h:6390
GenericDocument & Populate(Generator &g)
Populate this document by a generator which produces SAX events.
Definition: document.h:2135
static const struct @115 elements[]
bool Empty() const
Definition: document.h:2459
SizeType StrLen(const Ch *s)
Custom strlen() which works on different character types.
Definition: strfunc.h:30
const ValueType::Ch * StringType
Definition: document.h:471
static double Get(const ValueType &v)
Definition: document.h:456
GLsizei const GLvoid * pointer
Definition: glext.h:6488
static ValueType & Set(ValueType &v, const StringType data, typename ValueType::AllocatorType &a)
Definition: document.h:475
SizeType MemberCount() const
Definition: document.h:2512
static ValueType & Set(ValueType &v, ObjectType data)
Definition: document.h:509
GenericDocument & Swap(GenericDocument &rhs) RAPIDJSON_NOEXCEPT
Exchange the contents of this document with those of another.
Definition: document.h:2106
void SetArrayRaw(GenericValue *values, SizeType count, Allocator &allocator)
Definition: document.h:1934
GenericStringRef(const CharType *str)
Explicitly create string reference from const character pointer.
Definition: document.h:302
GenericDocument & ParseInsitu(Ch *str)
Parse JSON text from a mutable string.
Definition: document.h:2198
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
Definition: rapidjson.h:119
Read-only string stream.
Definition: fwd.h:47
GenericValue(StringRefType s) RAPIDJSON_NOEXCEPT
Constructor for constant string (i.e. do not make a copy of string)
Definition: document.h:679
Definition: document.h:1882
Name-value pair in a JSON object value.
Definition: document.h:71
ParseErrorCode GetParseError() const
Get the ParseErrorCode of last parsing.
Definition: document.h:2287
ValueType & operator[](const GenericValue< EncodingType, SourceAllocator > &name) const
Definition: document.h:2515
bool EraseMember(const Ch *name) const
Definition: document.h:2555
~GenericObject()
Definition: document.h:2510
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:6303
Iterator operator+(DifferenceType n) const
Definition: document.h:162
const GLubyte * c
Definition: glext.h:9812
Iterator & operator+=(DifferenceType n)
Definition: document.h:165
ValueType::ConstArray ArrayType
Definition: document.h:499
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
Result of parsing (wraps ParseErrorCode)
Definition: error.h:106
Definition: document.h:1856
GLuint GLuint GLsizei count
Definition: glext.h:6292
Iterator & operator--()
Definition: document.h:155
typedef bool(RETRO_CALLCONV *retro_replace_image_index_t)(unsigned index
void Destroy()
Definition: document.h:2390
GenericArray(ValueType &value)
Definition: document.h:2482
Definition: document.h:1819
Definition: document.h:1871
MemberIterator FindMember(const Ch *name) const
Definition: document.h:2526
Definition: document.h:1818
String s
Definition: document.h:1918
RAPIDJSON_FORCEINLINE const Ch * SetStringPointer(const Ch *str)
Definition: document.h:1927
RAPIDJSON_DISABLEIF_RETURN((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >),(const GenericArray &)) PushBack(T value
GenericMemberIterator()
Default constructor (singular value)
Definition: document.h:131
static ValueType & Set(ValueType &v, const StringType data)
Definition: document.h:474
GenericDocument & Parse(const typename SourceEncoding::Ch *str)
Parse JSON text from a read-only string (with Encoding conversion)
Definition: document.h:2221
null
Definition: rapidjson.h:604
GenericObject AddMember(ValueType &name, ValueType &value, AllocatorType &allocator) const
Definition: document.h:2531
SizeType Size() const
Definition: document.h:2457
unsigned StrLen(const Ch *s)
Definition: unittest.h:60
static int Get(const ValueType &v)
Definition: document.h:424
ValueType::StringRefType StringRefType
Definition: document.h:2501
GenericValue< Encoding, Allocator > ValueType
Value type of itself.
Definition: document.h:552
char padding2[4]
Definition: document.h:1888
Iterator operator-(DifferenceType n) const
Definition: document.h:163
static float Get(const ValueType &v)
Definition: document.h:464
static bool Is(const ValueType &v)
Definition: document.h:516
static bool Is(const ValueType &v)
Definition: document.h:447
GenericMemberIterator< false, Encoding, Allocator > NonConstIterator
Non-constant iterator type.
Definition: document.h:118
bool EraseMember(const GenericValue< EncodingType, SourceAllocator > &name) const
Definition: document.h:2559
GenericValue(Array a) RAPIDJSON_NOEXCEPT
Constructor for Array.
Definition: document.h:700
GLenum type
Definition: glext.h:6233
static uint32_t * payload
Definition: ranetplayer.c:87
bool StringEqual(const GenericValue< Encoding, SourceAllocator > &rhs) const
Definition: document.h:1991
static bool Is(const ValueType &v)
Definition: document.h:455
GenericArray PushBack(StringRefType value, AllocatorType &allocator) const
Definition: document.h:2469
bool ObjectEmpty() const
Definition: document.h:2513
static bool Is(const ValueType &v)
Definition: document.h:500
Definition: document.h:1834
GenericMemberIterator(Pointer p)
Internal constructor from plain pointer.
Definition: document.h:191
ValueType::StringRefType StringRefType
Definition: document.h:2448
bool operator<(ConstIterator that) const
Definition: document.h:175
~GenericDocument()
Definition: document.h:2072
void Clear()
Definition: stack.h:98
static ValueType & Set(ValueType &v, int64_t data, typename ValueType::AllocatorType &)
Definition: document.h:442
GenericValue(double d) RAPIDJSON_NOEXCEPT
Constructor for double value.
Definition: document.h:673
static const SizeType kDefaultObjectCapacity
Definition: document.h:1843
static const size_t kDefaultStackCapacity
Definition: document.h:2394
const GenericValue * ConstValueIterator
Constant value iterator for iterating in array.
Definition: document.h:551
GenericDocument & ParseInsitu(Ch *str)
Parse JSON text from a mutable string (with kParseDefaultFlags)
Definition: document.h:2207
Member * members
Definition: document.h:1908
static bool Get(const ValueType &v)
Definition: document.h:416
Definition: document.h:1824
GenericMemberIterator< true, Encoding, Allocator >::Iterator ConstMemberIterator
Constant member iterator for iterating in object.
Definition: document.h:549
SizeType length
Definition: document.h:1857
static ArrayType Get(const ValueType &v)
Definition: document.h:501
bool operator!=(ConstIterator that) const
Definition: document.h:172
GenericValue< Encoding, Allocator > name
name of member (must be a string)
Definition: document.h:72
Definition: document.h:1871
GenericDocument & Parse(const Ch *str, size_t length)
Definition: document.h:2257
RAPIDJSON_FORCEINLINE GenericValue * GetElementsPointer() const
Definition: document.h:1928
GenericValue(const Ch *s, SizeType length, Allocator &allocator)
Constructor for copy-string (i.e. do make a copy of string)
Definition: document.h:682
VULKAN_HPP_INLINE void swap(UniqueHandle< Type > &lhs, UniqueHandle< Type > &rhs)
Definition: vulkan.hpp:441
GenericObject(const GenericObject &rhs)
Definition: document.h:2508
GenericValue(int i) RAPIDJSON_NOEXCEPT
Constructor for int value.
Definition: document.h:634
Allocator * ownAllocator_
Definition: document.h:2396
bool HasParseError() const
Whether a parse error has occured in the last parsing.
Definition: document.h:2284
bool Int(int i)
Definition: document.h:2335
GenericValue(Object o) RAPIDJSON_NOEXCEPT
Constructor for Object.
Definition: document.h:711
GenericMemberIterator< true, typename ValueT::EncodingType, typename ValueT::AllocatorType > ConstMemberIterator
Definition: document.h:2499
number
Definition: rapidjson.h:610
Definition: document.h:1917
friend void swap(GenericDocument &a, GenericDocument &b) RAPIDJSON_NOEXCEPT
free-standing swap function helper
Definition: document.h:2127
GenericMemberIterator< true, Encoding, Allocator > ConstIterator
Constant iterator type.
Definition: document.h:116
static bool Is(const ValueType &v)
Definition: document.h:415
static unsigned Get(const ValueType &v)
Definition: document.h:432
static StringType Get(const ValueType &v)
Definition: document.h:473
SizeType size
Definition: document.h:1906
GenericValue(uint64_t u64) RAPIDJSON_NOEXCEPT
Constructor for uint64_t value.
Definition: document.h:661
Number n
Definition: document.h:1920
ValueT PlainType
Definition: document.h:2496
GenericObject AddMember(StringRefType name, StringRefType value, AllocatorType &allocator) const
Definition: document.h:2544
MemberIterator RemoveMember(MemberIterator m) const
Definition: document.h:2552
bool Uint64(uint64_t i)
Definition: document.h:2338
RAPIDJSON_DISABLEIF_RETURN((internal::OrExpr< internal::IsPointer< T >, internal::IsGenericValue< T > >),(ValueType &)) AddMember(ValueType &name
MemberIterator MemberBegin() const
Definition: document.h:2519
SizeType Capacity() const
Definition: document.h:2458
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:402
bool Null()
Definition: document.h:2333
uint64_t u64
Definition: document.h:1901
GenericValue(int64_t i64) RAPIDJSON_NOEXCEPT
Constructor for int64_t value.
Definition: document.h:646
static bool Is(const ValueType &v)
Definition: document.h:439
GenericValue(const Ch *s, Allocator &allocator)
Constructor for copy-string (i.e. do make a copy of string)
Definition: document.h:685
GenericArray PushBack(ValueType &value, AllocatorType &allocator) const
Definition: document.h:2465
GenericObject AddMember(ValueType &name, StringRefType value, AllocatorType &allocator) const
Definition: document.h:2532
GenericArray< true, ValueT > ConstArray
Definition: document.h:2441
uint16_t flags
Definition: document.h:1853
Definition: document.h:1833
Definition: document.h:1820
Definition: document.h:391
static ValueType & Set(ValueType &v, bool data, typename ValueType::AllocatorType &)
Definition: document.h:418
#define RAPIDJSON_UNLIKELY(x)
Compiler branching hint for expression with low probability to be true.
Definition: rapidjson.h:468
static ValueType & Set(ValueType &v, unsigned data, typename ValueType::AllocatorType &)
Definition: document.h:434
RAPIDJSON_DISABLEIF_RETURN((internal::IsPointer< T >),(GenericValue &)) operator
Assignment with primitive types.
Allocator & GetAllocator()
Get the allocator of this document.
Definition: document.h:2308
GenericValue() RAPIDJSON_NOEXCEPT
Default constructor creates a null value.
Definition: document.h:562
GenericStringRef(const CharType *str, SizeType len)
Create constant string reference from pointer and length.
Definition: document.h:314
bool RemoveMember(const GenericValue< EncodingType, SourceAllocator > &name) const
Definition: document.h:2551
GLfloat GLfloat p
Definition: glext.h:9809
size_t Offset() const
Get the error offset, if IsError(), 0 otherwise.
Definition: error.h:116
GenericDocument(Type type, Allocator *allocator=0, size_t stackCapacity=kDefaultStackCapacity, StackAllocator *stackAllocator=0)
Constructor.
Definition: document.h:2037
static ArrayType Get(ValueType &v)
Definition: document.h:492
#define RAPIDJSON_DELETE(x)
! customization point for global delete
Definition: rapidjson.h:590
GenericValue(Type type) RAPIDJSON_NOEXCEPT
Constructor with JSON value type.
Definition: document.h:592
static bool Is(const ValueType &v)
Definition: document.h:507
const Ch *const s
plain CharType pointer
Definition: document.h:324
bool Bool(bool b)
Definition: document.h:2334
~GenericArray()
Definition: document.h:2455
GenericValue(unsigned u) RAPIDJSON_NOEXCEPT
Constructor for unsigned value.
Definition: document.h:640
static ValueType & Set(ValueType &v, ArrayType data, typename ValueType::AllocatorType &)
Definition: document.h:494
bool HasAllocator() const
Definition: stack.h:166
GenericStringRef(const GenericStringRef &rhs)
Definition: document.h:317
GenericArray PopBack() const
Definition: document.h:2471
void SetStringRaw(StringRefType s, Allocator &allocator)
Initialize this value as copy string with initial data, without calling destructor.
Definition: document.h:1967
GenericObject & operator=(const GenericObject &rhs)
Definition: document.h:2509
ValueIterator Begin() const
Definition: document.h:2462
SizeType size
Definition: document.h:1912
static bool Usable(SizeType len)
Definition: document.h:1874
GLuint index
Definition: glext.h:6671
char padding[4]
Definition: document.h:1884
bool HasMember(const GenericValue< EncodingType, SourceAllocator > &name) const
Definition: document.h:2525
double d
Definition: document.h:1902
void RemoveAllMembers()
Definition: document.h:2546
Definition: document.h:1816
bool IsError() const
Whether the result is an error.
Definition: error.h:121
static ValueType & Set(ValueType &v, float data)
Definition: document.h:465
GenericMemberIterator< Const, typename ValueT::EncodingType, typename ValueT::AllocatorType > MemberIterator
Definition: document.h:2498
Flag f
Definition: document.h:1923
ParseErrorCode
Error code of parsing.
Definition: error.h:64
int64_t i64
Definition: document.h:1900
bool operator==(const FloatProxy< T > &first, const FloatProxy< T > &second)
Definition: hex_float.h:162
const GLdouble * v
Definition: glext.h:6391
ClearStackOnExit & operator=(const ClearStackOnExit &)
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
Definition: rapidjson.h:116
uint64_t u64
64bit unsigned integer
Definition: gctypes.h:20
ParseErrorCode Code() const
Get the error code.
Definition: error.h:114
static ValueType & Set(ValueType &v, uint64_t data, typename ValueType::AllocatorType &)
Definition: document.h:450
GenericDocument(Allocator *allocator=0, size_t stackCapacity=kDefaultStackCapacity, StackAllocator *stackAllocator=0)
Constructor.
Definition: document.h:2050
Definition: document.h:1832
GenericDocument & ParseStream(InputStream &is)
Parse JSON text from an input stream (with Encoding conversion)
Definition: document.h:2155
bool Key(const Ch *str, SizeType length, bool copy)
Definition: document.h:2359
GLboolean GLboolean g
Definition: glext.h:6844
bool operator==(ConstIterator that) const
Definition: document.h:171
internal::MaybeAddConst< Const, PlainType >::Type ValueType
Definition: document.h:109
bool EndObject(SizeType memberCount)
Definition: document.h:2361
Pointer operator->() const
Definition: document.h:182
void SetStringRaw(StringRefType s) RAPIDJSON_NOEXCEPT
Initialize this value as constant string, without calling destructor.
Definition: document.h:1960
ValueType & operator[](T *name) const
Definition: document.h:2514
ValueType & value_
Definition: document.h:2569
BaseType::reference Reference
Reference to (const) GenericMember.
Definition: document.h:123
GenericArray & operator=(const GenericArray &rhs)
Definition: document.h:2454
~ClearStackOnExit()
Definition: document.h:2320
GenericMemberIterator< false, Encoding, Allocator >::Iterator MemberIterator
Member iterator for iterating in object.
Definition: document.h:548
static bool Is(const ValueType &v)
Definition: document.h:423
Allocator AllocatorType
Allocator type from template parameter.
Definition: document.h:2028
Ch str[MaxChars]
Definition: document.h:1872
static ValueType & Set(ValueType &v, uint64_t data)
Definition: document.h:449
int i
Definition: document.h:1883
static uint64_t Get(const ValueType &v)
Definition: document.h:448
Input byte stream wrapper with a statically bound encoding.
Definition: encodedstream.h:39
JSON_Parser_EncodingDetectedHandler handler
Definition: jsonsax_full.h:561
Definition: document.h:411
bool Int64(int64_t i)
Definition: document.h:2337
static ValueType & Set(ValueType &v, double data)
Definition: document.h:457
signed __int64 int64_t
Definition: stdint.h:135
GenericValue & operator=(StringRefType str) RAPIDJSON_NOEXCEPT
Assignment of constant string reference (no copy)
Definition: document.h:774
GenericMember< Encoding, Allocator > Member
Name-value pair in an object.
Definition: document.h:543
GenericValue * elements
Definition: document.h:1914
Helper class for accessing Value of array type.
Definition: document.h:523
~GenericValue()
Destructor.
Definition: document.h:719
Iterator operator--(int)
Definition: document.h:157
Definition: document.h:1911
Definition: document.h:394
GenericStringRef & operator=(const GenericStringRef &rhs)
Definition: document.h:319
static ObjectType Get(const ValueType &v)
Definition: document.h:517
BaseType::pointer Pointer
Pointer to (const) GenericMember.
Definition: document.h:121
GLsizei const GLfloat * value
Definition: glext.h:6709
#define RAPIDJSON_STATIC_ASSERT(x)
(Internal) macro to check for conditions at compile-time
Definition: rapidjson.h:437
static bool Is(const ValueType &v)
Definition: document.h:472
ValueIterator Erase(ConstValueIterator pos) const
Definition: document.h:2472
Iterator & operator++()
Definition: document.h:154
byte Encoding
Definition: jsonsax_full.c:106
MemberIterator EraseMember(ConstMemberIterator first, ConstMemberIterator last) const
Definition: document.h:2554
Definition: document.h:1839
MemberIterator EraseMember(ConstMemberIterator pos) const
Definition: document.h:2553
BaseType::difference_type DifferenceType
Signed integer type (e.g. ptrdiff_t)
Definition: document.h:125
Definition: document.h:1813
const SizeType length
length of the string (excluding the trailing NULL terminator)
Definition: document.h:325
Type
Type of JSON value.
Definition: rapidjson.h:603
ValueType & operator[](SizeType index) const
Definition: document.h:2461
void SetLength(SizeType len)
Definition: document.h:1875
static ValueType & Set(ValueType &v, unsigned data)
Definition: document.h:433
GLuint GLuint end
Definition: glext.h:6292
MemberIterator MemberEnd() const
Definition: document.h:2520
bool operator>=(ConstIterator that) const
Definition: document.h:174
Pointer ptr_
raw pointer
Definition: document.h:193
Encoding::Ch Ch
Character type derived from Encoding.
Definition: document.h:546
#define false
Definition: ordinals.h:83
ValueType::ConstObject ObjectType
Definition: document.h:515
GenericDocument & ParseStream(InputStream &is)
Parse JSON text from an input stream.
Definition: document.h:2174
GenericMember< Encoding, Allocator > PlainType
Definition: document.h:108
ClearStackOnExit(GenericDocument &d)
Definition: document.h:2319
Definition: video4linux2.c:51
Definition: document.h:1880
#define RAPIDJSON_UINT64_C2(high32, low32)
Construct a 64-bit literal by a pair of 32-bit integer.
Definition: rapidjson.h:289
A document for parsing JSON text as DOM.
Definition: document.h:62
#define true
Definition: ordinals.h:82
RAPIDJSON_FORCEINLINE Member * GetMembersPointer() const
Definition: document.h:1930
internal::MaybeAddConst< Const, PlainType >::Type ValueType
Definition: document.h:2444
Encoding::Ch Ch
Character type derived from Encoding.
Definition: document.h:2026
GenericObject< false, ValueType > Object
Definition: document.h:555
SizeType capacity
Definition: document.h:1907
Definition: document.h:1836
GenericObject AddMember(StringRefType name, ValueType &value, AllocatorType &allocator) const
Definition: document.h:2543
static ValueType & Set(ValueType &v, double data, typename ValueType::AllocatorType &)
Definition: document.h:458
SizeType capacity
Definition: document.h:1913
ValueType::EncodingType EncodingType
Definition: document.h:2502
Definition: document.h:1831
ValueType::Object ObjectType
Definition: document.h:506
SAX-style JSON parser. Use Reader for UTF8 encoding and default allocator.
Definition: fwd.h:88
GenericDocument & operator=(const GenericDocument &)
Prohibit assignment.
Definition: document.h:2318
Iterator operator++(int)
Definition: document.h:156
Definition: document.h:401
Definition: document.h:1825
GenericValue * ValueIterator
Value iterator for iterating in array.
Definition: document.h:550
GenericObject< false, ValueT > Object
Definition: document.h:2495
internal::Stack< StackAllocator > stack_
Definition: document.h:2397
GenericDocument & ParseStream(InputStream &is)
Parse JSON text from an input stream (with kParseDefaultFlags)
Definition: document.h:2184
GenericValue< Encoding, Allocator > ValueType
Value type of the document.
Definition: document.h:2027
unsigned short uint16_t
Definition: stdint.h:125
Definition: document.h:1905
unsigned __int64 uint64_t
Definition: stdint.h:136
Reference to a constant string (not taking a copy)
Definition: document.h:249
GLenum GLuint GLenum GLsizei length
Definition: glext.h:6233
SizeType hashcode
reserved
Definition: document.h:1858
GLdouble n
Definition: glext.h:8396
RAPIDJSON_FORCEINLINE Member * SetMembersPointer(Member *members)
Definition: document.h:1931
Definition: document.h:1827
bool String(const Ch *str, SizeType length, bool copy)
Definition: document.h:2349
size_t GetStackCapacity() const
Get the capacity of stack in bytes.
Definition: document.h:2314
char payload[sizeof(SizeType) *2+sizeof(void *)+2]
Definition: document.h:1851
const GLfloat * m
Definition: glext.h:11755
GenericValue(const Ch *s, SizeType length) RAPIDJSON_NOEXCEPT
Constructor for constant string (i.e. do not make a copy of string)
Definition: document.h:676
static bool Is(const ValueType &v)
Definition: document.h:463
static bool Is(const ValueType &v)
Definition: document.h:491
static ValueType & Set(ValueType &v, bool data)
Definition: document.h:417
const char *const str
Definition: portlistingparse.c:18
std::iterator< std::random_access_iterator_tag, ValueType > BaseType
Definition: document.h:110
size_t GetCapacity() const
Definition: stack.h:177
RAPIDJSON_FORCEINLINE GenericValue * SetElementsPointer(GenericValue *elements)
Definition: document.h:1929
bool operator>(ConstIterator that) const
Definition: document.h:176
Definition: document.h:1826
bool operator<=(ConstIterator that) const
Definition: document.h:173
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844
MemberIterator FindMember(const GenericValue< EncodingType, SourceAllocator > &name) const
Definition: document.h:2527
RAPIDJSON_NAMESPACE_BEGIN typedef unsigned SizeType
Size type (for string lengths, array sizes, etc.)
Definition: rapidjson.h:380
GenericArray(const GenericArray &rhs)
Definition: document.h:2453
static bool Is(const ValueType &v)
Definition: document.h:431
static int64_t Get(const ValueType &v)
Definition: document.h:440
void Clear() const
Definition: document.h:2460
Definition: document.h:1830
void * memcpy(void *dst, const void *src, size_t len)
Definition: string.c:26
GenericStringRef< CharType > StringRef(const CharType *str)
Mark a character pointer as constant string.
Definition: document.h:346
static ObjectType Get(ValueType &v)
Definition: document.h:508
static ValueType & Set(ValueType &v, ArrayType data)
Definition: document.h:493
bool EndArray(SizeType elementCount)
Definition: document.h:2369
GenericValue & operator=(GenericValue &rhs) RAPIDJSON_NOEXCEPT
Assignment with move semantics.
Definition: document.h:755