blob: e7fe72ebfe8537407a213e294e357386742409af [file] [log] [blame]
<HTML><HEAD><TITLE>Xalan-C++ API Documentation</TITLE></HEAD>
<BODY>
<h2 align="center">Xalan-C++ API Documentation</h2>
<h3 align="center">The Xalan C++ XSLT Processor Version 1.10</h3>
</BODY>
<!-- Generated by Doxygen 1.2.8.1 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>XalanArrayAllocator Class Template Reference</h1><code>#include &lt;<a class="el" href="XalanArrayAllocator_8hpp-source.html">XalanArrayAllocator.hpp</a>&gt;</code>
<p>
Collaboration diagram for XalanArrayAllocator:<p><center><img src="classXalanArrayAllocator__coll__graph.gif" border="0" usemap="#XalanArrayAllocator_coll_map" alt="Collaboration graph"></center>
<map name="XalanArrayAllocator_coll_map">
<area href="classXalanList.html" shape="rect" coords="6,146,177,122">
<area href="structXalanList_1_1Node.html" shape="rect" coords="40,42,144,18">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classXalanArrayAllocator-members.html">List of all members.</a><h2>Public Types</h2>
<ul>
<li>typedef XalanVector&lt;Type&gt; <a class="el" href="classXalanArrayAllocator.html#s0">VectorType</a>
<li>typedef VectorType::size_type <a class="el" href="classXalanArrayAllocator.html#s1">size_type</a>
<li>typedef XALAN_STD_QUALIFIER <br>
pair&lt;<a class="el" href="classXalanArrayAllocator.html#s1">size_type</a>, <a class="el" href="classXalanArrayAllocator.html#s0">VectorType</a> * &gt; <a class="el" href="classXalanArrayAllocator.html#s2">ListEntryType</a>
<li>typedef <a class="el" href="classXalanList.html">XalanList</a>&lt;<a class="el" href="classXalanArrayAllocator.html#s2">ListEntryType</a>&gt; <a class="el" href="classXalanArrayAllocator.html#s3">ListType</a>
<li>typedef Type <a class="el" href="classXalanArrayAllocator.html#s4">value_type</a>
<li>typedef <a class="el" href="classXalanList.html#s7">ListType::iterator</a> <a class="el" href="classXalanArrayAllocator.html#s5">ListIteratorType</a>
<li>enum { <a class="el" href="classXalanArrayAllocator.html#s7s6">eDefaultBlockSize</a> = 500
}
</ul>
<h2>Public Methods</h2>
<ul>
<li><a class="el" href="classXalanArrayAllocator.html#a0">XalanArrayAllocator</a> (<a class="el" href="XalanMemoryManagement_8hpp.html#a5">MemoryManagerType</a> &amp;theManager, <a class="el" href="classXalanArrayAllocator.html#s1">size_type</a> theBlockSize=eDefaultBlockSize)
<dl class="el"><dd><font size=-1><em>Constructor.</em> <a href="#a0">More...</a><em><br><br></em></font></dl><li><a class="el" href="classXalanArrayAllocator.html#a1">~XalanArrayAllocator</a> ()
<li>void <a class="el" href="classXalanArrayAllocator.html#a2">clear</a> ()
<dl class="el"><dd><font size=-1><em>Clear the instance, and release all allocated memory.</em> <a href="#a2">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classXalanArrayAllocator.html#a3">reset</a> ()
<dl class="el"><dd><font size=-1><em>Reset the instance, but keep all memory so it can be reused for allocations.</em> <a href="#a3">More...</a><em><br><br></em></font></dl><li>Type* <a class="el" href="classXalanArrayAllocator.html#a4">allocate</a> (<a class="el" href="classXalanArrayAllocator.html#s1">size_type</a> theCount)
<dl class="el"><dd><font size=-1><em>Allocate slots for the given number of Types instance and return the address of the slots.</em> <a href="#a4">More...</a><em><br><br></em></font></dl></ul>
<h3>template&lt;class Type&gt; class XalanArrayAllocator</h3>
<hr><h2>Member Typedef Documentation</h2>
<a name="s2" doxytag="XalanArrayAllocator::ListEntryType"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template&lt;class Type&gt; </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
typedef XALAN_STD_QUALIFIER pair&lt; <a class="el" href="classXalanArrayAllocator.html#s1">size_type</a>, <a class="el" href="classXalanArrayAllocator.html#s0">VectorType</a> * &gt; XalanArrayAllocator&lt;Type&gt;::ListEntryType&lt;<a class="el" href="classXalanArrayAllocator.html#s1">size_type</a>, <a class="el" href="classXalanArrayAllocator.html#s0">VectorType</a> * &gt;
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="s5" doxytag="XalanArrayAllocator::ListIteratorType"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template&lt;class Type&gt; </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
typedef <a class="el" href="classXalanList.html#s7">ListType::iterator</a> XalanArrayAllocator&lt;Type&gt;::ListIteratorType
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="s3" doxytag="XalanArrayAllocator::ListType"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template&lt;class Type&gt; </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
typedef <a class="el" href="classXalanList.html">XalanList</a>&lt; <a class="el" href="classXalanArrayAllocator.html#s2">ListEntryType</a> &gt; XalanArrayAllocator&lt;Type&gt;::ListType&lt;<a class="el" href="classXalanArrayAllocator.html#s2">ListEntryType</a>&gt;
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="s0" doxytag="XalanArrayAllocator::VectorType"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template&lt;class Type&gt; </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
typedef XalanVector&lt; Type &gt; XalanArrayAllocator&lt;Type&gt;::VectorType&lt;Type&gt;
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="s1" doxytag="XalanArrayAllocator::size_type"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template&lt;class Type&gt; </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
typedef VectorType::size_type XalanArrayAllocator&lt;Type&gt;::size_type
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="s4" doxytag="XalanArrayAllocator::value_type"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template&lt;class Type&gt; </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
typedef Type XalanArrayAllocator&lt;Type&gt;::value_type
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<hr><h2>Member Enumeration Documentation</h2>
<a name="s7" doxytag="XalanArrayAllocator::@5"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template&lt;class Type&gt; </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
anonymous enum
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<dl compact><dt>
<b>Enumeration values:</b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><a name="s7s6" doxytag="eDefaultBlockSize"></a><em>eDefaultBlockSize</em>
&nbsp;</td><td>
</td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="XalanArrayAllocator::XalanArrayAllocator"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template&lt;class Type&gt; </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
XalanArrayAllocator&lt;Type&gt;::XalanArrayAllocator&lt;Type&gt; (
</b></td>
<td valign="bottom"><b>
<a class="el" href="XalanMemoryManagement_8hpp.html#a5">MemoryManagerType</a> &amp; <em>theManager</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
<a class="el" href="classXalanArrayAllocator.html#s1">size_type</a> <em>theBlockSize</em> = eDefaultBlockSize&nbsp;)
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Constructor.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>theBlockSize</em>
&nbsp;</td><td>
The block size when allocating. </td></tr>
</table>
</dl> </td>
</tr>
</table>
<a name="a1" doxytag="XalanArrayAllocator::~XalanArrayAllocator"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template&lt;class Type&gt; </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
XalanArrayAllocator&lt;Type&gt;::~XalanArrayAllocator&lt;Type&gt; (
</b></td>
<td valign="bottom"><b>
)
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a4" doxytag="XalanArrayAllocator::allocate"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template&lt;class Type&gt; </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
Type * XalanArrayAllocator&lt;Type&gt;::allocate (
</b></td>
<td valign="bottom"><b>
<a class="el" href="classXalanArrayAllocator.html#s1">size_type</a> <em>theCount</em>&nbsp;)
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Allocate slots for the given number of Types instance and return the address of the slots.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>theCount</em>
&nbsp;</td><td>
The number of slots to allocate </td></tr>
</table>
</dl> </td>
</tr>
</table>
<a name="a2" doxytag="XalanArrayAllocator::clear"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template&lt;class Type&gt; </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
void XalanArrayAllocator&lt;Type&gt;::clear (
</b></td>
<td valign="bottom"><b>
)
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Clear the instance, and release all allocated memory.
<p>
</td>
</tr>
</table>
<a name="a3" doxytag="XalanArrayAllocator::reset"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2"><b>
template&lt;class Type&gt; </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
void XalanArrayAllocator&lt;Type&gt;::reset (
</b></td>
<td valign="bottom"><b>
)
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Reset the instance, but keep all memory so it can be reused for allocations.
<p>
This invalidates all previous allocations. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="XalanArrayAllocator_8hpp-source.html">XalanArrayAllocator.hpp</a></ul>
<p align="center"><a href="diagramnotes.html">Interpreting class diagrams</a></p>
<p><FONT color="#000000" face="arial,helvetica,sanserif" size="-1">
<i><A href="http://www.stack.nl/~dimitri/doxygen/">Doxygen</A> and
<A href="http://www.research.att.com/sw/tools/graphviz/">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="820"><TR><TD bgcolor="#0086b2"><IMG height="1" src="../resources/dot.gif" width="1" alt="dot"></TD></TR></TABLE>
<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.10</B><BR>
Copyright &copy; 1999-2004 The Apache Software Foundation. All Rights Reserved.</i></p>
</TD>
</TR>
<TR>
<TD WIDTH="100%">
<P ALIGN="CENTER"><IMG SRC="ApacheLogo.jpg" WIDTH="387" HEIGHT="100" ALIGN="BOTTOM" BORDER="0" ALT="Apache Logo">
</TD>
</TR>
</TABLE>