Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XercesAttrWrapperAllocator.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(XERCESATTRWRAPPERALLOCATOR_INCLUDE_GUARD_12455133)
00018 #define XERCESATTRWRAPPERALLOCATOR_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/XercesAttrWrapper.hpp>
00031 
00032 
00033 
00034 XALAN_CPP_NAMESPACE_BEGIN
00035 
00036 
00037 
00038 class XALAN_XERCESPARSERLIAISON_EXPORT XercesAttrWrapperAllocator
00039 {
00040 public:
00041 
00042     typedef XercesAttrWrapper                       ObjectType;
00043 
00044 #if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS)
00045     typedef ArenaBlock<ObjectType>                  ArenaBlockType;
00046 
00047     typedef ArenaAllocator<ObjectType,
00048                            ArenaBlockType>          ArenaAllocatorType;
00049 #else
00050     typedef ArenaAllocator<ObjectType>              ArenaAllocatorType;
00051 #endif
00052 
00053     typedef ArenaAllocatorType::size_type           size_type;
00054 
00060     XercesAttrWrapperAllocator(MemoryManagerType&  theManager, size_type    theBlockCount);
00061 
00062     ~XercesAttrWrapperAllocator();
00063     
00072     ObjectType*
00073     create(
00074             const DOMAttrType*              theXercesAttr,
00075             const XercesWrapperNavigator&   theNavigator);
00076     
00080     void
00081     reset();
00082 
00089     size_type
00090     getBlockCount() const
00091     {
00092         return m_allocator.getBlockCount();
00093     }
00094 
00100     size_type
00101     getBlockSize() const
00102     {
00103         return m_allocator.getBlockSize();
00104     }
00105 
00106 private:
00107 
00108     // Not implemented...
00109     XercesAttrWrapperAllocator(const XercesAttrWrapperAllocator&);
00110 
00111     XercesAttrWrapperAllocator&
00112     operator=(const XercesAttrWrapperAllocator&);
00113 
00114     // Data members...
00115     ArenaAllocatorType  m_allocator;
00116 };
00117 
00118 
00119 
00120 XALAN_CPP_NAMESPACE_END
00121 
00122 
00123 
00124 #endif  // XERCESATTRWRAPPERALLOCATOR_INCLUDE_GUARD_12455133

Interpreting class diagrams

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

dot

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

Apache Logo