blob: acdb56f62f38e9c877fe66bd728b3882bf8a99bd [file] [log] [blame]
<!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"/>
<title>Xalan-C++ API : Main Page</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<!-- The head section is copied from Doxygen 1.7.1 generated default output -->
<body>
<h2 align="center">Xalan-C++ API Documentation</h2>
<h3 align="center"><a href="../index.html">The Xalan C++ XSLT Processor Version 1.11</a></h3>
<hr/>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>XTokenNumberAdapterAllocator Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="XTokenNumberAdapterAllocator" -->
<p><code>#include &lt;<a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html">XTokenNumberAdapterAllocator.hpp</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for XTokenNumberAdapterAllocator:</div>
<div class="dyncontent">
<div class="center"><img src="classXTokenNumberAdapterAllocator__coll__graph.png" border="0" usemap="#XTokenNumberAdapterAllocator_coll__map" alt="Collaboration graph"/></div>
<map name="XTokenNumberAdapterAllocator_coll__map" id="XTokenNumberAdapterAllocator_coll__map">
<area shape="rect" id="node2" href="classReusableArenaAllocator.html" title="ReusableArenaAllocator\&lt; object_type \&gt;" alt="" coords="3911,173,4188,203"/><area shape="rect" id="node4" href="classArenaAllocator.html" title="ArenaAllocator\&lt; object_type, ReusableArenaBlock\&lt; object_type \&gt; \&gt;" alt="" coords="3396,173,3857,203"/><area shape="rect" id="node6" href="classXalanList.html" title="XalanList\&lt; ReusableArenaBlock\&lt; object_type \&gt; * \&gt;" alt="" coords="2908,147,3263,176"/><area shape="rect" id="node8" href="structXalanList_1_1Node.html" title="XalanList\&lt; Type \&gt;::Node" alt="" coords="2481,147,2663,176"/><area shape="rect" id="node11" href="classReusableArenaBlock.html" title="ReusableArenaBlock\&lt; object_type \&gt;" alt="" coords="2957,200,3213,229"/><area shape="rect" id="node13" href="classArenaBlockBase.html" title="ArenaBlockBase\&lt; object_type, unsigned short \&gt;" alt="" coords="2405,200,2739,229"/><area shape="rect" id="node15" href="classXTokenStringAdapter.html" title="XTokenStringAdapter" alt="" coords="2076,172,2233,201"/><area shape="rect" id="node17" href="classXStringBase.html" title="XStringBase" alt="" coords="1892,199,1993,228"/><area shape="rect" id="node19" href="classXObject.html" title="Class to hold XPath return types." alt="" coords="860,199,932,228"/><area shape="rect" id="node38" href="classXObjectResultTreeFragProxyText.html" title="XObjectResultTreeFragProxyText" alt="" coords="1196,337,1423,367"/><area shape="rect" id="node54" href="classXToken.html" title="XToken" alt="" coords="1275,147,1344,176"/><area shape="rect" id="node21" href="classXalanReferenceCountedObject.html" title="Class to hold reference count information." alt="" coords="333,5,552,35"/><area shape="rect" id="node23" href="classXObjectFactory.html" title="This class handles the creation of XObjects and manages their lifetime." alt="" coords="384,404,501,433"/><area shape="rect" id="node47" href="classXPathExecutionContext.html" title="XPathExecutionContext" alt="" coords="809,404,983,433"/><area shape="rect" id="node25" href="classXalanDOMString.html" title="XalanDOMString" alt="" coords="379,221,507,251"/><area shape="rect" id="node31" href="classXObjectResultTreeFragProxyBase.html" title="XObjectResultTreeFragProxyBase" alt="" coords="779,281,1013,311"/><area shape="rect" id="node27" href="classXalanVector.html" title="XalanVector\&lt; XalanDOMChar \&gt;" alt="" coords="7,221,233,251"/><area shape="rect" id="node29" href="classXObjectResultTreeFragProxy.html" title="XObjectResultTreeFragProxy" alt="" coords="1528,281,1731,311"/><area shape="rect" id="node33" href="classXalanDocumentFragment.html" title="XalanDocumentFragment" alt="" coords="349,351,536,380"/><area shape="rect" id="node35" href="classXalanNode.html" title="XalanNode" alt="" coords="73,421,167,451"/><area shape="rect" id="node42" href="classXalanCharacterData.html" title="XalanCharacterData" alt="" coords="367,457,519,487"/><area shape="rect" id="node40" href="classXalanText.html" title="XalanText" alt="" coords="853,457,939,487"/><area shape="rect" id="node49" href="classExecutionContext.html" title="ExecutionContext" alt="" coords="376,511,509,540"/><area shape="rect" id="node51" href="classProblemListenerBase.html" title="This is the abstract class that is used when reporting a problem some kind, that requires a message..." alt="" coords="41,511,199,540"/><area shape="rect" id="node58" href="classXalanAllocator.html" title="XalanAllocator\&lt; object_type \&gt;" alt="" coords="2045,225,2264,255"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="classXTokenNumberAdapterAllocator-members.html">List of all members.</a></p>
<h2><a name="pub-types"></a>
Public Types</h2>
<ul>
<li>typedef <a class="el" href="classXTokenNumberAdapter.html">XTokenNumberAdapter</a> <a class="el" href="classXTokenNumberAdapterAllocator.html#aa9a825e4d1ac696a8ee7ec41bff83d19">object_type</a>
<li>typedef <a class="el" href="classReusableArenaAllocator.html">ReusableArenaAllocator</a><br class="typebreak"/>
&lt; <a class="el" href="classXTokenNumberAdapter.html">object_type</a> &gt; <a class="el" href="classXTokenNumberAdapterAllocator.html#aa00b0449943b0561f692488ed8279cbd">ArenaAllocatorType</a>
<li>typedef <br class="typebreak"/>
<a class="el" href="classReusableArenaAllocator.html#acf80af42a3e56e0f51dfc8b490944b8b">ArenaAllocatorType::size_type</a> <a class="el" href="classXTokenNumberAdapterAllocator.html#a48d9539c72c8cf6ef006c6361ff433f2">size_type</a>
</ul>
<h2><a name="pub-methods"></a>
Public Member Functions</h2>
<ul>
<li><a class="el" href="classXTokenNumberAdapterAllocator.html#ab5e5d28f80048461d48766ce0303a989">XTokenNumberAdapterAllocator</a> (MemoryManager &amp;theMemoryManager, <a class="el" href="classXTokenNumberAdapterAllocator.html#a48d9539c72c8cf6ef006c6361ff433f2">size_type</a> theBlockCount)
<dl class="el"><dd class="mdescRight">Construct an instance that will allocate blocks of the specified size. <a href="#ab5e5d28f80048461d48766ce0303a989"></a><br/></dl><li><a class="el" href="classXTokenNumberAdapterAllocator.html#a1b6a4433b3463f6ce56e3ef0dc4be2cb">~XTokenNumberAdapterAllocator</a> ()
<li><a class="el" href="classXTokenNumberAdapter.html">object_type</a> * <a class="el" href="classXTokenNumberAdapterAllocator.html#a50d30f773093494c5a838ea7c6d3c945">create</a> (const <a class="el" href="classXToken.html">XToken</a> &amp;theXToken)
<dl class="el"><dd class="mdescRight">Create an instance from an <a class="el" href="classXToken.html">XToken</a>. <a href="#a50d30f773093494c5a838ea7c6d3c945"></a><br/></dl><li>bool <a class="el" href="classXTokenNumberAdapterAllocator.html#ab06a1d363cb016bce5452b9ad5612dea">destroy</a> (<a class="el" href="classXTokenNumberAdapter.html">object_type</a> *theObject)
<dl class="el"><dd class="mdescRight">Delete an <a class="el" href="classXStringAdapter.html">XStringAdapter</a> object from allocator. <a href="#ab06a1d363cb016bce5452b9ad5612dea"></a><br/></dl><li>bool <a class="el" href="classXTokenNumberAdapterAllocator.html#a36c496a9565e466cbb4d79665daaa59b">ownsObject</a> (const <a class="el" href="classXTokenNumberAdapter.html">object_type</a> *theObject)
<dl class="el"><dd class="mdescRight">Determine if an object is owned by the allocator... <a href="#a36c496a9565e466cbb4d79665daaa59b"></a><br/></dl><li>void <a class="el" href="classXTokenNumberAdapterAllocator.html#a677d6c7c2d27f170068b5815727bc084">reset</a> ()
<dl class="el"><dd class="mdescRight">Delete all <a class="el" href="classXStringAdapter.html">XStringAdapter</a> objects from allocator. <a href="#a677d6c7c2d27f170068b5815727bc084"></a><br/></dl><li><a class="el" href="classXTokenNumberAdapterAllocator.html#a48d9539c72c8cf6ef006c6361ff433f2">size_type</a> <a class="el" href="classXTokenNumberAdapterAllocator.html#a97b8e1e20e8caa4ef72639eade202041">getBlockCount</a> () const
<dl class="el"><dd class="mdescRight">Get size of an <a class="el" href="classArenaBlock.html">ArenaBlock</a>, that is, the number of objects in each block. <a href="#a97b8e1e20e8caa4ef72639eade202041"></a><br/></dl><li><a class="el" href="classXTokenNumberAdapterAllocator.html#a48d9539c72c8cf6ef006c6361ff433f2">size_type</a> <a class="el" href="classXTokenNumberAdapterAllocator.html#a6e4a2daaa94a4c6c2dfc9c7420c96346">getBlockSize</a> () const
<dl class="el"><dd class="mdescRight">Get the number of ArenaBlocks currently allocated. <a href="#a6e4a2daaa94a4c6c2dfc9c7420c96346"></a><br/></dl></ul>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Definition at line <a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html#l00041">41</a> of file <a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html">XTokenNumberAdapterAllocator.hpp</a>.</p>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="aa00b0449943b0561f692488ed8279cbd"></a><!-- doxytag: member="XTokenNumberAdapterAllocator::ArenaAllocatorType" ref="aa00b0449943b0561f692488ed8279cbd" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="classReusableArenaAllocator.html">ReusableArenaAllocator</a>&lt;<a class="el" href="classXTokenNumberAdapter.html">object_type</a>&gt; <a class="el" href="classReusableArenaAllocator.html">XTokenNumberAdapterAllocator::ArenaAllocatorType</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html#l00047">47</a> of file <a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html">XTokenNumberAdapterAllocator.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="aa9a825e4d1ac696a8ee7ec41bff83d19"></a><!-- doxytag: member="XTokenNumberAdapterAllocator::object_type" ref="aa9a825e4d1ac696a8ee7ec41bff83d19" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="classXTokenNumberAdapter.html">XTokenNumberAdapter</a> <a class="el" href="classXTokenNumberAdapter.html">XTokenNumberAdapterAllocator::object_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html#l00045">45</a> of file <a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html">XTokenNumberAdapterAllocator.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a48d9539c72c8cf6ef006c6361ff433f2"></a><!-- doxytag: member="XTokenNumberAdapterAllocator::size_type" ref="a48d9539c72c8cf6ef006c6361ff433f2" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="classReusableArenaAllocator.html#acf80af42a3e56e0f51dfc8b490944b8b">ArenaAllocatorType::size_type</a> <a class="el" href="classXTokenNumberAdapterAllocator.html#a48d9539c72c8cf6ef006c6361ff433f2">XTokenNumberAdapterAllocator::size_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html#l00048">48</a> of file <a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html">XTokenNumberAdapterAllocator.hpp</a>.</p>
</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab5e5d28f80048461d48766ce0303a989"></a><!-- doxytag: member="XTokenNumberAdapterAllocator::XTokenNumberAdapterAllocator" ref="ab5e5d28f80048461d48766ce0303a989" args="(MemoryManager &amp;theMemoryManager, size_type theBlockCount)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">XTokenNumberAdapterAllocator::XTokenNumberAdapterAllocator </td>
<td>(</td>
<td class="paramtype">MemoryManager &amp;&nbsp;</td>
<td class="paramname"> <em>theMemoryManager</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classXTokenNumberAdapterAllocator.html#a48d9539c72c8cf6ef006c6361ff433f2">size_type</a>&nbsp;</td>
<td class="paramname"> <em>theBlockCount</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Construct an instance that will allocate blocks of the specified size. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>theBlockSize</em>&nbsp;</td><td>The block size. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a1b6a4433b3463f6ce56e3ef0dc4be2cb"></a><!-- doxytag: member="XTokenNumberAdapterAllocator::~XTokenNumberAdapterAllocator" ref="a1b6a4433b3463f6ce56e3ef0dc4be2cb" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">XTokenNumberAdapterAllocator::~XTokenNumberAdapterAllocator </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a50d30f773093494c5a838ea7c6d3c945"></a><!-- doxytag: member="XTokenNumberAdapterAllocator::create" ref="a50d30f773093494c5a838ea7c6d3c945" args="(const XToken &amp;theXToken)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classXTokenNumberAdapter.html">object_type</a>* XTokenNumberAdapterAllocator::create </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classXToken.html">XToken</a> &amp;&nbsp;</td>
<td class="paramname"> <em>theXToken</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create an instance from an <a class="el" href="classXToken.html">XToken</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>theXToken</em>&nbsp;</td><td>The source <a class="el" href="classXToken.html">XToken</a></td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pointer to the new object </dd></dl>
</div>
</div>
<a class="anchor" id="ab06a1d363cb016bce5452b9ad5612dea"></a><!-- doxytag: member="XTokenNumberAdapterAllocator::destroy" ref="ab06a1d363cb016bce5452b9ad5612dea" args="(object_type *theObject)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool XTokenNumberAdapterAllocator::destroy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classXTokenNumberAdapter.html">object_type</a> *&nbsp;</td>
<td class="paramname"> <em>theObject</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Delete an <a class="el" href="classXStringAdapter.html">XStringAdapter</a> object from allocator. </p>
</div>
</div>
<a class="anchor" id="a97b8e1e20e8caa4ef72639eade202041"></a><!-- doxytag: member="XTokenNumberAdapterAllocator::getBlockCount" ref="a97b8e1e20e8caa4ef72639eade202041" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classXTokenNumberAdapterAllocator.html#a48d9539c72c8cf6ef006c6361ff433f2">size_type</a> XTokenNumberAdapterAllocator::getBlockCount </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get size of an <a class="el" href="classArenaBlock.html">ArenaBlock</a>, that is, the number of objects in each block. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The size of the block </dd></dl>
<p>Definition at line <a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html#l00099">99</a> of file <a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html">XTokenNumberAdapterAllocator.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a6e4a2daaa94a4c6c2dfc9c7420c96346"></a><!-- doxytag: member="XTokenNumberAdapterAllocator::getBlockSize" ref="a6e4a2daaa94a4c6c2dfc9c7420c96346" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classXTokenNumberAdapterAllocator.html#a48d9539c72c8cf6ef006c6361ff433f2">size_type</a> XTokenNumberAdapterAllocator::getBlockSize </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the number of ArenaBlocks currently allocated. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of blocks. </dd></dl>
<p>Definition at line <a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html#l00110">110</a> of file <a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html">XTokenNumberAdapterAllocator.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a36c496a9565e466cbb4d79665daaa59b"></a><!-- doxytag: member="XTokenNumberAdapterAllocator::ownsObject" ref="a36c496a9565e466cbb4d79665daaa59b" args="(const object_type *theObject)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool XTokenNumberAdapterAllocator::ownsObject </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classXTokenNumberAdapter.html">object_type</a> *&nbsp;</td>
<td class="paramname"> <em>theObject</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Determine if an object is owned by the allocator... </p>
<p>Definition at line <a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html#l00081">81</a> of file <a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html">XTokenNumberAdapterAllocator.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a677d6c7c2d27f170068b5815727bc084"></a><!-- doxytag: member="XTokenNumberAdapterAllocator::reset" ref="a677d6c7c2d27f170068b5815727bc084" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTokenNumberAdapterAllocator::reset </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Delete all <a class="el" href="classXStringAdapter.html">XStringAdapter</a> objects from allocator. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="XTokenNumberAdapterAllocator_8hpp_source.html">XTokenNumberAdapterAllocator.hpp</a></li>
</ul>
</div>
<p align="center"><a href="graph_legend.html">Interpreting class diagrams</a></p>
<p><font color="#000000" face="arial,helvetica,sanserif" size="-1">
<i><a href="http://www.doxygen.org/">Doxygen</a> and
<a href="http://www.graphviz.org/">GraphViz</a> are
used to generate this API documentation from the Xalan-C header files.</i></font></p>
<table border="0" cellpadding="0" cellspacing="0" width="80%">
<tr>
<td width="80%" valign="top">
<p align="center"><b>Xalan-C++ XSLT Processor Version 1.11</b><br/>
Copyright &copy; 1999-2012 The Apache Software Foundation.<br/>
All Rights Reserved.</p>
</td>
</tr>
<tr>
<td width="100%">
<p align="center"><img src="asf_logo_wide.gif" width="268" height="25" align="bottom" border="0" alt="Apache Logo">
</td>
</tr>
</table>
</body>
</html>