|
| typedef Encoding::Ch | Ch |
| | Character type derived from Encoding.
|
| typedef GenericValue< Encoding, Allocator > | ValueType |
| | Value type of the document.
|
| typedef Allocator | AllocatorType |
| | Allocator type from template parameter.
|
| typedef GenericMember< Encoding, MemoryPoolAllocator<> > | Member |
| | Name-value pair in an object.
|
| typedef Encoding | EncodingType |
| | Encoding type from template parameter.
|
| typedef MemoryPoolAllocator<> | AllocatorType |
| | Allocator type from template parameter.
|
| typedef Encoding::Ch | Ch |
| | Character type derived from Encoding.
|
| typedef GenericStringRef< Ch > | StringRefType |
| | Reference to a constant string.
|
| typedef GenericMemberIterator< false, Encoding, MemoryPoolAllocator<> >::Iterator | MemberIterator |
| | Member iterator for iterating in object.
|
| typedef GenericMemberIterator< true, Encoding, MemoryPoolAllocator<> >::Iterator | ConstMemberIterator |
| | Constant member iterator for iterating in object.
|
| typedef GenericValue * | ValueIterator |
| | Value iterator for iterating in array.
|
| typedef const GenericValue * | ConstValueIterator |
| | Constant value iterator for iterating in array.
|
| typedef GenericValue< Encoding, MemoryPoolAllocator<> > | ValueType |
| | Value type of itself.
|
| typedef GenericArray< false, ValueType > | Array |
| typedef GenericArray< true, ValueType > | ConstArray |
| typedef GenericObject< false, ValueType > | Object |
| typedef GenericObject< true, ValueType > | ConstObject |
| enum | |
|
| | GenericDocument (Type type, Allocator *allocator=0, size_t stackCapacity=kDefaultStackCapacity, StackAllocator *stackAllocator=0) |
| | Constructor.
|
| | GenericDocument (Allocator *allocator=0, size_t stackCapacity=kDefaultStackCapacity, StackAllocator *stackAllocator=0) |
| | Constructor.
|
| | ~GenericDocument () |
| GenericDocument & | Swap (GenericDocument &rhs) RAPIDJSON_NOEXCEPT |
| | Exchange the contents of this document with those of another.
|
| template<typename Generator> |
| GenericDocument & | Populate (Generator &g) |
| | Populate this document by a generator which produces SAX events.
|
| Allocator & | GetAllocator () |
| | Get the allocator of this document.
|
| size_t | GetStackCapacity () const |
| | Get the capacity of stack in bytes.
|
| bool | Null () |
| bool | Bool (bool b) |
| bool | Int (int i) |
| bool | Uint (unsigned i) |
| bool | Int64 (int64_t i) |
| bool | Uint64 (uint64_t i) |
| bool | Double (double d) |
| bool | RawNumber (const Ch *str, SizeType length, bool copy) |
| bool | String (const Ch *str, SizeType length, bool copy) |
| bool | StartObject () |
| bool | Key (const Ch *str, SizeType length, bool copy) |
| bool | EndObject (SizeType memberCount) |
| bool | StartArray () |
| bool | EndArray (SizeType elementCount) |
| template<unsigned parseFlags, typename SourceEncoding, typename InputStream> |
| GenericDocument & | ParseStream (InputStream &is) |
| | Parse JSON text from an input stream (with Encoding conversion).
|
| template<unsigned parseFlags, typename InputStream> |
| GenericDocument & | ParseStream (InputStream &is) |
| | Parse JSON text from an input stream.
|
| template<typename InputStream> |
| GenericDocument & | ParseStream (InputStream &is) |
| | Parse JSON text from an input stream (with kParseDefaultFlags).
|
| template<unsigned parseFlags> |
| GenericDocument & | ParseInsitu (Ch *str) |
| | Parse JSON text from a mutable string.
|
| GenericDocument & | ParseInsitu (Ch *str) |
| | Parse JSON text from a mutable string (with kParseDefaultFlags).
|
| template<unsigned parseFlags, typename SourceEncoding> |
| GenericDocument & | Parse (const typename SourceEncoding::Ch *str) |
| | Parse JSON text from a read-only string (with Encoding conversion).
|
| template<unsigned parseFlags> |
| GenericDocument & | Parse (const Ch *str) |
| | Parse JSON text from a read-only string.
|
| GenericDocument & | Parse (const Ch *str) |
| | Parse JSON text from a read-only string (with kParseDefaultFlags).
|
| template<unsigned parseFlags, typename SourceEncoding> |
| GenericDocument & | Parse (const typename SourceEncoding::Ch *str, size_t length) |
| template<unsigned parseFlags> |
| GenericDocument & | Parse (const Ch *str, size_t length) |
| GenericDocument & | Parse (const Ch *str, size_t length) |
| bool | HasParseError () const |
| | Whether a parse error has occurred in the last parsing.
|
| ParseErrorCode | GetParseError () const |
| | Get the ParseErrorCode of last parsing.
|
| size_t | GetErrorOffset () const |
| | Get the position of last parsing error in input, 0 otherwise.
|
| | operator ParseResult () const |
| | Implicit conversion to get the last parse result.
|
| | GenericValue () RAPIDJSON_NOEXCEPT |
| | Default constructor creates a null value.
|
| | ~GenericValue () |
| | Destructor.
|
| GenericValue & | operator= (GenericValue &rhs) RAPIDJSON_NOEXCEPT |
| | Assignment with move semantics.
|
| | RAPIDJSON_DISABLEIF_RETURN ((internal::IsPointer< T >),(GenericValue &)) operator |
| | Assignment with primitive types.
|
| RAPIDJSON_FORCEINLINE const Ch * | GetStringPointer () const |
| RAPIDJSON_FORCEINLINE const Ch * | SetStringPointer (const Ch *str) |
| RAPIDJSON_FORCEINLINE GenericValue * | GetElementsPointer () const |
| RAPIDJSON_FORCEINLINE GenericValue * | SetElementsPointer (GenericValue *elements) |
| RAPIDJSON_FORCEINLINE Member * | GetMembersPointer () const |
| RAPIDJSON_FORCEINLINE Member * | SetMembersPointer (Member *members) |
| void | SetArrayRaw (GenericValue *values, SizeType count, MemoryPoolAllocator<> &allocator) |
| void | SetObjectRaw (Member *members, SizeType count, MemoryPoolAllocator<> &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 | RawAssign (GenericValue &rhs) RAPIDJSON_NOEXCEPT |
| | Assignment without calling destructor.
|
| bool | StringEqual (const GenericValue< Encoding, SourceAllocator > &rhs) const |
template<typename
Encoding, typename
Allocator = MemoryPoolAllocator<>, typename StackAllocator = CrtAllocator>
class GenericDocument< Encoding, Allocator, StackAllocator >
A document for parsing JSON text as DOM.
- Note
- implements Handler concept
- Template Parameters
-
- Warning
- Although GenericDocument inherits from GenericValue, the API does not provide any virtual functions, especially no virtual destructor. To avoid memory leaks, do not
delete a GenericDocument object via a pointer to a GenericValue.