Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 5e43f5d92fadaa0a1cc4664249b615d0 > files > 971

xalan-c-doc-1.1-8mdk.i586.rpm

<HTML><HEAD><TITLE>Xalan-C++ API Documentation</TITLE></HEAD>
<BODY>
<h2 align="center">Xalan-C++ API Documentation</h2>
<h3 align="center">The Xalan C++ XSL Transformer Version 1.1</h3>
</BODY>
<!-- Generated by Doxygen 1.2.0 on Thu Feb 15 10:44:08 2001 -->
<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>XalanSourceTreeCommentAllocator.hpp</h1><a href="XalanSourceTreeCommentAllocator.hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*
</font>00002 <font class="comment"> * The Apache Software License, Version 1.1
</font>00003 <font class="comment"> *
</font>00004 <font class="comment"> *
</font>00005 <font class="comment"> * Copyright (c) 2000 The Apache Software Foundation.  All rights 
</font>00006 <font class="comment"> * reserved.
</font>00007 <font class="comment"> *
</font>00008 <font class="comment"> * Redistribution and use in source and binary forms, with or without
</font>00009 <font class="comment"> * modification, are permitted provided that the following conditions
</font>00010 <font class="comment"> * are met:
</font>00011 <font class="comment"> *
</font>00012 <font class="comment"> * 1. Redistributions of source code must retain the above copyright
</font>00013 <font class="comment"> *    notice, this list of conditions and the following disclaimer. 
</font>00014 <font class="comment"> *
</font>00015 <font class="comment"> * 2. Redistributions in binary form must reproduce the above copyright
</font>00016 <font class="comment"> *    notice, this list of conditions and the following disclaimer in
</font>00017 <font class="comment"> *    the documentation and/or other materials provided with the
</font>00018 <font class="comment"> *    distribution.
</font>00019 <font class="comment"> *
</font>00020 <font class="comment"> * 3. The end-user documentation included with the redistribution,
</font>00021 <font class="comment"> *    if any, must include the following acknowledgment:  
</font>00022 <font class="comment"> *       "This product includes software developed by the
</font>00023 <font class="comment"> *        Apache Software Foundation (http://www.apache.org/)."
</font>00024 <font class="comment"> *    Alternately, this acknowledgment may appear in the software itself,
</font>00025 <font class="comment"> *    if and wherever such third-party acknowledgments normally appear.
</font>00026 <font class="comment"> *
</font>00027 <font class="comment"> * 4. The names "Xalan" and "Apache Software Foundation" must
</font>00028 <font class="comment"> *    not be used to endorse or promote products derived from this
</font>00029 <font class="comment"> *    software without prior written permission. For written 
</font>00030 <font class="comment"> *    permission, please contact apache@apache.org.
</font>00031 <font class="comment"> *
</font>00032 <font class="comment"> * 5. Products derived from this software may not be called "Apache",
</font>00033 <font class="comment"> *    nor may "Apache" appear in their name, without prior written
</font>00034 <font class="comment"> *    permission of the Apache Software Foundation.
</font>00035 <font class="comment"> *
</font>00036 <font class="comment"> * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
</font>00037 <font class="comment"> * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
</font>00038 <font class="comment"> * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
</font>00039 <font class="comment"> * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
</font>00040 <font class="comment"> * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
</font>00041 <font class="comment"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
</font>00042 <font class="comment"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
</font>00043 <font class="comment"> * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
</font>00044 <font class="comment"> * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
</font>00045 <font class="comment"> * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
</font>00046 <font class="comment"> * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
</font>00047 <font class="comment"> * SUCH DAMAGE.
</font>00048 <font class="comment"> * ====================================================================
</font>00049 <font class="comment"> *
</font>00050 <font class="comment"> * This software consists of voluntary contributions made by many
</font>00051 <font class="comment"> * individuals on behalf of the Apache Software Foundation and was
</font>00052 <font class="comment"> * originally based on software copyright (c) 1999, International
</font>00053 <font class="comment"> * Business Machines, Inc., http://www.ibm.com.  For more
</font>00054 <font class="comment"> * information on the Apache Software Foundation, please see
</font>00055 <font class="comment"> * &lt;http://www.apache.org/&gt;.
</font>00056 <font class="comment"> */</font>
00057 
00058 <font class="preprocessor">#if !defined(XALANSOURCETREECOMMENTALLOCATOR_INCLUDE_GUARD_12455133)
</font><a name="l00059"></a><a class="code" href="XalanSourceTreeCommentAllocator.hpp.html#a0">00059</a> <font class="preprocessor"></font><font class="preprocessor">#define XALANSOURCETREECOMMENTALLOCATOR_INCLUDE_GUARD_12455133
</font>00060 <font class="preprocessor"></font>
00061 
00062 
00063 <font class="preprocessor">#include &lt;<a class="code" href="XalanSourceTreeDefinitions.hpp.html">XalanSourceTree/XalanSourceTreeDefinitions.hpp</a>&gt;</font>
00064 
00065 
00066 
00067 <font class="preprocessor">#include &lt;<a class="code" href="ArenaAllocator.hpp.html">PlatformSupport/ArenaAllocator.hpp</a>&gt;</font>
00068 
00069 
00070 
00071 <font class="preprocessor">#include &lt;<a class="code" href="XalanSourceTreeComment.hpp.html">XalanSourceTree/XalanSourceTreeComment.hpp</a>&gt;</font>
00072 
00073 
00074 
<a name="l00075"></a><a class="code" href="class_xalansourcetreecommentallocator.html">00075</a> <font class="keyword">class </font>XALAN_XALANSOURCETREE_EXPORT <a class="code" href="class_xalansourcetreecommentallocator.html">XalanSourceTreeCommentAllocator</a>
00076 {
00077 <font class="keyword">public</font>:
00078 
<a name="l00079"></a><a class="code" href="class_xalansourcetreecommentallocator.html#s0">00079</a>     <font class="keyword">typedef</font> <a class="code" href="class_xalansourcetreecomment.html">XalanSourceTreeComment</a>                  <a class="code" href="class_xalansourcetreeattr.html">ObjectType</a>;
00080 
00081 <font class="preprocessor">#if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS)
</font>00082 <font class="preprocessor"></font>    <font class="keyword">typedef</font> <a class="code" href="class_arenablock.html">ArenaBlock</a>&lt;<a class="code" href="class_xalansourcetreeattr.html">ObjectType</a>&gt;                  <a class="code" href="class_arenablock.html">ArenaBlockType</a>;
00083 
00084     <font class="keyword">typedef</font> <a class="code" href="class_arenaallocator.html">ArenaAllocator</a>&lt;<a class="code" href="class_xalansourcetreeattr.html">ObjectType</a>,
00085                            <a class="code" href="class_arenablock.html">ArenaBlockType</a>&gt;          <a class="code" href="class_arenaallocator.html">ArenaAllocatorType</a>;
00086 <font class="preprocessor">#else
</font><a name="l00087"></a><a class="code" href="class_xalansourcetreecommentallocator.html#s1">00087</a> <font class="preprocessor"></font>    <font class="keyword">typedef</font> <a class="code" href="class_arenaallocator.html">ArenaAllocator</a>&lt;<a class="code" href="class_xalansourcetreeattr.html">ObjectType</a>&gt;              <a class="code" href="class_arenaallocator.html">ArenaAllocatorType</a>;
00088 <font class="preprocessor">#endif
</font>00089 <font class="preprocessor"></font>
<a name="l00090"></a><a class="code" href="class_xalansourcetreecommentallocator.html#s2">00090</a>     <font class="keyword">typedef</font> ArenaAllocatorType::size_type           size_type;
00091 
00097     <a class="code" href="class_xalansourcetreecommentallocator.html#a0">XalanSourceTreeCommentAllocator</a>(size_type   theBlockCount);
00098 
00099     <a class="code" href="class_xalansourcetreecommentallocator.html#a1">~XalanSourceTreeCommentAllocator</a>();
00100 
00113     <a class="code" href="class_xalansourcetreeattr.html">ObjectType</a>*
00114     <a class="code" href="class_xalansourcetreecommentallocator.html#a2">create</a>(
00115             <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>&amp;       theData,
00116             <a class="code" href="class_xalansourcetreedocument.html">XalanSourceTreeDocument</a>*    theOwnerDocument,
00117             <a class="code" href="class_xalansourcetreeelement.html">XalanSourceTreeElement</a>*     theParentElement = 0,
00118             <a class="code" href="class_xalannode.html">XalanNode</a>*                  thePreviousSibling = 0,
00119             <a class="code" href="class_xalannode.html">XalanNode</a>*                  theNextSibling = 0,
00120             <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>                theIndex = 0);
00121     
00125     <font class="keywordtype">void</font>
00126     <a class="code" href="class_xalansourcetreecommentallocator.html#a3">reset</a>();
00127 
00134     size_type
<a name="l00135"></a><a class="code" href="class_xalansourcetreecommentallocator.html#a4">00135</a>     <a class="code" href="class_xalansourcetreecommentallocator.html#a4">getBlockCount</a>()<font class="keyword"> const
</font>00136 <font class="keyword">    </font>{
00137         <font class="keywordflow">return</font> m_allocator.<a class="code" href="class_arenaallocator.html#a4">getBlockCount</a>();
00138     }
00139 
00145     size_type
<a name="l00146"></a><a class="code" href="class_xalansourcetreecommentallocator.html#a5">00146</a>     <a class="code" href="class_xalansourcetreecommentallocator.html#a5">getBlockSize</a>()<font class="keyword"> const
</font>00147 <font class="keyword">    </font>{
00148         <font class="keywordflow">return</font> m_allocator.<a class="code" href="class_arenaallocator.html#a2">getBlockSize</a>();
00149     }
00150 
00151 <font class="keyword">private</font>:
00152 
00153     <font class="comment">// Not implemented...</font>
00154     <a class="code" href="class_xalansourcetreecommentallocator.html#a0">XalanSourceTreeCommentAllocator</a>(<font class="keyword">const</font> <a class="code" href="class_xalansourcetreecommentallocator.html">XalanSourceTreeCommentAllocator</a>&amp;);
00155 
00156     <a class="code" href="class_xalansourcetreecommentallocator.html">XalanSourceTreeCommentAllocator</a>&amp;
00157     operator=(<font class="keyword">const</font> <a class="code" href="class_xalansourcetreecommentallocator.html">XalanSourceTreeCommentAllocator</a>&amp;);
00158 
00159     <font class="comment">// Data members...</font>
00160     <a class="code" href="class_arenaallocator.html">ArenaAllocatorType</a>  m_allocator;
00161 };
00162 
00163 
00164 
00165 <font class="preprocessor">#endif  // XALANSOURCETREECOMMENTALLOCATOR_INCLUDE_GUARD_12455133
</font></div></pre><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++ XSL Transformer Version 1.1</B><BR>
			Copyright &copy; 2000, 2001 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>