载入中...
搜索中...
未找到
fwd.h
1// Tencent is pleased to support the open source community by making RapidJSON available.
2//
3// Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip.
4//
5// Licensed under the MIT License (the "License"); you may not use this file except
6// in compliance with the License. You may obtain a copy of the License at
7//
8// http://opensource.org/licenses/MIT
9//
10// Unless required by applicable law or agreed to in writing, software distributed
11// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
12// CONDITIONS OF ANY KIND, either express or implied. See the License for the
13// specific language governing permissions and limitations under the License.
14
15#ifndef RAPIDJSON_FWD_H_
16#define RAPIDJSON_FWD_H_
17
18#include "rapidjson.h"
19
20RAPIDJSON_NAMESPACE_BEGIN
21
22// encodings.h
23
24template<typename CharType> struct UTF8;
25template<typename CharType> struct UTF16;
26template<typename CharType> struct UTF16BE;
27template<typename CharType> struct UTF16LE;
28template<typename CharType> struct UTF32;
29template<typename CharType> struct UTF32BE;
30template<typename CharType> struct UTF32LE;
31template<typename CharType> struct ASCII;
32template<typename CharType> struct AutoUTF;
33
34template<typename SourceEncoding, typename TargetEncoding>
36
37// allocators.h
38
39class CrtAllocator;
40
41template <typename BaseAllocator>
43
44// stream.h
45
46template <typename Encoding>
48
50
51template <typename Encoding>
53
55
56// stringbuffer.h
57
58template <typename Encoding, typename Allocator>
60
62
63// filereadstream.h
64
65class FileReadStream;
66
67// filewritestream.h
68
69class FileWriteStream;
70
71// memorybuffer.h
72
73template <typename Allocator>
75
76typedef GenericMemoryBuffer<CrtAllocator> MemoryBuffer;
77
78// memorystream.h
79
80struct MemoryStream;
81
82// reader.h
83
84template<typename Encoding, typename Derived>
86
87template <typename SourceEncoding, typename TargetEncoding, typename StackAllocator>
88class GenericReader;
89
91
92// writer.h
93
94template<typename OutputStream, typename SourceEncoding, typename TargetEncoding, typename StackAllocator, unsigned writeFlags>
95class Writer;
96
97// prettywriter.h
98
99template<typename OutputStream, typename SourceEncoding, typename TargetEncoding, typename StackAllocator, unsigned writeFlags>
100class PrettyWriter;
101
102// document.h
103
104template <typename Encoding, typename Allocator>
105class GenericMember;
106
107template <bool Const, typename Encoding, typename Allocator>
108class GenericMemberIterator;
109
110template<typename CharType>
112
113template <typename Encoding, typename Allocator>
114class GenericValue;
115
116typedef GenericValue<UTF8<char>, MemoryPoolAllocator<CrtAllocator> > Value;
117
118template <typename Encoding, typename Allocator, typename StackAllocator>
120
122
123// pointer.h
124
125template <typename ValueType, typename Allocator>
126class GenericPointer;
127
129
130// schema.h
131
132template <typename SchemaDocumentType>
134
135template <typename ValueT, typename Allocator>
137
140
141template <
142 typename SchemaDocumentType,
143 typename OutputHandler,
144 typename StateAllocator>
146
148
149RAPIDJSON_NAMESPACE_END
150
151#endif // RAPIDJSON_RAPIDJSONFWD_H_
C-runtime library allocator.
定义 allocators.h:83
File byte stream for input using fread().
定义 filereadstream.h:34
Wrapper of C file stream for output using fwrite().
定义 filewritestream.h:32
GenericDocument(Type type, Allocator *allocator=0, size_t stackCapacity=kDefaultStackCapacity, StackAllocator *stackAllocator=0)
Constructor
定义 document.h:2514
Represents a JSON Pointer. Use Pointer for UTF8 encoding and default allocator.
定义 pointer.h:74
SAX-style JSON parser. Use Reader for UTF8 encoding and default allocator.
定义 reader.h:539
JSON schema document.
定义 schema.h:1815
JSON Schema Validator.
定义 schema.h:2440
Represents an in-memory output stream.
定义 stringbuffer.h:41
Default memory allocator used by the parser and DOM.
定义 fwd.h:42
MemoryPoolAllocator(size_t chunkSize=kDefaultChunkCapacity, BaseAllocator *baseAllocator=0)
Constructor with chunkSize.
定义 allocators.h:170
Writer with indentation and spacing.
定义 prettywriter.h:48
JSON writer
定义 writer.h:91
GenericStringStream< UTF8< char > > StringStream
String stream with UTF8 encoding.
定义 fwd.h:49
GenericPointer< Value, CrtAllocator > Pointer
GenericPointer for Value (UTF-8, default allocator).
定义 fwd.h:128
GenericSchemaDocument< Value, CrtAllocator > SchemaDocument
GenericSchemaDocument using Value type.
定义 fwd.h:138
GenericInsituStringStream< UTF8< char > > InsituStringStream
Insitu string stream with UTF8 encoding.
定义 fwd.h:54
GenericValue< UTF8<> > Value
GenericValue with UTF8 encoding
定义 document.h:2486
GenericStringBuffer< UTF8< char >, CrtAllocator > StringBuffer
String buffer with UTF8 encoding
定义 fwd.h:61
GenericDocument< UTF8<> > Document
GenericDocument with UTF8 encoding
定义 document.h:2890
GenericReader< UTF8< char >, UTF8< char >, CrtAllocator > Reader
Reader with UTF8 encoding and default allocator.
定义 fwd.h:90
IGenericRemoteSchemaDocumentProvider< SchemaDocument > IRemoteSchemaDocumentProvider
IGenericRemoteSchemaDocumentProvider using SchemaDocument.
定义 fwd.h:139
common definitions and configuration
ASCII encoding.
定义 fwd.h:31
Dynamically select encoding according to stream's runtime-specified UTF encoding type.
定义 fwd.h:32
Default implementation of Handler.
定义 reader.h:198
A read-write string stream.
定义 stream.h:188
Represents an in-memory output byte stream.
定义 memorybuffer.h:37
GenericStringRef(const CharType(&str)[N]) RAPIDJSON_NOEXCEPT
Create string reference from const character array
定义 document.h:375
Read-only string stream.
定义 stream.h:154
Represents an in-memory input byte stream.
定义 memorystream.h:40
Encoding conversion.
定义 fwd.h:35
UTF-16 big endian encoding.
定义 fwd.h:26
UTF-16 encoding.
定义 fwd.h:25
UTF-16 little endian encoding.
定义 fwd.h:27
UTF-32 big endian encoding.
定义 fwd.h:29
UTF-32 encoding.
定义 fwd.h:28
UTF-32 little endian enocoding.
定义 fwd.h:30
UTF-8 encoding.
定义 fwd.h:24