NCBI C++ ToolKit
Namespaces | Macros | Typedefs | Enumerations
rapidjson.h File Reference

common definitions and configuration More...

#include <cstdlib>
#include <cstring>
#include <cassert>
+ Include dependency graph for rapidjson.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Namespaces

 rapidjson
 main RapidJSON namespace
 

Macros

#define RAPIDJSON_MAJOR_VERSION   1
 Major version of RapidJSON in integer. More...
 
#define RAPIDJSON_MINOR_VERSION   1
 Minor version of RapidJSON in integer. More...
 
#define RAPIDJSON_PATCH_VERSION   0
 Patch version of RapidJSON in integer. More...
 
#define RAPIDJSON_VERSION_STRING    RAPIDJSON_STRINGIFY(RAPIDJSON_MAJOR_VERSION.RAPIDJSON_MINOR_VERSION.RAPIDJSON_PATCH_VERSION)
 Version of RapidJSON in "<major>.<minor>.<patch>" string format. More...
 
#define RAPIDJSON_NAMESPACE   rapidjson
 provide custom rapidjson namespace More...
 
#define RAPIDJSON_NAMESPACE_BEGIN   namespace RAPIDJSON_NAMESPACE {
 provide custom rapidjson namespace (opening expression) More...
 
#define RAPIDJSON_NAMESPACE_END   }
 provide custom rapidjson namespace (closing expression) More...
 
#define RAPIDJSON_HAS_STDSTRING
 Enable RapidJSON support for std::string. More...
 
#define RAPIDJSON_LITTLEENDIAN   0
 Little endian machine. More...
 
#define RAPIDJSON_BIGENDIAN   1
 Big endian machine. More...
 
#define RAPIDJSON_64BIT   0
 Whether using 64-bit architecture. More...
 
#define RAPIDJSON_ALIGN(x)   (((x) + 3u) & ~3u)
 Data alignment of the machine. More...
 
#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. More...
 
#define RAPIDJSON_48BITPOINTER_OPTIMIZATION   0
 Use only lower 48-bit address for some pointers. More...
 
#define RAPIDJSON_SETPOINTER(type, p, x)   (p = (x))
 
#define RAPIDJSON_GETPOINTER(type, p)   (p)
 
#define RAPIDJSON_ASSERT(x)   assert(x)
 Assertion. More...
 
#define RAPIDJSON_STATIC_ASSERT(x)
 (Internal) macro to check for conditions at compile-time More...
 
#define RAPIDJSON_LIKELY(x)   (x)
 Compiler branching hint for expression with high probability to be true. More...
 
#define RAPIDJSON_UNLIKELY(x)   (x)
 Compiler branching hint for expression with low probability to be true. More...
 
#define RAPIDJSON_NEW(TypeName)   new TypeName
 ! customization point for global new More...
 
#define RAPIDJSON_DELETE(x)   delete x
 ! customization point for global delete More...
 

Typedefs

typedef unsigned rapidjson::SizeType
 Size type (for string lengths, array sizes, etc.) More...
 

Enumerations

enum  rapidjson::Type {
  rapidjson::kNullType = 0 , rapidjson::kFalseType = 1 , rapidjson::kTrueType = 2 , rapidjson::kObjectType = 3 ,
  rapidjson::kArrayType = 4 , rapidjson::kStringType = 5 , rapidjson::kNumberType = 6
}
 Type of JSON value. More...
 

Detailed Description

common definitions and configuration

See also
RapidJSON configuration

Definition in file rapidjson.h.

Macro Definition Documentation

◆ RAPIDJSON_64BIT

#define RAPIDJSON_64BIT   0

Whether using 64-bit architecture.

Definition at line 256 of file rapidjson.h.

◆ RAPIDJSON_BIGENDIAN

#define RAPIDJSON_BIGENDIAN   1

Big endian machine.

Definition at line 194 of file rapidjson.h.

◆ RAPIDJSON_DELETE

#define RAPIDJSON_DELETE (   x)    delete x

! customization point for global delete

Definition at line 596 of file rapidjson.h.

◆ RAPIDJSON_GETPOINTER

#define RAPIDJSON_GETPOINTER (   type,
 
)    (p)

Definition at line 319 of file rapidjson.h.

◆ RAPIDJSON_LITTLEENDIAN

#define RAPIDJSON_LITTLEENDIAN   0

Little endian machine.

Definition at line 193 of file rapidjson.h.

◆ RAPIDJSON_NEW

#define RAPIDJSON_NEW (   TypeName)    new TypeName

! customization point for global new

Definition at line 592 of file rapidjson.h.

◆ RAPIDJSON_SETPOINTER

#define RAPIDJSON_SETPOINTER (   type,
  p,
 
)    (p = (x))

Definition at line 318 of file rapidjson.h.

◆ RAPIDJSON_STATIC_ASSERT

#define RAPIDJSON_STATIC_ASSERT (   x)

(Internal) macro to check for conditions at compile-time

Parameters
xcompile-time condition

Definition at line 437 of file rapidjson.h.

◆ RAPIDJSON_UINT64_C2

#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.

Definition at line 289 of file rapidjson.h.

Modified on Fri Mar 01 10:06:23 2024 by modify_doxy.py rev. 669887