<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.4</h3> </BODY> <!-- Generated by Doxygen 1.1.2 on Mon Sep 16 08:36:21 2002 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> <hr><h1>XStringAllocator Class Reference</h1><code>#include <<a class="el" href="XStringAllocator.hpp-source.html">XStringAllocator.hpp</a>></code> <p> <a href="class_xstringallocator-members.html">List of all members.</a><h2>Public Types</h2> <ul> <li>typedef <a class="el" href="class_xstring.html">XString</a> <a class="el" href="class_xstringallocator.html#s0">string_type</a> <li>typedef <a class="el" href="class_reusablearenaallocator.html">ReusableArenaAllocator</a><<a class="el" href="class_xstringallocator.html#s0">string_type</a>> <a class="el" href="class_xstringallocator.html#s1">ArenaAllocatorType</a> <li>typedef ArenaAllocatorType::size_type <a class="el" href="class_xstringallocator.html#s2">size_type</a> </ul> <h2>Public Methods</h2> <ul> <li><a class="el" href="class_xstringallocator.html#a0">XStringAllocator</a> (<a class="el" href="class_xstringallocator.html#s2">size_type</a> theBlockCount) <dl class="el"><dd><font size=-1><em>Construct an instance that will allocate blocks of the specified size.</em> <a href="#a0">More...</a><em></em></font></dl><li><a class="el" href="class_xstringallocator.html#a1">~XStringAllocator</a> () <li><a class="el" href="class_xstringallocator.html#s0">string_type</a>* <a class="el" href="class_xstringallocator.html#a2">createString</a> (const <a class="el" href="class_xalandomstring.html">XalanDOMString</a>& theString) <dl class="el"><dd><font size=-1><em>Create an <a class="el" href="class_xstring.html">XString</a> object from a string.</em> <a href="#a2">More...</a><em></em></font></dl><li><a class="el" href="class_xstringallocator.html#s0">string_type</a>* <a class="el" href="class_xstringallocator.html#a3">createString</a> (const <a class="el" href="XalanDOMString.hpp.html#a16">XalanDOMChar</a>* theString) <dl class="el"><dd><font size=-1><em>Create an <a class="el" href="class_xstring.html">XString</a> object from a null-terminated array of characters.</em> <a href="#a3">More...</a><em></em></font></dl><li><a class="el" href="class_xstringallocator.html#s0">string_type</a>* <a class="el" href="class_xstringallocator.html#a4">createString</a> ( const <a class="el" href="XalanDOMString.hpp.html#a16">XalanDOMChar</a>* theString, unsigned int theLength) <dl class="el"><dd><font size=-1><em>Create an <a class="el" href="class_xstring.html">XString</a> object from an array of characters.</em> <a href="#a4">More...</a><em></em></font></dl><li><a class="el" href="class_xstringallocator.html#s0">string_type</a>* <a class="el" href="class_xstringallocator.html#a5">clone</a> (const <a class="el" href="class_xstring.html">XString</a>& value) <dl class="el"><dd><font size=-1><em>Clone an <a class="el" href="class_xstring.html">XString</a> object.</em> <a href="#a5">More...</a><em></em></font></dl><li>bool <a class="el" href="class_xstringallocator.html#a6">destroy</a> (<a class="el" href="class_xstringallocator.html#s0">string_type</a>* theString) <dl class="el"><dd><font size=-1><em>Delete an <a class="el" href="class_xstring.html">XString</a> object from allocator.</em></font></dl><li>bool <a class="el" href="class_xstringallocator.html#a7">ownsObject</a> (const <a class="el" href="class_xstringallocator.html#s0">string_type</a>* theObject) <dl class="el"><dd><font size=-1><em>Determine if an object is owned by the allocator...</em></font></dl><li>void <a class="el" href="class_xstringallocator.html#a8">reset</a> () <dl class="el"><dd><font size=-1><em>Delete all <a class="el" href="class_xstring.html">XString</a> objects from allocator.</em></font></dl><li><a class="el" href="class_xstringallocator.html#s2">size_type</a> <a class="el" href="class_xstringallocator.html#a9">getBlockCount</a> () const <dl class="el"><dd><font size=-1><em>Get size of an <a class="el" href="class_arenablock.html">ArenaBlock</a>, that is, the number of objects in each block.</em> <a href="#a9">More...</a><em></em></font></dl><li><a class="el" href="class_xstringallocator.html#s2">size_type</a> <a class="el" href="class_xstringallocator.html#a10">getBlockSize</a> () const <dl class="el"><dd><font size=-1><em>Get the number of ArenaBlocks currently allocated.</em> <a href="#a10">More...</a><em></em></font></dl></ul> <hr><a name="_details"></a><h2>Detailed Description</h2> <p> <hr><h2>Member Typedef Documentation</h2> <a name="s1" doxytag="XStringAllocator::ArenaAllocatorType"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> typedef <a class="el" href="class_reusablearenaallocator.html">ReusableArenaAllocator</a><<a class="el" href="class_xstringallocator.html#s0">string_type</a>> XStringAllocator::ArenaAllocatorType</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <a name="s2" doxytag="XStringAllocator::size_type"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> typedef ArenaAllocatorType::size_type XStringAllocator::size_type</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <a name="s0" doxytag="XStringAllocator::string_type"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> typedef <a class="el" href="class_xstring.html">XString</a> XStringAllocator::string_type</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="XStringAllocator::XStringAllocator"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> XStringAllocator::XStringAllocator ( </b></td> <td><b> <a class="el" href="class_xstringallocator.html#s2">size_type</a> <em>theBlockCount</em>)</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> Construct an instance that will allocate blocks of the specified size. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>theBlockSize</em> </td><td> The block size. </td></tr> </table> </dl></div> <a name="a1" doxytag="XStringAllocator::~XStringAllocator"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> XStringAllocator::~XStringAllocator ()</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <hr><h2>Member Function Documentation</h2> <a name="a5" doxytag="XStringAllocator::clone"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> <a class="el" href="class_xstringallocator.html#s0">string_type</a> * XStringAllocator::clone ( </b></td> <td><b> const <a class="el" href="class_xstring.html">XString</a> & <em>value</em>)</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> Clone an <a class="el" href="class_xstring.html">XString</a> object. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>value</em> </td><td> source <a class="el" href="class_xstring.html">XString</a> <p> </td></tr> </table> </dl><dl compact><dt> <b>Returns: </b><dd> pointer to an <a class="el" href="class_xstring.html">XString</a> </dl></div> <a name="a4" doxytag="XStringAllocator::createString"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> <a class="el" href="class_xstringallocator.html#s0">string_type</a> * XStringAllocator::createString ( </b></td> <td><b> const <a class="el" href="XalanDOMString.hpp.html#a16">XalanDOMChar</a> * <em>theString</em>, </b></td></tr> <tr><td></td><td><b> unsigned int <em>theLength</em>)</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> Create an <a class="el" href="class_xstring.html">XString</a> object from an array of characters. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>theString</em> </td><td> a pointer to the array </td></tr> <tr><td valign=top><em>theLength</em> </td><td> the length of the array. <p> </td></tr> </table> </dl><dl compact><dt> <b>Returns: </b><dd> a pointer to string </dl></div> <a name="a3" doxytag="XStringAllocator::createString"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> <a class="el" href="class_xstringallocator.html#s0">string_type</a> * XStringAllocator::createString ( </b></td> <td><b> const <a class="el" href="XalanDOMString.hpp.html#a16">XalanDOMChar</a> * <em>theString</em>)</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> Create an <a class="el" href="class_xstring.html">XString</a> object from a null-terminated array of characters. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>theString</em> </td><td> a pointer to the array <p> </td></tr> </table> </dl><dl compact><dt> <b>Returns: </b><dd> a pointer to string </dl></div> <a name="a2" doxytag="XStringAllocator::createString"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> <a class="el" href="class_xstringallocator.html#s0">string_type</a> * XStringAllocator::createString ( </b></td> <td><b> const <a class="el" href="class_xalandomstring.html">XalanDOMString</a> & <em>theString</em>)</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> Create an <a class="el" href="class_xstring.html">XString</a> object from a string. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>theString</em> </td><td> source string <p> </td></tr> </table> </dl><dl compact><dt> <b>Returns: </b><dd> a pointer to string </dl></div> <a name="a6" doxytag="XStringAllocator::destroy"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> bool XStringAllocator::destroy ( </b></td> <td><b> <a class="el" href="class_xstringallocator.html#s0">string_type</a> * <em>theString</em>)</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> Delete an <a class="el" href="class_xstring.html">XString</a> object from allocator. <p> </div> <a name="a9" doxytag="XStringAllocator::getBlockCount"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> <a class="el" href="class_xstringallocator.html#s2">size_type</a> XStringAllocator::getBlockCount () const</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> Get size of an <a class="el" href="class_arenablock.html">ArenaBlock</a>, that is, the number of objects in each block. <p> <dl compact><dt> <b>Returns: </b><dd> The size of the block </dl></div> <a name="a10" doxytag="XStringAllocator::getBlockSize"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> <a class="el" href="class_xstringallocator.html#s2">size_type</a> XStringAllocator::getBlockSize () const</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> Get the number of ArenaBlocks currently allocated. <p> <dl compact><dt> <b>Returns: </b><dd> The number of blocks. </dl></div> <a name="a7" doxytag="XStringAllocator::ownsObject"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> bool XStringAllocator::ownsObject ( </b></td> <td><b> const <a class="el" href="class_xstringallocator.html#s0">string_type</a> * <em>theObject</em>)</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> Determine if an object is owned by the allocator... <p> </div> <a name="a8" doxytag="XStringAllocator::reset"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> void XStringAllocator::reset ()</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> Delete all <a class="el" href="class_xstring.html">XString</a> objects from allocator. <p> </div> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="XStringAllocator.hpp.html">XStringAllocator.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="images/dot.gif" width="1"></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.4</B><BR> Copyright © 2000, 2001, 2002 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"> </TD> </TR> </TABLE>