## Xalan-C++ API Documentation

### The Xalan C++ XSLT Processor Version 1.9

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

# XalanSourceTreeProcessingInstructionAllocator.hpp

Go to the documentation of this file.

    00001 /*
    00002  * Copyright 1999-2004 The Apache Software Foundation.
    00003  *
    00004  * Licensed under the Apache License, Version 2.0 (the "License");
    00005  * you may not use this file except in compliance with the License.
    00006  * You may obtain a copy of the License at
    00007  *
    00008  *     http://www.apache.org/licenses/LICENSE-2.0
    00009  *
    00010  * Unless required by applicable law or agreed to in writing, software
    00011  * distributed under the License is distributed on an "AS IS" BASIS,
    00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00013  * See the License for the specific language governing permissions and
    00014  * limitations under the License.
    00015  */
    00016
    00017 #if !defined(XALANSOURCETREEPROCESSINGINSTRUCTIONALLOCATOR_INCLUDE_GUARD_12455133)
    00018 #define XALANSOURCETREEPROCESSINGINSTRUCTIONALLOCATOR_INCLUDE_GUARD_12455133
    00019
    00020
    00021
    00022 #include <xalanc/XalanSourceTree/XalanSourceTreeDefinitions.hpp>
    00023
    00024
    00025
    00026 #include <xalanc/PlatformSupport/ArenaAllocator.hpp>
    00027
    00028
    00029
    00030 #include <xalanc/XalanSourceTree/XalanSourceTreeProcessingInstruction.hpp>
    00031
    00032
    00033
    00034 XALAN_CPP_NAMESPACE_BEGIN
    00035
    00036
    00037
    00038 class XALAN_XALANSOURCETREE_EXPORT XalanSourceTreeProcessingInstructionAllocator
    00039 {
    00040 public:
    00041
    00042     typedef XalanSourceTreeProcessingInstruction    ObjectType;
    00043
    00044     typedef ObjectType::IndexType                   IndexType;
    00045
    00046 #if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS)
    00047     typedef ArenaBlock<ObjectType>                  ArenaBlockType;
    00048
    00049     typedef ArenaAllocator<ObjectType,
    00050                            ArenaBlockType>          ArenaAllocatorType;
    00051 #else
    00052     typedef ArenaAllocator<ObjectType>              ArenaAllocatorType;
    00053 #endif
    00054
    00055     typedef ArenaAllocatorType::size_type           size_type;
    00056
    00062     XalanSourceTreeProcessingInstructionAllocator(MemoryManagerType&  theManager, size_type theBlockCount);
    00063
    00064     ~XalanSourceTreeProcessingInstructionAllocator();
    00065
    00079     ObjectType*
    00080     create(
    00081             const XalanDOMString&       theTarget,
    00082             const XalanDOMString&       theData,
    00083             XalanSourceTreeDocument*    theOwnerDocument,
    00084             XalanNode*                  theParentNode = 0,
    00085             XalanNode*                  thePreviousSibling = 0,
    00086             XalanNode*                  theNextSibling = 0,
    00087             IndexType                   theIndex = 0);
    00088
    00092     void
    00093     reset();
    00094
    00101     size_type
    00102     getBlockCount() const
    00103     {
    00104         return m_allocator.getBlockCount();
    00105     }
    00106
    00112     size_type
    00113     getBlockSize() const
    00114     {
    00115         return m_allocator.getBlockSize();
    00116     }
    00117
    00118 private:
    00119
    00120     // Not implemented...
    00121     XalanSourceTreeProcessingInstructionAllocator(const XalanSourceTreeProcessingInstructionAllocator&);
    00122
    00123     XalanSourceTreeProcessingInstructionAllocator&
    00124     operator=(const XalanSourceTreeProcessingInstructionAllocator&);
    00125
    00126     // Data members...
    00127     ArenaAllocatorType  m_allocator;
    00128 };
    00129
    00130
    00131
    00132 XALAN_CPP_NAMESPACE_END
    00133
    00134
    00135
    00136 #endif  // XALANSOURCETREEPROCESSINGINSTRUCTIONALLOCATOR_INCLUDE_GUARD_12455133

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.9 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.