1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
|
<!-- HTML header for doxygen 1.8.7-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>RapidJSON: rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator > 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygenextra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="topbanner"><a href="https://github.com/Tencent/rapidjson" title="RapidJSON GitHub"><i class="githublogo"></i></a></div>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="搜索" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classrapidjson_1_1_generic_schema_validator.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public 类型</a> |
<a href="#pub-methods">Public 成员函数</a> |
<a href="classrapidjson_1_1_generic_schema_validator-members.html">所有成员列表</a> </div>
<div class="headertitle">
<div class="title">rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator > 模板类 参考</div> </div>
</div><!--header-->
<div class="contents">
<p>JSON Schema Validator.
<a href="classrapidjson_1_1_generic_schema_validator.html#details">更多...</a></p>
<p><code>#include <<a class="el" href="schema_8h_source.html">schema.h</a>></code></p>
<div class="dynheader">
类 rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator > 继承关系图:</div>
<div class="dyncontent">
<div class="center">
<img src="classrapidjson_1_1_generic_schema_validator.png" usemap="#rapidjson::GenericSchemaValidator_3C_20SchemaDocumentType_2C_20OutputHandler_2C_20StateAllocator_20_3E_map" alt=""/>
<map id="rapidjson::GenericSchemaValidator_3C_20SchemaDocumentType_2C_20OutputHandler_2C_20StateAllocator_20_3E_map" name="rapidjson::GenericSchemaValidator_3C_20SchemaDocumentType_2C_20OutputHandler_2C_20StateAllocator_20_3E_map">
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a0619c9faf3014ef141d1c6d05ae04ddc"><td class="memItemLeft" align="right" valign="top"><a id="a0619c9faf3014ef141d1c6d05ae04ddc"></a>
typedef SchemaDocumentType::SchemaType </td><td class="memItemRight" valign="bottom"><b>SchemaType</b></td></tr>
<tr class="separator:a0619c9faf3014ef141d1c6d05ae04ddc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aace9622f8ebac1c386081f6d1dcd774e"><td class="memItemLeft" align="right" valign="top"><a id="aace9622f8ebac1c386081f6d1dcd774e"></a>
typedef SchemaDocumentType::PointerType </td><td class="memItemRight" valign="bottom"><b>PointerType</b></td></tr>
<tr class="separator:aace9622f8ebac1c386081f6d1dcd774e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abaea0f74722261f6dde0db65594efdfe"><td class="memItemLeft" align="right" valign="top"><a id="abaea0f74722261f6dde0db65594efdfe"></a>
typedef SchemaType::EncodingType </td><td class="memItemRight" valign="bottom"><b>EncodingType</b></td></tr>
<tr class="separator:abaea0f74722261f6dde0db65594efdfe"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab5b7093443e29cf66eb7cf47f3d8583d"><td class="memItemLeft" align="right" valign="top"><a id="ab5b7093443e29cf66eb7cf47f3d8583d"></a>
typedef EncodingType::Ch </td><td class="memItemRight" valign="bottom"><b>Ch</b></td></tr>
<tr class="separator:ab5b7093443e29cf66eb7cf47f3d8583d"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:acc07bd08b00195d84bb5b83f59c593d3"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classrapidjson_1_1_generic_schema_validator.html#acc07bd08b00195d84bb5b83f59c593d3">GenericSchemaValidator</a> (const SchemaDocumentType &schemaDocument, StateAllocator *allocator=0, size_t schemaStackCapacity=kDefaultSchemaStackCapacity, size_t documentStackCapacity=kDefaultDocumentStackCapacity)</td></tr>
<tr class="memdesc:acc07bd08b00195d84bb5b83f59c593d3"><td class="mdescLeft"> </td><td class="mdescRight">Constructor without output handler. <a href="#acc07bd08b00195d84bb5b83f59c593d3">更多...</a><br /></td></tr>
<tr class="separator:acc07bd08b00195d84bb5b83f59c593d3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0e1d8f19381bd53d77cc00a9a6dcd067"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classrapidjson_1_1_generic_schema_validator.html#a0e1d8f19381bd53d77cc00a9a6dcd067">GenericSchemaValidator</a> (const SchemaDocumentType &schemaDocument, OutputHandler &outputHandler, StateAllocator *allocator=0, size_t schemaStackCapacity=kDefaultSchemaStackCapacity, size_t documentStackCapacity=kDefaultDocumentStackCapacity)</td></tr>
<tr class="memdesc:a0e1d8f19381bd53d77cc00a9a6dcd067"><td class="mdescLeft"> </td><td class="mdescRight">Constructor with output handler. <a href="#a0e1d8f19381bd53d77cc00a9a6dcd067">更多...</a><br /></td></tr>
<tr class="separator:a0e1d8f19381bd53d77cc00a9a6dcd067"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad9f00d71bf62b8983cf2514c43fb1572"><td class="memItemLeft" align="right" valign="top"><a id="ad9f00d71bf62b8983cf2514c43fb1572"></a>
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classrapidjson_1_1_generic_schema_validator.html#ad9f00d71bf62b8983cf2514c43fb1572">~GenericSchemaValidator</a> ()</td></tr>
<tr class="memdesc:ad9f00d71bf62b8983cf2514c43fb1572"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:ad9f00d71bf62b8983cf2514c43fb1572"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afe6cd0d9088a1d4cf8100c0efc9f76fc"><td class="memItemLeft" align="right" valign="top"><a id="afe6cd0d9088a1d4cf8100c0efc9f76fc"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classrapidjson_1_1_generic_schema_validator.html#afe6cd0d9088a1d4cf8100c0efc9f76fc">Reset</a> ()</td></tr>
<tr class="memdesc:afe6cd0d9088a1d4cf8100c0efc9f76fc"><td class="mdescLeft"> </td><td class="mdescRight">Reset the internal states. <br /></td></tr>
<tr class="separator:afe6cd0d9088a1d4cf8100c0efc9f76fc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad32a9ad31dbb588edaaf038ab053275b"><td class="memItemLeft" align="right" valign="top"><a id="ad32a9ad31dbb588edaaf038ab053275b"></a>
virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classrapidjson_1_1_generic_schema_validator.html#ad32a9ad31dbb588edaaf038ab053275b">IsValid</a> () const</td></tr>
<tr class="memdesc:ad32a9ad31dbb588edaaf038ab053275b"><td class="mdescLeft"> </td><td class="mdescRight">Checks whether the current state is valid. <br /></td></tr>
<tr class="separator:ad32a9ad31dbb588edaaf038ab053275b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3238efb9d9144c2d6577362d8dc5f61b"><td class="memItemLeft" align="right" valign="top"><a id="a3238efb9d9144c2d6577362d8dc5f61b"></a>
PointerType </td><td class="memItemRight" valign="bottom"><a class="el" href="classrapidjson_1_1_generic_schema_validator.html#a3238efb9d9144c2d6577362d8dc5f61b">GetInvalidSchemaPointer</a> () const</td></tr>
<tr class="memdesc:a3238efb9d9144c2d6577362d8dc5f61b"><td class="mdescLeft"> </td><td class="mdescRight">Gets the JSON pointer pointed to the invalid schema. <br /></td></tr>
<tr class="separator:a3238efb9d9144c2d6577362d8dc5f61b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a03bcd5497a574cffbd066d0aec2b5585"><td class="memItemLeft" align="right" valign="top"><a id="a03bcd5497a574cffbd066d0aec2b5585"></a>
const Ch * </td><td class="memItemRight" valign="bottom"><a class="el" href="classrapidjson_1_1_generic_schema_validator.html#a03bcd5497a574cffbd066d0aec2b5585">GetInvalidSchemaKeyword</a> () const</td></tr>
<tr class="memdesc:a03bcd5497a574cffbd066d0aec2b5585"><td class="mdescLeft"> </td><td class="mdescRight">Gets the keyword of invalid schema. <br /></td></tr>
<tr class="separator:a03bcd5497a574cffbd066d0aec2b5585"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a60dfb4a89593c8d3ca4c89a6202feb52"><td class="memItemLeft" align="right" valign="top"><a id="a60dfb4a89593c8d3ca4c89a6202feb52"></a>
PointerType </td><td class="memItemRight" valign="bottom"><a class="el" href="classrapidjson_1_1_generic_schema_validator.html#a60dfb4a89593c8d3ca4c89a6202feb52">GetInvalidDocumentPointer</a> () const</td></tr>
<tr class="memdesc:a60dfb4a89593c8d3ca4c89a6202feb52"><td class="mdescLeft"> </td><td class="mdescRight">Gets the JSON pointer pointed to the invalid value. <br /></td></tr>
<tr class="separator:a60dfb4a89593c8d3ca4c89a6202feb52"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aefcbbbdba183ef7b13347aa3b4f352bd"><td class="memItemLeft" align="right" valign="top"><a id="aefcbbbdba183ef7b13347aa3b4f352bd"></a>
bool </td><td class="memItemRight" valign="bottom"><b>Null</b> ()</td></tr>
<tr class="separator:aefcbbbdba183ef7b13347aa3b4f352bd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac2247fb21e5dd87c9590f45fb089d3d1"><td class="memItemLeft" align="right" valign="top"><a id="ac2247fb21e5dd87c9590f45fb089d3d1"></a>
bool </td><td class="memItemRight" valign="bottom"><b>Bool</b> (bool b)</td></tr>
<tr class="separator:ac2247fb21e5dd87c9590f45fb089d3d1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a98561df249a90a257fb8a57ffcf1b581"><td class="memItemLeft" align="right" valign="top"><a id="a98561df249a90a257fb8a57ffcf1b581"></a>
bool </td><td class="memItemRight" valign="bottom"><b>Int</b> (int i)</td></tr>
<tr class="separator:a98561df249a90a257fb8a57ffcf1b581"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3a628f6b520c40707329c60b06847a18"><td class="memItemLeft" align="right" valign="top"><a id="a3a628f6b520c40707329c60b06847a18"></a>
bool </td><td class="memItemRight" valign="bottom"><b>Uint</b> (unsigned u)</td></tr>
<tr class="separator:a3a628f6b520c40707329c60b06847a18"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1be5d3b3f73c05d84a76cad3a9948a35"><td class="memItemLeft" align="right" valign="top"><a id="a1be5d3b3f73c05d84a76cad3a9948a35"></a>
bool </td><td class="memItemRight" valign="bottom"><b>Int64</b> (int64_t i)</td></tr>
<tr class="separator:a1be5d3b3f73c05d84a76cad3a9948a35"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2bee26a73c644a72c2baa2970b35c7ac"><td class="memItemLeft" align="right" valign="top"><a id="a2bee26a73c644a72c2baa2970b35c7ac"></a>
bool </td><td class="memItemRight" valign="bottom"><b>Uint64</b> (uint64_t u)</td></tr>
<tr class="separator:a2bee26a73c644a72c2baa2970b35c7ac"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9d1110efc1a7f8c18cd88020310b35bf"><td class="memItemLeft" align="right" valign="top"><a id="a9d1110efc1a7f8c18cd88020310b35bf"></a>
bool </td><td class="memItemRight" valign="bottom"><b>Double</b> (double d)</td></tr>
<tr class="separator:a9d1110efc1a7f8c18cd88020310b35bf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a58fb3589123904533021926530a206ce"><td class="memItemLeft" align="right" valign="top"><a id="a58fb3589123904533021926530a206ce"></a>
bool </td><td class="memItemRight" valign="bottom"><b>RawNumber</b> (const Ch *str, <a class="el" href="namespacerapidjson.html#a44eb33eaa523e36d466b1ced64b85c84">SizeType</a> length, bool copy)</td></tr>
<tr class="separator:a58fb3589123904533021926530a206ce"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a92a6d2ba413cfd05cb2122fc119efd46"><td class="memItemLeft" align="right" valign="top"><a id="a92a6d2ba413cfd05cb2122fc119efd46"></a>
bool </td><td class="memItemRight" valign="bottom"><b>String</b> (const Ch *str, <a class="el" href="namespacerapidjson.html#a44eb33eaa523e36d466b1ced64b85c84">SizeType</a> length, bool copy)</td></tr>
<tr class="separator:a92a6d2ba413cfd05cb2122fc119efd46"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a311489ae16471b5e111a62090a8675e0"><td class="memItemLeft" align="right" valign="top"><a id="a311489ae16471b5e111a62090a8675e0"></a>
bool </td><td class="memItemRight" valign="bottom"><b>StartObject</b> ()</td></tr>
<tr class="separator:a311489ae16471b5e111a62090a8675e0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af2ad6b4fb9837b90643da7cdd62e413b"><td class="memItemLeft" align="right" valign="top"><a id="af2ad6b4fb9837b90643da7cdd62e413b"></a>
bool </td><td class="memItemRight" valign="bottom"><b>Key</b> (const Ch *str, <a class="el" href="namespacerapidjson.html#a44eb33eaa523e36d466b1ced64b85c84">SizeType</a> len, bool copy)</td></tr>
<tr class="separator:af2ad6b4fb9837b90643da7cdd62e413b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae3d4ceb7937a1a6ac3702c29e9243128"><td class="memItemLeft" align="right" valign="top"><a id="ae3d4ceb7937a1a6ac3702c29e9243128"></a>
bool </td><td class="memItemRight" valign="bottom"><b>EndObject</b> (<a class="el" href="namespacerapidjson.html#a44eb33eaa523e36d466b1ced64b85c84">SizeType</a> memberCount)</td></tr>
<tr class="separator:ae3d4ceb7937a1a6ac3702c29e9243128"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a615b93b84c732e405f3847c7d789acf8"><td class="memItemLeft" align="right" valign="top"><a id="a615b93b84c732e405f3847c7d789acf8"></a>
bool </td><td class="memItemRight" valign="bottom"><b>StartArray</b> ()</td></tr>
<tr class="separator:a615b93b84c732e405f3847c7d789acf8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a98a80c23569edb89af722c124a136b49"><td class="memItemLeft" align="right" valign="top"><a id="a98a80c23569edb89af722c124a136b49"></a>
bool </td><td class="memItemRight" valign="bottom"><b>EndArray</b> (<a class="el" href="namespacerapidjson.html#a44eb33eaa523e36d466b1ced64b85c84">SizeType</a> elementCount)</td></tr>
<tr class="separator:a98a80c23569edb89af722c124a136b49"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae5b23d65482201d75072b958308d9d7b"><td class="memItemLeft" align="right" valign="top"><a id="ae5b23d65482201d75072b958308d9d7b"></a>
virtual ISchemaValidator * </td><td class="memItemRight" valign="bottom"><b>CreateSchemaValidator</b> (const SchemaType &root)</td></tr>
<tr class="separator:ae5b23d65482201d75072b958308d9d7b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aec8a2e41bc8185df35ebf9ebedb52355"><td class="memItemLeft" align="right" valign="top"><a id="aec8a2e41bc8185df35ebf9ebedb52355"></a>
virtual void </td><td class="memItemRight" valign="bottom"><b>DestroySchemaValidator</b> (ISchemaValidator *validator)</td></tr>
<tr class="separator:aec8a2e41bc8185df35ebf9ebedb52355"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aec2362f03fb6edc575d9bb50d4f99c94"><td class="memItemLeft" align="right" valign="top"><a id="aec2362f03fb6edc575d9bb50d4f99c94"></a>
virtual void * </td><td class="memItemRight" valign="bottom"><b>CreateHasher</b> ()</td></tr>
<tr class="separator:aec2362f03fb6edc575d9bb50d4f99c94"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8d24483082f9b4b2b3f35bff78c66529"><td class="memItemLeft" align="right" valign="top"><a id="a8d24483082f9b4b2b3f35bff78c66529"></a>
virtual uint64_t </td><td class="memItemRight" valign="bottom"><b>GetHashCode</b> (void *hasher)</td></tr>
<tr class="separator:a8d24483082f9b4b2b3f35bff78c66529"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af7620c515a7ea2f75ff300cfbf9916cf"><td class="memItemLeft" align="right" valign="top"><a id="af7620c515a7ea2f75ff300cfbf9916cf"></a>
virtual void </td><td class="memItemRight" valign="bottom"><b>DestroryHasher</b> (void *hasher)</td></tr>
<tr class="separator:af7620c515a7ea2f75ff300cfbf9916cf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a73d58da18b6e77665daaa977852f205c"><td class="memItemLeft" align="right" valign="top"><a id="a73d58da18b6e77665daaa977852f205c"></a>
virtual void * </td><td class="memItemRight" valign="bottom"><b>MallocState</b> (size_t size)</td></tr>
<tr class="separator:a73d58da18b6e77665daaa977852f205c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acd4ac0e7042c9ab63e5b9e443dbc0d14"><td class="memItemLeft" align="right" valign="top"><a id="acd4ac0e7042c9ab63e5b9e443dbc0d14"></a>
virtual void </td><td class="memItemRight" valign="bottom"><b>FreeState</b> (void *p)</td></tr>
<tr class="separator:acd4ac0e7042c9ab63e5b9e443dbc0d14"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator><br />
class rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator ></h3>
<p>JSON Schema Validator. </p>
<p>A SAX style JSON schema validator. It uses a <code><a class="el" href="classrapidjson_1_1_generic_schema_document.html" title="JSON schema document. ">GenericSchemaDocument</a></code> to validate SAX events. It delegates the incoming SAX events to an output handler. The default output handler does nothing. It can be reused multiple times by calling <code><a class="el" href="classrapidjson_1_1_generic_schema_validator.html#afe6cd0d9088a1d4cf8100c0efc9f76fc" title="Reset the internal states. ">Reset()</a></code>.</p>
<dl class="tparams"><dt>模板参数</dt><dd>
<table class="tparams">
<tr><td class="paramname">SchemaDocumentType</td><td>Type of schema document. </td></tr>
<tr><td class="paramname">OutputHandler</td><td>Type of output handler. Default handler does nothing. </td></tr>
<tr><td class="paramname">StateAllocator</td><td><a class="el" href="classrapidjson_1_1_allocator.html" title="Concept for allocating, resizing and freeing memory block. ">Allocator</a> for storing the internal validation states. </td></tr>
</table>
</dd>
</dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="acc07bd08b00195d84bb5b83f59c593d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc07bd08b00195d84bb5b83f59c593d3">◆ </a></span>GenericSchemaValidator() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classrapidjson_1_1_generic_schema_validator.html">rapidjson::GenericSchemaValidator</a>< SchemaDocumentType, OutputHandler, StateAllocator >::<a class="el" href="classrapidjson_1_1_generic_schema_validator.html">GenericSchemaValidator</a> </td>
<td>(</td>
<td class="paramtype">const SchemaDocumentType & </td>
<td class="paramname"><em>schemaDocument</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">StateAllocator * </td>
<td class="paramname"><em>allocator</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>schemaStackCapacity</em> = <code>kDefaultSchemaStackCapacity</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>documentStackCapacity</em> = <code>kDefaultDocumentStackCapacity</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor without output handler. </p>
<dl class="params"><dt>参数</dt><dd>
<table class="params">
<tr><td class="paramname">schemaDocument</td><td>The schema document to conform to. </td></tr>
<tr><td class="paramname">allocator</td><td>Optional allocator for storing internal validation states. </td></tr>
<tr><td class="paramname">schemaStackCapacity</td><td>Optional initial capacity of schema path stack. </td></tr>
<tr><td class="paramname">documentStackCapacity</td><td>Optional initial capacity of document path stack. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a0e1d8f19381bd53d77cc00a9a6dcd067"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e1d8f19381bd53d77cc00a9a6dcd067">◆ </a></span>GenericSchemaValidator() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classrapidjson_1_1_generic_schema_validator.html">rapidjson::GenericSchemaValidator</a>< SchemaDocumentType, OutputHandler, StateAllocator >::<a class="el" href="classrapidjson_1_1_generic_schema_validator.html">GenericSchemaValidator</a> </td>
<td>(</td>
<td class="paramtype">const SchemaDocumentType & </td>
<td class="paramname"><em>schemaDocument</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">OutputHandler & </td>
<td class="paramname"><em>outputHandler</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">StateAllocator * </td>
<td class="paramname"><em>allocator</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>schemaStackCapacity</em> = <code>kDefaultSchemaStackCapacity</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>documentStackCapacity</em> = <code>kDefaultDocumentStackCapacity</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor with output handler. </p>
<dl class="params"><dt>参数</dt><dd>
<table class="params">
<tr><td class="paramname">schemaDocument</td><td>The schema document to conform to. </td></tr>
<tr><td class="paramname">allocator</td><td>Optional allocator for storing internal validation states. </td></tr>
<tr><td class="paramname">schemaStackCapacity</td><td>Optional initial capacity of schema path stack. </td></tr>
<tr><td class="paramname">documentStackCapacity</td><td>Optional initial capacity of document path stack. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/rapidjson/<a class="el" href="fwd_8h_source.html">fwd.h</a></li>
<li>include/rapidjson/<a class="el" href="schema_8h_source.html">schema.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.7-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespacerapidjson.html">rapidjson</a></li><li class="navelem"><a class="el" href="classrapidjson_1_1_generic_schema_validator.html">GenericSchemaValidator</a></li>
</ul>
</div>
</body>
</html>
|