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
|
<!-- 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::GenericArray< Const, ValueT > 模板类 参考</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_array.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="#friends">友元</a> |
<a href="classrapidjson_1_1_generic_array-members.html">所有成员列表</a> </div>
<div class="headertitle">
<div class="title">rapidjson::GenericArray< Const, ValueT > 模板类 参考</div> </div>
</div><!--header-->
<div class="contents">
<p>Helper class for accessing Value of array type.
<a href="classrapidjson_1_1_generic_array.html#details">更多...</a></p>
<p><code>#include <<a class="el" href="document_8h_source.html">document.h</a>></code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a6f2b607cc4e648e5b250dea147843476"><td class="memItemLeft" align="right" valign="top"><a id="a6f2b607cc4e648e5b250dea147843476"></a>
typedef <a class="el" href="classrapidjson_1_1_generic_array.html">GenericArray</a>< true, ValueT > </td><td class="memItemRight" valign="bottom"><b>ConstArray</b></td></tr>
<tr class="separator:a6f2b607cc4e648e5b250dea147843476"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae82a8e56892743f606ae07da8f9a2f5a"><td class="memItemLeft" align="right" valign="top"><a id="ae82a8e56892743f606ae07da8f9a2f5a"></a>
typedef <a class="el" href="classrapidjson_1_1_generic_array.html">GenericArray</a>< false, ValueT > </td><td class="memItemRight" valign="bottom"><b>Array</b></td></tr>
<tr class="separator:ae82a8e56892743f606ae07da8f9a2f5a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a417eefa7bd2a3d357e947e64044f0bd9"><td class="memItemLeft" align="right" valign="top"><a id="a417eefa7bd2a3d357e947e64044f0bd9"></a>
typedef ValueT </td><td class="memItemRight" valign="bottom"><b>PlainType</b></td></tr>
<tr class="separator:a417eefa7bd2a3d357e947e64044f0bd9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aebd828a2f020262b41af908fbb28a571"><td class="memItemLeft" align="right" valign="top"><a id="aebd828a2f020262b41af908fbb28a571"></a>
typedef internal::MaybeAddConst< Const, PlainType >::<a class="el" href="namespacerapidjson.html#ae79a4751c1c460ff0de5ecc07874f3e4">Type</a> </td><td class="memItemRight" valign="bottom"><b>ValueType</b></td></tr>
<tr class="separator:aebd828a2f020262b41af908fbb28a571"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae94140e6dbab05cd3918d3e75819dc0a"><td class="memItemLeft" align="right" valign="top"><a id="ae94140e6dbab05cd3918d3e75819dc0a"></a>
typedef ValueType * </td><td class="memItemRight" valign="bottom"><b>ValueIterator</b></td></tr>
<tr class="separator:ae94140e6dbab05cd3918d3e75819dc0a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0308428814ba3ee5094114e2ccfa2572"><td class="memItemLeft" align="right" valign="top"><a id="a0308428814ba3ee5094114e2ccfa2572"></a>
typedef const ValueT * </td><td class="memItemRight" valign="bottom"><b>ConstValueIterator</b></td></tr>
<tr class="separator:a0308428814ba3ee5094114e2ccfa2572"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a82298d507b2b15c9d909c25a32f5afeb"><td class="memItemLeft" align="right" valign="top"><a id="a82298d507b2b15c9d909c25a32f5afeb"></a>
typedef ValueType::AllocatorType </td><td class="memItemRight" valign="bottom"><b>AllocatorType</b></td></tr>
<tr class="separator:a82298d507b2b15c9d909c25a32f5afeb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad52689025256c94097a0e7bb1c70620e"><td class="memItemLeft" align="right" valign="top"><a id="ad52689025256c94097a0e7bb1c70620e"></a>
typedef ValueType::StringRefType </td><td class="memItemRight" valign="bottom"><b>StringRefType</b></td></tr>
<tr class="separator:ad52689025256c94097a0e7bb1c70620e"><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:ae59cd71ac1e26cc66ae0269991f82f26"><td class="memItemLeft" align="right" valign="top"><a id="ae59cd71ac1e26cc66ae0269991f82f26"></a>
 </td><td class="memItemRight" valign="bottom"><b>GenericArray</b> (const <a class="el" href="classrapidjson_1_1_generic_array.html">GenericArray</a> &rhs)</td></tr>
<tr class="separator:ae59cd71ac1e26cc66ae0269991f82f26"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab9c9bffca8056d6b20b9f92334d35798"><td class="memItemLeft" align="right" valign="top"><a id="ab9c9bffca8056d6b20b9f92334d35798"></a>
<a class="el" href="classrapidjson_1_1_generic_array.html">GenericArray</a> & </td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classrapidjson_1_1_generic_array.html">GenericArray</a> &rhs)</td></tr>
<tr class="separator:ab9c9bffca8056d6b20b9f92334d35798"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad0473410a03268bbc25cb6d95ecc9925"><td class="memItemLeft" align="right" valign="top"><a id="ad0473410a03268bbc25cb6d95ecc9925"></a>
<a class="el" href="namespacerapidjson.html#a44eb33eaa523e36d466b1ced64b85c84">SizeType</a> </td><td class="memItemRight" valign="bottom"><b>Size</b> () const</td></tr>
<tr class="separator:ad0473410a03268bbc25cb6d95ecc9925"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a78052c2a7bb54ee4ea7579df5eab480c"><td class="memItemLeft" align="right" valign="top"><a id="a78052c2a7bb54ee4ea7579df5eab480c"></a>
<a class="el" href="namespacerapidjson.html#a44eb33eaa523e36d466b1ced64b85c84">SizeType</a> </td><td class="memItemRight" valign="bottom"><b>Capacity</b> () const</td></tr>
<tr class="separator:a78052c2a7bb54ee4ea7579df5eab480c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaa816f9b2ab65c842c343e5dbe99d876"><td class="memItemLeft" align="right" valign="top"><a id="aaa816f9b2ab65c842c343e5dbe99d876"></a>
bool </td><td class="memItemRight" valign="bottom"><b>Empty</b> () const</td></tr>
<tr class="separator:aaa816f9b2ab65c842c343e5dbe99d876"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1b671cc963732398d9234cf01aa339ab"><td class="memItemLeft" align="right" valign="top"><a id="a1b671cc963732398d9234cf01aa339ab"></a>
void </td><td class="memItemRight" valign="bottom"><b>Clear</b> () const</td></tr>
<tr class="separator:a1b671cc963732398d9234cf01aa339ab"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae3455ca0429fa330cb981c78fab473c0"><td class="memItemLeft" align="right" valign="top"><a id="ae3455ca0429fa330cb981c78fab473c0"></a>
ValueType & </td><td class="memItemRight" valign="bottom"><b>operator[]</b> (<a class="el" href="namespacerapidjson.html#a44eb33eaa523e36d466b1ced64b85c84">SizeType</a> index) const</td></tr>
<tr class="separator:ae3455ca0429fa330cb981c78fab473c0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a32299e51f24648e04757de26d952ffe7"><td class="memItemLeft" align="right" valign="top"><a id="a32299e51f24648e04757de26d952ffe7"></a>
ValueIterator </td><td class="memItemRight" valign="bottom"><b>Begin</b> () const</td></tr>
<tr class="separator:a32299e51f24648e04757de26d952ffe7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a27e2a9f13adcca6e0f191495cdce9689"><td class="memItemLeft" align="right" valign="top"><a id="a27e2a9f13adcca6e0f191495cdce9689"></a>
ValueIterator </td><td class="memItemRight" valign="bottom"><b>End</b> () const</td></tr>
<tr class="separator:a27e2a9f13adcca6e0f191495cdce9689"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad1110e43990424e416555541731f229f"><td class="memItemLeft" align="right" valign="top"><a id="ad1110e43990424e416555541731f229f"></a>
<a class="el" href="classrapidjson_1_1_generic_array.html">GenericArray</a> </td><td class="memItemRight" valign="bottom"><b>Reserve</b> (<a class="el" href="namespacerapidjson.html#a44eb33eaa523e36d466b1ced64b85c84">SizeType</a> newCapacity, AllocatorType &allocator) const</td></tr>
<tr class="separator:ad1110e43990424e416555541731f229f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0bcd130448a9d68303523df7b22dc452"><td class="memItemLeft" align="right" valign="top"><a id="a0bcd130448a9d68303523df7b22dc452"></a>
<a class="el" href="classrapidjson_1_1_generic_array.html">GenericArray</a> </td><td class="memItemRight" valign="bottom"><b>PushBack</b> (ValueType &value, AllocatorType &allocator) const</td></tr>
<tr class="separator:a0bcd130448a9d68303523df7b22dc452"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a673eda4c52685461b5bbeccf2f2b5c88"><td class="memItemLeft" align="right" valign="top"><a id="a673eda4c52685461b5bbeccf2f2b5c88"></a>
<a class="el" href="classrapidjson_1_1_generic_array.html">GenericArray</a> </td><td class="memItemRight" valign="bottom"><b>PushBack</b> (StringRefType value, AllocatorType &allocator) const</td></tr>
<tr class="separator:a673eda4c52685461b5bbeccf2f2b5c88"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9d3851894eaea693572b934541ee3563"><td class="memTemplParams" colspan="2"><a id="a9d3851894eaea693572b934541ee3563"></a>
template<typename T > </td></tr>
<tr class="memitem:a9d3851894eaea693572b934541ee3563"><td class="memTemplItemLeft" align="right" valign="top">const <a class="el" href="classrapidjson_1_1_generic_array.html">GenericArray</a> & </td><td class="memTemplItemRight" valign="bottom"><b>PushBack</b> (T value, AllocatorType &allocator) const</td></tr>
<tr class="separator:a9d3851894eaea693572b934541ee3563"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a50ccee2eea89c21fcd29363506e5ed3f"><td class="memItemLeft" align="right" valign="top"><a id="a50ccee2eea89c21fcd29363506e5ed3f"></a>
<a class="el" href="classrapidjson_1_1_generic_array.html">GenericArray</a> </td><td class="memItemRight" valign="bottom"><b>PopBack</b> () const</td></tr>
<tr class="separator:a50ccee2eea89c21fcd29363506e5ed3f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a13d2a18801a80add6e1bd9ad167822a5"><td class="memItemLeft" align="right" valign="top"><a id="a13d2a18801a80add6e1bd9ad167822a5"></a>
ValueIterator </td><td class="memItemRight" valign="bottom"><b>Erase</b> (ConstValueIterator pos) const</td></tr>
<tr class="separator:a13d2a18801a80add6e1bd9ad167822a5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af8fb2a13a98c62a284de0005850d624c"><td class="memItemLeft" align="right" valign="top"><a id="af8fb2a13a98c62a284de0005850d624c"></a>
ValueIterator </td><td class="memItemRight" valign="bottom"><b>Erase</b> (ConstValueIterator first, ConstValueIterator last) const</td></tr>
<tr class="separator:af8fb2a13a98c62a284de0005850d624c"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:a899449e1a645b5e377af059fb61113d8"><td class="memTemplParams" colspan="2"><a id="a899449e1a645b5e377af059fb61113d8"></a>
template<typename , typename > </td></tr>
<tr class="memitem:a899449e1a645b5e377af059fb61113d8"><td class="memTemplItemLeft" align="right" valign="top">class </td><td class="memTemplItemRight" valign="bottom"><b>GenericValue</b></td></tr>
<tr class="separator:a899449e1a645b5e377af059fb61113d8"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template<bool Const, typename ValueT><br />
class rapidjson::GenericArray< Const, ValueT ></h3>
<p>Helper class for accessing Value of array type. </p>
<p>Instance of this helper class is obtained by <code>GenericValue::GetArray()</code>. In addition to all APIs for array type, it provides range-based for loop if <code>RAPIDJSON_HAS_CXX11_RANGE_FOR=1</code>. </p>
</div><hr/>该类的文档由以下文件生成:<ul>
<li>include/rapidjson/<a class="el" href="document_8h_source.html">document.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_array.html">GenericArray</a></li>
</ul>
</div>
</body>
</html>
|