Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

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

XNodeSetAllocator.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(XNODESETALLOCATOR_INCLUDE_GUARD_12455133) 00018 #define XNODESETALLOCATOR_INCLUDE_GUARD_12455133 00019 00020 00021 00022 // Base include file. Must be first. 00023 #include <xalanc/XPath/XPathDefinitions.hpp> 00024 00025 00026 00027 #include <xalanc/XPath/XNodeSet.hpp> 00028 00029 00030 00031 #include <xalanc/PlatformSupport/ReusableArenaAllocator.hpp> 00032 00033 00034 00035 XALAN_CPP_NAMESPACE_BEGIN 00036 00037 00038 00039 class XALAN_XPATH_EXPORT XNodeSetAllocator 00040 { 00041 public: 00042 00043 typedef XPathExecutionContext::BorrowReturnMutableNodeRefList BorrowReturnMutableNodeRefList; 00044 00045 typedef XNodeSet nodeset_type; 00046 00047 typedef ReusableArenaAllocator<nodeset_type> ArenaAllocatorType; 00048 typedef ArenaAllocatorType::size_type size_type; 00049 00055 XNodeSetAllocator(size_type theBlockCount); 00056 00057 ~XNodeSetAllocator(); 00058 00066 nodeset_type* 00067 createNodeSet(BorrowReturnMutableNodeRefList& value); 00068 00076 nodeset_type* 00077 clone(const XNodeSet& value); 00078 00082 bool 00083 destroy(nodeset_type* theNodeSet); 00084 00088 bool 00089 ownsObject(const nodeset_type* theObject) 00090 { 00091 return m_allocator.ownsObject(theObject); 00092 } 00093 00097 void 00098 reset(); 00099 00106 size_type 00107 getBlockCount() const 00108 { 00109 return m_allocator.getBlockCount(); 00110 } 00111 00117 size_type 00118 getBlockSize() const 00119 { 00120 return m_allocator.getBlockSize(); 00121 } 00122 00123 00124 private: 00125 00126 // Not implemented... 00127 XNodeSetAllocator(const XNodeSetAllocator&); 00128 00129 XNodeSetAllocator& 00130 operator=(const XNodeSetAllocator&); 00131 00132 // Data members... 00133 ArenaAllocatorType m_allocator; 00134 }; 00135 00136 00137 00138 XALAN_CPP_NAMESPACE_END 00139 00140 00141 00142 #endif // XNODESETALLOCATOR_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.8
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.