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(XERCESELEMENTBRIDGEALLOCATOR_INCLUDE_GUARD_12455133) 00018 #define XERCESELEMENTBRIDGEALLOCATOR_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/Deprecated/XercesElementBridge.hpp> 00031 00032 00033 00034 XALAN_CPP_NAMESPACE_BEGIN 00035 00036 00042 class XALAN_XERCESPARSERLIAISON_EXPORT XercesElementBridgeAllocator 00043 { 00044 public: 00045 00046 typedef XercesElementBridge ObjectType; 00047 00048 00049 #if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS) 00050 typedef ArenaBlock<ObjectType> ArenaBlockType; 00051 00052 typedef ArenaAllocator<ObjectType, 00053 ArenaBlockType> ArenaAllocatorType; 00054 #else 00055 typedef ArenaAllocator<ObjectType> ArenaAllocatorType; 00056 #endif 00057 00058 typedef ArenaAllocatorType::size_type size_type; 00059 00065 XercesElementBridgeAllocator(size_type theBlockCount); 00066 00067 ~XercesElementBridgeAllocator(); 00068 00077 ObjectType* 00078 create( 00079 const DOM_ElementType& theXercesElement, 00080 const XercesBridgeNavigator& theNavigator); 00081 00085 void 00086 reset(); 00087 00094 size_type 00095 getBlockCount() const 00096 { 00097 return m_allocator.getBlockCount(); 00098 } 00099 00105 size_type 00106 getBlockSize() const 00107 { 00108 return m_allocator.getBlockSize(); 00109 } 00110 00111 00112 private: 00113 00114 // Not implemented... 00115 XercesElementBridgeAllocator(const XercesElementBridgeAllocator&); 00116 00117 XercesElementBridgeAllocator& 00118 operator=(const XercesElementBridgeAllocator&); 00119 00120 // Data members... 00121 ArenaAllocatorType m_allocator; 00122 }; 00123 00124 00125 00126 XALAN_CPP_NAMESPACE_END 00127 00128 00129 00130 #endif // XERCESELEMENTBRIDGEALLOCATOR_INCLUDE_GUARD_12455133
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.10 |
|