blob: 9a2fffe35351462233810b5edfd6c2a11e9500d5 [file] [log] [blame]
<!-- 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.16"/>
<title>RapidJSON: rapidjson::StdAllocator&lt; T, BaseAllocator &gt; Class Template Reference</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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function() { init_search(); });
/* @license-end */
</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="Search" 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 -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classrapidjson_1_1_std_allocator.html','');});
/* @license-end */
</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="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classrapidjson_1_1_std_allocator-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">rapidjson::StdAllocator&lt; T, BaseAllocator &gt; Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for rapidjson::StdAllocator&lt; T, BaseAllocator &gt;:</div>
<div class="dyncontent">
<div class="center">
<img src="classrapidjson_1_1_std_allocator.png" alt=""/>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrapidjson_1_1_std_allocator_1_1rebind.html">rebind</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ac0d58eb6c3ba02487d1599e8b56c8fb8"><td class="memItemLeft" align="right" valign="top"><a id="ac0d58eb6c3ba02487d1599e8b56c8fb8"></a>
typedef BaseAllocator&#160;</td><td class="memItemRight" valign="bottom"><b>BaseAllocatorType</b></td></tr>
<tr class="separator:ac0d58eb6c3ba02487d1599e8b56c8fb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a673c278fa065ad812800c4b27cfa4397"><td class="memItemLeft" align="right" valign="top"><a id="a673c278fa065ad812800c4b27cfa4397"></a>
typedef traits_type::size_type&#160;</td><td class="memItemRight" valign="bottom"><b>size_type</b></td></tr>
<tr class="separator:a673c278fa065ad812800c4b27cfa4397"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14d678da9f1113b86b591a092fa48cb8"><td class="memItemLeft" align="right" valign="top"><a id="a14d678da9f1113b86b591a092fa48cb8"></a>
typedef traits_type::difference_type&#160;</td><td class="memItemRight" valign="bottom"><b>difference_type</b></td></tr>
<tr class="separator:a14d678da9f1113b86b591a092fa48cb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae02c7ff98201e754c4fb54918083654f"><td class="memItemLeft" align="right" valign="top"><a id="ae02c7ff98201e754c4fb54918083654f"></a>
typedef traits_type::value_type&#160;</td><td class="memItemRight" valign="bottom"><b>value_type</b></td></tr>
<tr class="separator:ae02c7ff98201e754c4fb54918083654f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fee068854923160be9c833ccb62449e"><td class="memItemLeft" align="right" valign="top"><a id="a4fee068854923160be9c833ccb62449e"></a>
typedef traits_type::pointer&#160;</td><td class="memItemRight" valign="bottom"><b>pointer</b></td></tr>
<tr class="separator:a4fee068854923160be9c833ccb62449e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8e11da47491eb3e8cce9e35e58e864c"><td class="memItemLeft" align="right" valign="top"><a id="ac8e11da47491eb3e8cce9e35e58e864c"></a>
typedef traits_type::const_pointer&#160;</td><td class="memItemRight" valign="bottom"><b>const_pointer</b></td></tr>
<tr class="separator:ac8e11da47491eb3e8cce9e35e58e864c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a680660c9753a2dbefd5873d2707ba296"><td class="memItemLeft" align="right" valign="top"><a id="a680660c9753a2dbefd5873d2707ba296"></a>
typedef allocator_type::reference&#160;</td><td class="memItemRight" valign="bottom"><b>reference</b></td></tr>
<tr class="separator:a680660c9753a2dbefd5873d2707ba296"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8deddd0e00dd0a6b728b41379c5cd562"><td class="memItemLeft" align="right" valign="top"><a id="a8deddd0e00dd0a6b728b41379c5cd562"></a>
typedef allocator_type::const_reference&#160;</td><td class="memItemRight" valign="bottom"><b>const_reference</b></td></tr>
<tr class="separator:a8deddd0e00dd0a6b728b41379c5cd562"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:adf8d15b39425f1b3b20ab3459d6e924f"><td class="memItemLeft" align="right" valign="top"><a id="adf8d15b39425f1b3b20ab3459d6e924f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>StdAllocator</b> (const <a class="el" href="classrapidjson_1_1_std_allocator.html">StdAllocator</a> &amp;rhs) RAPIDJSON_NOEXCEPT</td></tr>
<tr class="separator:adf8d15b39425f1b3b20ab3459d6e924f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57601ae01890485d2fff71348c761921"><td class="memTemplParams" colspan="2"><a id="a57601ae01890485d2fff71348c761921"></a>
template&lt;typename U &gt; </td></tr>
<tr class="memitem:a57601ae01890485d2fff71348c761921"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><b>StdAllocator</b> (const <a class="el" href="classrapidjson_1_1_std_allocator.html">StdAllocator</a>&lt; U, BaseAllocator &gt; &amp;rhs) RAPIDJSON_NOEXCEPT</td></tr>
<tr class="separator:a57601ae01890485d2fff71348c761921"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2448e278b2e1a9b5dbbd8f7a7004eb90"><td class="memItemLeft" align="right" valign="top"><a id="a2448e278b2e1a9b5dbbd8f7a7004eb90"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>StdAllocator</b> (const BaseAllocator &amp;allocator) RAPIDJSON_NOEXCEPT</td></tr>
<tr class="separator:a2448e278b2e1a9b5dbbd8f7a7004eb90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8815c378a89820d42b366976f2485eb2"><td class="memItemLeft" align="right" valign="top"><a id="a8815c378a89820d42b366976f2485eb2"></a>
pointer&#160;</td><td class="memItemRight" valign="bottom"><b>address</b> (reference r) const RAPIDJSON_NOEXCEPT</td></tr>
<tr class="separator:a8815c378a89820d42b366976f2485eb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf2cc5a84f1f2f176db91c0160b326b2"><td class="memItemLeft" align="right" valign="top"><a id="acf2cc5a84f1f2f176db91c0160b326b2"></a>
const_pointer&#160;</td><td class="memItemRight" valign="bottom"><b>address</b> (const_reference r) const RAPIDJSON_NOEXCEPT</td></tr>
<tr class="separator:acf2cc5a84f1f2f176db91c0160b326b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe8814da25a22965ef7c1e447a46b97c"><td class="memItemLeft" align="right" valign="top"><a id="abe8814da25a22965ef7c1e447a46b97c"></a>
size_type&#160;</td><td class="memItemRight" valign="bottom"><b>max_size</b> () const RAPIDJSON_NOEXCEPT</td></tr>
<tr class="separator:abe8814da25a22965ef7c1e447a46b97c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1883c0e28ad5dc92d7084cbe0b185817"><td class="memItemLeft" align="right" valign="top"><a id="a1883c0e28ad5dc92d7084cbe0b185817"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>construct</b> (pointer p, const_reference r)</td></tr>
<tr class="separator:a1883c0e28ad5dc92d7084cbe0b185817"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9efde196d7d77b54d80978d831e4364d"><td class="memItemLeft" align="right" valign="top"><a id="a9efde196d7d77b54d80978d831e4364d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>destroy</b> (pointer p)</td></tr>
<tr class="separator:a9efde196d7d77b54d80978d831e4364d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9c09b2aba2500e742bfa900c5aeb45d"><td class="memTemplParams" colspan="2"><a id="aa9c09b2aba2500e742bfa900c5aeb45d"></a>
template&lt;typename U &gt; </td></tr>
<tr class="memitem:aa9c09b2aba2500e742bfa900c5aeb45d"><td class="memTemplItemLeft" align="right" valign="top">U *&#160;</td><td class="memTemplItemRight" valign="bottom"><b>allocate</b> (size_type n=1, const void *=0)</td></tr>
<tr class="separator:aa9c09b2aba2500e742bfa900c5aeb45d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7be8561fed9214af6c9e862749fcbc57"><td class="memTemplParams" colspan="2"><a id="a7be8561fed9214af6c9e862749fcbc57"></a>
template&lt;typename U &gt; </td></tr>
<tr class="memitem:a7be8561fed9214af6c9e862749fcbc57"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><b>deallocate</b> (U *p, size_type n=1)</td></tr>
<tr class="separator:a7be8561fed9214af6c9e862749fcbc57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4af00a24adc6b51e219d99892b891167"><td class="memItemLeft" align="right" valign="top"><a id="a4af00a24adc6b51e219d99892b891167"></a>
pointer&#160;</td><td class="memItemRight" valign="bottom"><b>allocate</b> (size_type n=1, const void *=0)</td></tr>
<tr class="separator:a4af00a24adc6b51e219d99892b891167"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2047fe874b0fe10e051fb0a20950d03"><td class="memItemLeft" align="right" valign="top"><a id="aa2047fe874b0fe10e051fb0a20950d03"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>deallocate</b> (pointer p, size_type n=1)</td></tr>
<tr class="separator:aa2047fe874b0fe10e051fb0a20950d03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59098f7216b4cd4ad9a3322d769ce08b"><td class="memTemplParams" colspan="2"><a id="a59098f7216b4cd4ad9a3322d769ce08b"></a>
template&lt;typename U &gt; </td></tr>
<tr class="memitem:a59098f7216b4cd4ad9a3322d769ce08b"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="classrapidjson_1_1_std_allocator.html">StdAllocator</a>&lt; U, BaseAllocator &gt; &amp;rhs) const RAPIDJSON_NOEXCEPT</td></tr>
<tr class="separator:a59098f7216b4cd4ad9a3322d769ce08b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a05f42b7c60711696384c8897644228"><td class="memTemplParams" colspan="2"><a id="a1a05f42b7c60711696384c8897644228"></a>
template&lt;typename U &gt; </td></tr>
<tr class="memitem:a1a05f42b7c60711696384c8897644228"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="classrapidjson_1_1_std_allocator.html">StdAllocator</a>&lt; U, BaseAllocator &gt; &amp;rhs) const RAPIDJSON_NOEXCEPT</td></tr>
<tr class="separator:a1a05f42b7c60711696384c8897644228"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76e90ffecf295cc965e6aa1b9e839354"><td class="memItemLeft" align="right" valign="top"><a id="a76e90ffecf295cc965e6aa1b9e839354"></a>
void *&#160;</td><td class="memItemRight" valign="bottom"><b>Malloc</b> (size_t size)</td></tr>
<tr class="separator:a76e90ffecf295cc965e6aa1b9e839354"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a929639d7bcbf82480149c995c95b49"><td class="memItemLeft" align="right" valign="top"><a id="a9a929639d7bcbf82480149c995c95b49"></a>
void *&#160;</td><td class="memItemRight" valign="bottom"><b>Realloc</b> (void *originalPtr, size_t originalSize, size_t newSize)</td></tr>
<tr class="separator:a9a929639d7bcbf82480149c995c95b49"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a140d1c6576a5ec2b89c4b544a73bbd29"><td class="memItemLeft" align="right" valign="top"><a id="a140d1c6576a5ec2b89c4b544a73bbd29"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>Free</b> (void *ptr) RAPIDJSON_NOEXCEPT</td></tr>
<tr class="separator:a140d1c6576a5ec2b89c4b544a73bbd29"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a000e9708918f813fc151020c0a03c62c"><td class="memItemLeft" align="right" valign="top"><a id="a000e9708918f813fc151020c0a03c62c"></a>
static const bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrapidjson_1_1_std_allocator.html#a000e9708918f813fc151020c0a03c62c">kNeedFree</a> = BaseAllocator::kNeedFree</td></tr>
<tr class="memdesc:a000e9708918f813fc151020c0a03c62c"><td class="mdescLeft">&#160;</td><td class="mdescRight">rapidjson <a class="el" href="classrapidjson_1_1_allocator.html" title="Concept for allocating, resizing and freeing memory block.">Allocator</a> concept <br /></td></tr>
<tr class="separator:a000e9708918f813fc151020c0a03c62c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad348d692cc81c18d7c195a2c8fe2a9b2"><td class="memItemLeft" align="right" valign="top"><a id="ad348d692cc81c18d7c195a2c8fe2a9b2"></a>
static const bool&#160;</td><td class="memItemRight" valign="bottom"><b>kRefCounted</b> = internal::IsRefCounted&lt;BaseAllocator&gt;::<a class="el" href="namespacerapidjson.html#aa65fc9fb381b2cbc54f98673eadd6505">Value</a></td></tr>
<tr class="separator:ad348d692cc81c18d7c195a2c8fe2a9b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:afb3a6a655f835f6b9ec21fab41291287"><td class="memTemplParams" colspan="2"><a id="afb3a6a655f835f6b9ec21fab41291287"></a>
template&lt;typename , typename &gt; </td></tr>
<tr class="memitem:afb3a6a655f835f6b9ec21fab41291287"><td class="memTemplItemLeft" align="right" valign="top">class&#160;</td><td class="memTemplItemRight" valign="bottom"><b>StdAllocator</b></td></tr>
<tr class="separator:afb3a6a655f835f6b9ec21fab41291287"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/rapidjson/<a class="el" href="allocators_8h_source.html">allocators.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_std_allocator.html">StdAllocator</a></li>
</ul>
</div>
</body>
</html>