## 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

# XercesTextWrapperAllocator.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(XERCESTEXTWRAPPERALLOCATOR_INCLUDE_GUARD_12455133)
    00018 #define XERCESTEXTWRAPPERALLOCATOR_INCLUDE_GUARD_12455133
    00019
    00020
    00021
    00022 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp>
    00023
    00024
    00025
    00026 #include <xalanc/PlatformSupport/ArenaAllocator.hpp>
    00027
    00028
    00029
    00030 #include <xalanc/XercesParserLiaison/XercesTextWrapper.hpp>
    00031 #include <xalanc/XercesParserLiaison/XercesWrapperTypes.hpp>
    00032
    00033
    00034
    00035 XALAN_CPP_NAMESPACE_BEGIN
    00036
    00037
    00038
    00039 class XALAN_XERCESPARSERLIAISON_EXPORT XercesTextWrapperAllocator
    00040 {
    00041 public:
    00042
    00043     typedef XercesTextWrapper                       ObjectType;
    00044
    00045 #if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS)
    00046     typedef ArenaBlock<ObjectType>                  ArenaBlockType;
    00047
    00048     typedef ArenaAllocator<ObjectType,
    00049                            ArenaBlockType>          ArenaAllocatorType;
    00050 #else
    00051     typedef ArenaAllocator<ObjectType>              ArenaAllocatorType;
    00052 #endif
    00053
    00054     typedef ArenaAllocatorType::size_type           size_type;
    00055
    00061     XercesTextWrapperAllocator(MemoryManagerType&  theManager, size_type    theBlockCount);
    00062
    00063     ~XercesTextWrapperAllocator();
    00064
    00073     ObjectType*
    00074     create(
    00075             const DOMTextType*              theXercesText,
    00076             const XercesWrapperNavigator&   theNavigator);
    00077
    00081     void
    00082     reset();
    00083
    00090     size_type
    00091     getBlockCount() const
    00092     {
    00093         return m_allocator.getBlockCount();
    00094     }
    00095
    00101     size_type
    00102     getBlockSize() const
    00103     {
    00104         return m_allocator.getBlockSize();
    00105     }
    00106
    00107 private:
    00108
    00109     // Not implemented...
    00110     XercesTextWrapperAllocator(const XercesTextWrapperAllocator&);
    00111
    00112     XercesTextWrapperAllocator&
    00113     operator=(const XercesTextWrapperAllocator&);
    00114
    00115     // Data members...
    00116     ArenaAllocatorType  m_allocator;
    00117 };
    00118
    00119
    00120
    00121 XALAN_CPP_NAMESPACE_END
    00122
    00123
    00124
    00125 #endif  // XERCESTEXTWRAPPERALLOCATOR_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.