|
| | GenericDocument (Allocator *allocator=0, size_t stackCapacity=kDefaultStackCapacity) |
| | Constructor. More...
|
| |
| template<unsigned parseFlags, typename Stream > |
| GenericDocument & | ParseStream (Stream &stream) |
| | Parse JSON text from an input stream. More...
|
| |
| template<unsigned parseFlags, typename Stream > |
| var | ParseStream ( var stream) |
| | Parse JSON text from an input stream. More...
|
| |
| template<unsigned parseFlags, typename Stream > |
| local | ParseStream ( local stream) |
| | Parse JSON text from an input stream. More...
|
| |
| template<unsigned parseFlags> |
| GenericDocument & | ParseInsitu (Ch *str) |
| | Parse JSON text from a mutable string. More...
|
| |
| template<unsigned parseFlags> |
| var | ParseInsitu ( var str) |
| | Parse JSON text from a mutable string. More...
|
| |
| template<unsigned parseFlags> |
| local | ParseInsitu ( local str) |
| | Parse JSON text from a mutable string. More...
|
| |
| template<unsigned parseFlags> |
| GenericDocument & | Parse (const Ch *str) |
| | Parse JSON text from a read-only string. More...
|
| |
| template<unsigned parseFlags> |
| local | Parse ( local str) |
| | Parse JSON text from a read-only string. More...
|
| |
| bool | HasParseError () const |
| | Whether a parse error was occured in the last parsing. More...
|
| |
| const char * | GetParseError () const |
| | Get the message of parsing error. More...
|
| |
| var | GetParseError () |
| | Get the message of parsing error. More...
|
| |
| local | GetParseError () |
| | Get the message of parsing error. More...
|
| |
| size_t | GetErrorOffset () const |
| | Get the offset in character of the parsing error. More...
|
| |
| Allocator & | GetAllocator () |
| | Get the allocator of this document. More...
|
| |
| size_t | GetStackCapacity () const |
| | Get the capacity of stack in bytes. More...
|
| |
| var | GetStackCapacity () |
| | Get the capacity of stack in bytes. More...
|
| |
| local | GetStackCapacity () |
| | Get the capacity of stack in bytes. More...
|
| |
| template<typename Handler > |
| const GenericValue & | Accept (Handler &handler) const |
| | Generate events of this value to a Handler. More...
|
| |
| GenericValue & | operator= (GenericValue &rhs) |
| | Assignment with move semantics. More...
|
| |
| local | operator= ( local rhs) |
| | Assignment with move semantics. More...
|
| |
| template<typename T > |
| GenericValue & | operator= (T value) |
| | Assignment with primitive types. More...
|
| |
| template<typename T > |
| local | operator= ( local value) |
| | Assignment with primitive types. More...
|
| |
| Type | GetType () const |
| bool | IsNull () const |
| bool | IsFalse () const |
| bool | IsTrue () const |
| bool | IsBool () const |
| bool | IsObject () const |
| bool | IsArray () const |
| bool | IsNumber () const |
| bool | IsInt () const |
| bool | IsUint () const |
| bool | IsInt64 () const |
| bool | IsUint64 () const |
| bool | IsDouble () const |
| bool | IsString () const |
| GenericValue & | SetNull () |
| var | SetNull () |
| local | SetNull () |
| bool | GetBool () const |
| GenericValue & | SetBool (bool b) |
| local | SetBool ( local b) |
| GenericValue & | SetObject () |
| | Set this value as an empty object. More...
|
| |
| GenericValue & | operator[] (const Ch *name) |
| | Get the value associated with the object's name. More...
|
| |
| var | operator[] ( var name) |
| | Get the value associated with the object's name. More...
|
| |
| local | operator[] ( local name) |
| | Get the value associated with the object's name. More...
|
| |
| const GenericValue & | operator[] (const Ch *name) const |
| ConstMemberIterator | MemberonBegin () const |
| | Member iterators. More...
|
| |
| ConstMemberIterator | MemberonEnd () const |
| local | MemberonEnd () |
| MemberIterator | MemberonBegin () |
| MemberIterator | MemberonEnd () |
| bool | HasMember (const Ch *name) const |
| | Check whether a member exists in the object. More...
|
| |
| GenericValue & | AddMember (GenericValue &name, GenericValue &value, Allocator &allocator) |
| | Add a member (name-value pair) to the object. More...
|
| |
| local | AddMember ( local name, local value, local allocator) |
| | Add a member (name-value pair) to the object. More...
|
| |
| GenericValue & | AddMember (const Ch *name, Allocator &nameAllocator, GenericValue &value, Allocator &allocator) |
| local | AddMember ( local name, local nameAllocator, local value, local allocator) |
| GenericValue & | AddMember (const Ch *name, GenericValue &value, Allocator &allocator) |
| template<typename T > |
| GenericValue & | AddMember (const Ch *name, T value, Allocator &allocator) |
| template<typename T > |
| local | AddMember ( local name, local value, local allocator) |
| bool | RemoveMember (const Ch *name) |
| | Remove a member in object by its name. More...
|
| |
| GenericValue & | SetArray () |
| | Set this value as an empty array. More...
|
| |
| SizeType | Size () const |
| | Get the number of elements in array. More...
|
| |
| SizeType | Capacity () const |
| | Get the capacity of array. More...
|
| |
| bool | Empty () const |
| | Check whether the array is empty. More...
|
| |
| void | Clear () |
| | Remove all elements in the array. More...
|
| |
| GenericValue & | operator[] (SizeType index) |
| | Get an element from array by index. More...
|
| |
| local | operator[] ( local index) |
| | Get an element from array by index. More...
|
| |
| const GenericValue & | operator[] (SizeType index) const |
| ValueIterator | onBegin () |
| | Element iterator. More...
|
| |
| ValueIterator | onEnd () |
| ConstValueIterator | onBegin () const |
| var | onBegin () |
| local | onBegin () |
| ConstValueIterator | onEnd () const |
| GenericValue & | Reserve (SizeType newCapacity, Allocator &allocator) |
| | Request the array to have enough capacity to store elements. More...
|
| |
| local | Reserve ( local newCapacity, local allocator) |
| | Request the array to have enough capacity to store elements. More...
|
| |
| GenericValue & | PushBack (GenericValue &value, Allocator &allocator) |
| | Append a value at the end of the array. More...
|
| |
| local | PushBack ( local value, local allocator) |
| | Append a value at the end of the array. More...
|
| |
| template<typename T > |
| GenericValue & | PushBack (T value, Allocator &allocator) |
| template<typename T > |
| var | PushBack ( var value, var allocator) |
| template<typename T > |
| local | PushBack ( local value, local allocator) |
| GenericValue & | PopBack () |
| | Remove the last element in the array. More...
|
| |
| int | GetInt () const |
| unsigned | GetUint () const |
| int64_t | GetInt64 () const |
| uint64_t | GetUint64 () const |
| double | GetDouble () const |
| GenericValue & | SetInt (int i) |
| GenericValue & | SetUint (unsigned u) |
| GenericValue & | SetInt64 (int64_t i64) |
| var | SetInt64 ( var i64) |
| local | SetInt64 ( local i64) |
| GenericValue & | SetUint64 (uint64_t u64) |
| GenericValue & | SetDouble (double d) |
| const Ch * | GetString () const |
| SizeType | GetStringLength () const |
| | Get the length of string. More...
|
| |
| GenericValue & | SetString (const Ch *s, SizeType length) |
| | Set this value as a string without copying source string. More...
|
| |
| GenericValue & | SetString (const Ch *s) |
| | Set this value as a string without copying source string. More...
|
| |
| GenericValue & | SetString (const Ch *s, SizeType length, Allocator &allocator) |
| | Set this value as a string by copying from source string. More...
|
| |
| var | SetString ( var s, var length, var allocator) |
| | Set this value as a string by copying from source string. More...
|
| |
| local | SetString ( local s, local length, local allocator) |
| | Set this value as a string by copying from source string. More...
|
| |
| GenericValue & | SetString (const Ch *s, Allocator &allocator) |
| | Set this value as a string by copying from source string. More...
|
| |
| | GenericValue () |
| | Default constructor creates a null value. More...
|
| |
| | GenericValue (Type type) |
| | Constructor with JSON value type. More...
|
| |
| | GenericValue (bool b) |
| | Constructor for boolean value. More...
|
| |
| | GenericValue (int i) |
| | Constructor for int value. More...
|
| |
| | GenericValue (unsigned u) |
| | Constructor for unsigned value. More...
|
| |
| | GenericValue (int64_t i64) |
| | Constructor for int64_t value. More...
|
| |
| | GenericValue (uint64_t u64) |
| | Constructor for uint64_t value. More...
|
| |
| | GenericValue (double d) |
| | Constructor for double value. More...
|
| |
| | GenericValue (const Ch *s, SizeType length) |
| | Constructor for constant string (i.e. do not make a copy of string) More...
|
| |
| | GenericValue (const Ch *s) |
| | Constructor for constant string (i.e. do not make a copy of string) More...
|
| |
| | GenericValue (const Ch *s, SizeType length, Allocator &allocator) |
| | Constructor for copy-string (i.e. do make a copy of string) More...
|
| |
| | GenericValue ( local s, local length, local allocator) |
| | Constructor for copy-string (i.e. do make a copy of string) More...
|
| |
| | GenericValue (const Ch *s, Allocator &allocator) |
| | Constructor for copy-string (i.e. do make a copy of string) More...
|
| |
| | ~GenericValue () |
| | Destructor. More...
|
| |
template<typename Encoding, typename Allocator = MemoryPoolAllocator<>>
class rapidjson::GenericDocument< Encoding, Allocator >
A document for parsing JSON text as DOM.
- Template Parameters
-
| Encoding | encoding for both parsing and string storage. |
| Alloactor | allocator for allocating memory for the DOM, and the stack during parsing. |