blob: a3d81bf803dd994fcea1c72bebe1b39f67892102 [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>XStringCachedAllocator Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="XStringCachedAllocator" -->
<p><code>#include &lt;<a class="el" href="XStringCachedAllocator_8hpp_source.html">XStringCachedAllocator.hpp</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for XStringCachedAllocator:</div>
<div class="dyncontent">
<div class="center"><img src="classXStringCachedAllocator__coll__graph.png" border="0" usemap="#XStringCachedAllocator_coll__map" alt="Collaboration graph"/></div>
<map name="XStringCachedAllocator_coll__map" id="XStringCachedAllocator_coll__map">
<area shape="rect" id="node2" href="classReusableArenaAllocator.html" title="ReusableArenaAllocator\&lt; string_type \&gt;" alt="" coords="3928,428,4203,457"/><area shape="rect" id="node4" href="classArenaAllocator.html" title="ArenaAllocator\&lt; string_type, ReusableArenaBlock\&lt; string_type \&gt; \&gt;" alt="" coords="3421,428,3877,457"/><area shape="rect" id="node6" href="classReusableArenaBlock.html" title="ReusableArenaBlock\&lt; string_type \&gt;" alt="" coords="2987,400,3240,429"/><area shape="rect" id="node8" href="classArenaBlockBase.html" title="ArenaBlockBase\&lt; string_type, unsigned short \&gt;" alt="" coords="2437,381,2768,411"/><area shape="rect" id="node10" href="classXStringAdapter.html" title="XStringAdapter" alt="" coords="2128,355,2248,384"/><area shape="rect" id="node12" href="classXStringBase.html" title="XStringBase" alt="" coords="1927,329,2028,359"/><area shape="rect" id="node14" href="classXObject.html" title="Class to hold XPath return types." alt="" coords="860,381,932,411"/><area shape="rect" id="node33" href="classXObjectResultTreeFragProxyText.html" title="XObjectResultTreeFragProxyText" alt="" coords="1196,172,1423,201"/><area shape="rect" id="node49" href="classXObjectPtr.html" title="Class to hold XObjectPtr return types." alt="" coords="1448,381,1539,411"/><area shape="rect" id="node16" href="classXalanReferenceCountedObject.html" title="Class to hold reference count information." alt="" coords="333,415,552,444"/><area shape="rect" id="node18" href="classXObjectFactory.html" title="This class handles the creation of XObjects and manages their lifetime." alt="" coords="384,468,501,497"/><area shape="rect" id="node42" href="classXPathExecutionContext.html" title="XPathExecutionContext" alt="" coords="809,328,983,357"/><area shape="rect" id="node20" href="classXalanDOMString.html" title="XalanDOMString" alt="" coords="379,135,507,164"/><area shape="rect" id="node26" href="classXObjectResultTreeFragProxyBase.html" title="XObjectResultTreeFragProxyBase" alt="" coords="779,25,1013,55"/><area shape="rect" id="node22" href="classXalanVector.html" title="XalanVector\&lt; XalanDOMChar \&gt;" alt="" coords="7,135,233,164"/><area shape="rect" id="node24" href="classXObjectResultTreeFragProxy.html" title="XObjectResultTreeFragProxy" alt="" coords="1563,172,1765,201"/><area shape="rect" id="node28" href="classXalanDocumentFragment.html" title="XalanDocumentFragment" alt="" coords="349,5,536,35"/><area shape="rect" id="node30" href="classXalanNode.html" title="XalanNode" alt="" coords="73,37,167,67"/><area shape="rect" id="node37" href="classXalanCharacterData.html" title="XalanCharacterData" alt="" coords="367,59,519,88"/><area shape="rect" id="node35" href="classXalanText.html" title="XalanText" alt="" coords="853,79,939,108"/><area shape="rect" id="node44" href="classExecutionContext.html" title="ExecutionContext" alt="" coords="376,337,509,367"/><area shape="rect" id="node46" 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,337,199,367"/><area shape="rect" id="node52" href="classXalanAllocator.html" title="XalanAllocator\&lt; string_type \&gt;" alt="" coords="2080,408,2296,437"/><area shape="rect" id="node54" href="classXalanList.html" title="XalanList\&lt; ReusableArenaBlock\&lt; string_type \&gt; * \&gt;" alt="" coords="2937,457,3289,487"/><area shape="rect" id="node56" href="structXalanList_1_1Node.html" title="XalanList\&lt; Type \&gt;::Node" alt="" coords="2512,493,2693,523"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="classXStringCachedAllocator-members.html">List of all members.</a></p>
<h2><a name="pub-types"></a>
Public Types</h2>
<ul>
<li>typedef <a class="el" href="classXStringCached.html">XStringCached</a> <a class="el" href="classXStringCachedAllocator.html#a2af333c8760e8925e26534941afb1d76">string_type</a>
<li>typedef <br class="typebreak"/>
<a class="el" href="classXPathExecutionContext_1_1GetCachedString.html">string_type::GetCachedString</a> <a class="el" href="classXStringCachedAllocator.html#ab3a097ed69b69fa47d90365414790c6c">GetCachedString</a>
<li>typedef <a class="el" href="classReusableArenaAllocator.html">ReusableArenaAllocator</a><br class="typebreak"/>
&lt; <a class="el" href="classXStringCached.html">string_type</a> &gt; <a class="el" href="classXStringCachedAllocator.html#ab22e2b5d469053902dc97c43b4f0643a">ArenaAllocatorType</a>
<li>typedef <br class="typebreak"/>
<a class="el" href="classReusableArenaAllocator.html#acf80af42a3e56e0f51dfc8b490944b8b">ArenaAllocatorType::size_type</a> <a class="el" href="classXStringCachedAllocator.html#a3b49bfd323b48b0e45774a5b26c77f98">size_type</a>
</ul>
<h2><a name="pub-methods"></a>
Public Member Functions</h2>
<ul>
<li><a class="el" href="classXStringCachedAllocator.html#a76f5435033f644b406f2bdbde247eb62">XStringCachedAllocator</a> (MemoryManager &amp;theManager, <a class="el" href="classXStringCachedAllocator.html#a3b49bfd323b48b0e45774a5b26c77f98">size_type</a> theBlockCount)
<dl class="el"><dd class="mdescRight">Construct an instance that will allocate blocks of the specified size. <a href="#a76f5435033f644b406f2bdbde247eb62"></a><br/></dl><li><a class="el" href="classXStringCachedAllocator.html#a24a30995e48842ff627b040767c1a775">~XStringCachedAllocator</a> ()
<li><a class="el" href="classXStringCached.html">string_type</a> * <a class="el" href="classXStringCachedAllocator.html#acc2bd4d33503c22e797b61594b0d0c12">createString</a> (<a class="el" href="classXPathExecutionContext_1_1GetCachedString.html">GetCachedString</a> &amp;theValue)
<dl class="el"><dd class="mdescRight">Create an <a class="el" href="classXString.html">XString</a> object from a cached string. <a href="#acc2bd4d33503c22e797b61594b0d0c12"></a><br/></dl><li>bool <a class="el" href="classXStringCachedAllocator.html#a63df5cc6cfd811eaae6f4e7ebe15505e">destroy</a> (<a class="el" href="classXStringCached.html">string_type</a> *theString)
<dl class="el"><dd class="mdescRight">Delete an <a class="el" href="classXStringCached.html">XStringCached</a> object from allocator. <a href="#a63df5cc6cfd811eaae6f4e7ebe15505e"></a><br/></dl><li>bool <a class="el" href="classXStringCachedAllocator.html#a508b15e483e6b0728d668548d326ed7b">ownsObject</a> (const <a class="el" href="classXStringCached.html">string_type</a> *theObject)
<dl class="el"><dd class="mdescRight">Determine if an object is owned by the allocator... <a href="#a508b15e483e6b0728d668548d326ed7b"></a><br/></dl><li>void <a class="el" href="classXStringCachedAllocator.html#a4b47f170dab0e655b6b2d663dd3ba460">reset</a> ()
<dl class="el"><dd class="mdescRight">Delete all <a class="el" href="classXStringCached.html">XStringCached</a> objects from allocator. <a href="#a4b47f170dab0e655b6b2d663dd3ba460"></a><br/></dl><li><a class="el" href="classXStringCachedAllocator.html#a3b49bfd323b48b0e45774a5b26c77f98">size_type</a> <a class="el" href="classXStringCachedAllocator.html#a49f8eed9f9c62f5d9de30956112ce045">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="#a49f8eed9f9c62f5d9de30956112ce045"></a><br/></dl><li><a class="el" href="classXStringCachedAllocator.html#a3b49bfd323b48b0e45774a5b26c77f98">size_type</a> <a class="el" href="classXStringCachedAllocator.html#a41eaf7c510e30798d5406b6161624adb">getBlockSize</a> () const
<dl class="el"><dd class="mdescRight">Get the number of ArenaBlocks currently allocated. <a href="#a41eaf7c510e30798d5406b6161624adb"></a><br/></dl></ul>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Definition at line <a class="el" href="XStringCachedAllocator_8hpp_source.html#l00041">41</a> of file <a class="el" href="XStringCachedAllocator_8hpp_source.html">XStringCachedAllocator.hpp</a>.</p>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="ab22e2b5d469053902dc97c43b4f0643a"></a><!-- doxytag: member="XStringCachedAllocator::ArenaAllocatorType" ref="ab22e2b5d469053902dc97c43b4f0643a" 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="classXStringCached.html">string_type</a>&gt; <a class="el" href="classReusableArenaAllocator.html">XStringCachedAllocator::ArenaAllocatorType</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="XStringCachedAllocator_8hpp_source.html#l00049">49</a> of file <a class="el" href="XStringCachedAllocator_8hpp_source.html">XStringCachedAllocator.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="ab3a097ed69b69fa47d90365414790c6c"></a><!-- doxytag: member="XStringCachedAllocator::GetCachedString" ref="ab3a097ed69b69fa47d90365414790c6c" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="classXPathExecutionContext_1_1GetCachedString.html">string_type::GetCachedString</a> <a class="el" href="classXPathExecutionContext_1_1GetCachedString.html">XStringCachedAllocator::GetCachedString</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="XStringCachedAllocator_8hpp_source.html#l00047">47</a> of file <a class="el" href="XStringCachedAllocator_8hpp_source.html">XStringCachedAllocator.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a3b49bfd323b48b0e45774a5b26c77f98"></a><!-- doxytag: member="XStringCachedAllocator::size_type" ref="a3b49bfd323b48b0e45774a5b26c77f98" 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="classXStringCachedAllocator.html#a3b49bfd323b48b0e45774a5b26c77f98">XStringCachedAllocator::size_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="XStringCachedAllocator_8hpp_source.html#l00050">50</a> of file <a class="el" href="XStringCachedAllocator_8hpp_source.html">XStringCachedAllocator.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a2af333c8760e8925e26534941afb1d76"></a><!-- doxytag: member="XStringCachedAllocator::string_type" ref="a2af333c8760e8925e26534941afb1d76" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="classXStringCached.html">XStringCached</a> <a class="el" href="classXStringCached.html">XStringCachedAllocator::string_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="XStringCachedAllocator_8hpp_source.html#l00045">45</a> of file <a class="el" href="XStringCachedAllocator_8hpp_source.html">XStringCachedAllocator.hpp</a>.</p>
</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a76f5435033f644b406f2bdbde247eb62"></a><!-- doxytag: member="XStringCachedAllocator::XStringCachedAllocator" ref="a76f5435033f644b406f2bdbde247eb62" args="(MemoryManager &amp;theManager, size_type theBlockCount)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">XStringCachedAllocator::XStringCachedAllocator </td>
<td>(</td>
<td class="paramtype">MemoryManager &amp;&nbsp;</td>
<td class="paramname"> <em>theManager</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classXStringCachedAllocator.html#a3b49bfd323b48b0e45774a5b26c77f98">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="a24a30995e48842ff627b040767c1a775"></a><!-- doxytag: member="XStringCachedAllocator::~XStringCachedAllocator" ref="a24a30995e48842ff627b040767c1a775" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">XStringCachedAllocator::~XStringCachedAllocator </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="acc2bd4d33503c22e797b61594b0d0c12"></a><!-- doxytag: member="XStringCachedAllocator::createString" ref="acc2bd4d33503c22e797b61594b0d0c12" args="(GetCachedString &amp;theValue)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classXStringCached.html">string_type</a>* XStringCachedAllocator::createString </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classXPathExecutionContext_1_1GetCachedString.html">GetCachedString</a> &amp;&nbsp;</td>
<td class="paramname"> <em>theValue</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create an <a class="el" href="classXString.html">XString</a> object from a cached string. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>theXObject</em>&nbsp;</td><td>The source cached string</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a pointer to the new <a class="el" href="classXStringCached.html">XStringCached</a> instance. </dd></dl>
</div>
</div>
<a class="anchor" id="a63df5cc6cfd811eaae6f4e7ebe15505e"></a><!-- doxytag: member="XStringCachedAllocator::destroy" ref="a63df5cc6cfd811eaae6f4e7ebe15505e" args="(string_type *theString)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool XStringCachedAllocator::destroy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classXStringCached.html">string_type</a> *&nbsp;</td>
<td class="paramname"> <em>theString</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Delete an <a class="el" href="classXStringCached.html">XStringCached</a> object from allocator. </p>
</div>
</div>
<a class="anchor" id="a49f8eed9f9c62f5d9de30956112ce045"></a><!-- doxytag: member="XStringCachedAllocator::getBlockCount" ref="a49f8eed9f9c62f5d9de30956112ce045" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classXStringCachedAllocator.html#a3b49bfd323b48b0e45774a5b26c77f98">size_type</a> XStringCachedAllocator::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="XStringCachedAllocator_8hpp_source.html#l00102">102</a> of file <a class="el" href="XStringCachedAllocator_8hpp_source.html">XStringCachedAllocator.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a41eaf7c510e30798d5406b6161624adb"></a><!-- doxytag: member="XStringCachedAllocator::getBlockSize" ref="a41eaf7c510e30798d5406b6161624adb" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classXStringCachedAllocator.html#a3b49bfd323b48b0e45774a5b26c77f98">size_type</a> XStringCachedAllocator::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="XStringCachedAllocator_8hpp_source.html#l00113">113</a> of file <a class="el" href="XStringCachedAllocator_8hpp_source.html">XStringCachedAllocator.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a508b15e483e6b0728d668548d326ed7b"></a><!-- doxytag: member="XStringCachedAllocator::ownsObject" ref="a508b15e483e6b0728d668548d326ed7b" args="(const string_type *theObject)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool XStringCachedAllocator::ownsObject </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classXStringCached.html">string_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="XStringCachedAllocator_8hpp_source.html#l00084">84</a> of file <a class="el" href="XStringCachedAllocator_8hpp_source.html">XStringCachedAllocator.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a4b47f170dab0e655b6b2d663dd3ba460"></a><!-- doxytag: member="XStringCachedAllocator::reset" ref="a4b47f170dab0e655b6b2d663dd3ba460" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XStringCachedAllocator::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="classXStringCached.html">XStringCached</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="XStringCachedAllocator_8hpp_source.html">XStringCachedAllocator.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>