![]() |
VR-Vantage 3.0 API Documentation
|
common definitions and configuration More...
Go to the source code of this file.
Namespaces | |
| namespace | rapidjson |
| main RapidJSON namespace | |
Macros | |
| #define | RAPIDJSON_MAJOR_VERSION 1 |
| Major version of RapidJSON in integer. | |
| #define | RAPIDJSON_MINOR_VERSION 1 |
| Minor version of RapidJSON in integer. | |
| #define | RAPIDJSON_PATCH_VERSION 0 |
| Patch version of RapidJSON in integer. | |
| #define | RAPIDJSON_VERSION_STRING RAPIDJSON_STRINGIFY(RAPIDJSON_MAJOR_VERSION.RAPIDJSON_MINOR_VERSION.RAPIDJSON_PATCH_VERSION) |
| Version of RapidJSON in "<major>.<minor>.<patch>" string format. | |
| #define | RAPIDJSON_NAMESPACE rapidjson |
| provide custom rapidjson namespace | |
| #define | RAPIDJSON_NAMESPACE_BEGIN namespace RAPIDJSON_NAMESPACE { |
| provide custom rapidjson namespace (opening expression) | |
| #define | RAPIDJSON_NAMESPACE_END } |
| provide custom rapidjson namespace (closing expression) | |
| #define | RAPIDJSON_HAS_STDSTRING |
Enable RapidJSON support for std::string. | |
| #define | RAPIDJSON_LITTLEENDIAN 0 |
| Little endian machine. | |
| #define | RAPIDJSON_BIGENDIAN 1 |
| Big endian machine. | |
| #define | RAPIDJSON_64BIT 0 |
| Whether using 64-bit architecture. | |
| #define | RAPIDJSON_ALIGN(x) (((x) + 3u) & ~3u) |
| Data alignment of the machine. | |
| #define | RAPIDJSON_UINT64_C2(high32, low32) ((static_cast<uint64_t>(high32) << 32) | static_cast<uint64_t>(low32)) |
| Construct a 64-bit literal by a pair of 32-bit integer. | |
| #define | RAPIDJSON_48BITPOINTER_OPTIMIZATION 0 |
| Use only lower 48-bit address for some pointers. | |
| #define | RAPIDJSON_SETPOINTER(type, p, x) (p = (x)) |
| #define | RAPIDJSON_GETPOINTER(type, p) (p) |
| #define | RAPIDJSON_ASSERT(x) assert(x) |
| Assertion. | |
| #define | RAPIDJSON_STATIC_ASSERT(x) |
| (Internal) macro to check for conditions at compile-time | |
| #define | RAPIDJSON_LIKELY(x) (x) |
| Compiler branching hint for expression with high probability to be true. | |
| #define | RAPIDJSON_UNLIKELY(x) (x) |
| Compiler branching hint for expression with low probability to be true. | |
| #define | RAPIDJSON_NEW(x) new x |
! customization point for global new | |
| #define | RAPIDJSON_DELETE(x) delete x |
! customization point for global delete | |
Enumerations | |
| enum | Type { kNullType = 0, kFalseType = 1, kTrueType = 2, kObjectType = 3, kArrayType = 4, kStringType = 5, kNumberType = 6 } |
| Type of JSON value. More... | |
Variables | |
| RAPIDJSON_NAMESPACE_BEGIN typedef unsigned | SizeType |
| Size type (for string lengths, array sizes, etc.) | |
common definitions and configuration
| #define RAPIDJSON_LITTLEENDIAN 0 |
Little endian machine.
| #define RAPIDJSON_BIGENDIAN 1 |
Big endian machine.
| #define RAPIDJSON_64BIT 0 |
Whether using 64-bit architecture.
| #define RAPIDJSON_UINT64_C2 | ( | high32, | |
| low32 | |||
| ) | ((static_cast<uint64_t>(high32) << 32) | static_cast<uint64_t>(low32)) |
Construct a 64-bit literal by a pair of 32-bit integer.
64-bit literal with or without ULL suffix is prone to compiler warnings. UINT64_C() is C macro which cause compilation problems. Use this macro to define 64-bit constants by a pair of 32-bit integer.
Referenced by GenericValue< EncodingType, AllocatorType >::GenericValue(), internal::GetCachedPowerByIndex(), internal::Hasher< Encoding, Allocator >::Hash(), internal::BigInteger::MultiplyPow5(), GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::ParseNumber(), internal::StrtodDiyFp(), and internal::Hasher< Encoding, Allocator >::WriteBuffer().
| #define RAPIDJSON_STATIC_ASSERT | ( | x | ) |
(Internal) macro to check for conditions at compile-time
| x | compile-time condition |
Referenced by GenericValue< EncodingType, AllocatorType >::GenericValue(), UTF8< CharType >::Put(), ASCII< CharType >::Put(), UTF8< CharType >::PutBOM(), ASCII< CharType >::PutBOM(), UTF8< CharType >::Take(), ASCII< CharType >::Take(), UTF8< CharType >::TakeBOM(), and ASCII< CharType >::TakeBOM().
! customization point for global new
Referenced by MemoryPoolAllocator< BaseAllocator >::AddChunk(), internal::Stack< StackAllocator >::Expand(), GenericDocument< Encoding, Allocator, StackAllocator >::GenericDocument(), GenericSchemaDocument< ValueT, Allocator >::GenericSchemaDocument(), and GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GetStateAllocator().
! customization point for global delete
Referenced by internal::Stack< StackAllocator >::Destroy(), GenericDocument< Encoding, Allocator, StackAllocator >::Destroy(), GenericPointer< ValueType, Allocator >::~GenericPointer(), GenericSchemaDocument< ValueT, Allocator >::~GenericSchemaDocument(), GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::~GenericSchemaValidator(), and MemoryPoolAllocator< BaseAllocator >::~MemoryPoolAllocator().
| enum Type |
| RAPIDJSON_NAMESPACE_BEGIN typedef unsigned SizeType |
Size type (for string lengths, array sizes, etc.)
RapidJSON uses 32-bit array/string indices even on 64-bit platforms, instead of using size_t. Users may override the SizeType by defining RAPIDJSON_NO_SIZETYPEDEFINE.
Referenced by internal::GenericRegex< Encoding, Allocator >::Append(), internal::TokenHelper< Stack, Ch >::AppendIndexToken(), internal::TokenHelper< Stack, char >::AppendIndexToken(), GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AppendToken(), internal::Schema< SchemaDocumentType >::AssignIfExist(), GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::BeginValue(), internal::GenericRegex< Encoding, Allocator >::CloneTopOperand(), internal::CountStringCodePoint(), internal::Schema< SchemaDocumentType >::CreateParallelValidator(), GenericSchemaDocument< ValueT, Allocator >::CreateSchemaRecursive(), internal::Schema< SchemaDocumentType >::CreateSchemaValidators(), internal::Hasher< Encoding, Allocator >::EndArray(), internal::Hasher< Encoding, Allocator >::EndObject(), internal::Schema< SchemaDocumentType >::EndObject(), internal::Schema< SchemaDocumentType >::EndValue(), internal::GenericRegex< Encoding, Allocator >::Eval(), internal::Schema< SchemaDocumentType >::FindPropertyIndex(), GenericValue< Encoding, Allocator >::ShortString::GetLength(), GenericSchemaDocument< ValueT, Allocator >::HandleRefSchema(), internal::Schema< SchemaDocumentType >::Key(), internal::GenericRegex< Encoding, Allocator >::Parse(), GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::ParseArray(), GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::ParseNumber(), GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::ParseObject(), internal::GenericRegex< Encoding, Allocator >::ParseRange(), GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::ParseString(), internal::GenericRegex< Encoding, Allocator >::Patch(), internal::GenericRegex< Encoding, Allocator >::PushOperand(), internal::Schema< SchemaDocumentType >::Schema(), internal::GenericRegex< Encoding, Allocator >::SearchWithAnchoring(), internal::Schema< SchemaDocumentType >::StartObject(), internal::Schema< SchemaDocumentType >::String(), GenericValue< EncodingType, AllocatorType >::StringEqual(), StringRef(), internal::StrLen(), GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::Transit(), internal::Schema< SchemaDocumentType >::~Schema(), and internal::SchemaValidationContext< SchemaDocumentType >::~SchemaValidationContext().