Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanSourceTreeElementNANSAllocator.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #if !defined(XALANSOURCETREEELEMENTNANSALLOCATOR_INCLUDE_GUARD_12455133)
18 #define XALANSOURCETREEELEMENTNANSALLOCATOR_INCLUDE_GUARD_12455133
19 
20 
21 
23 
24 
25 
27 
28 
29 
31 
32 
33 
34 XALAN_CPP_NAMESPACE_BEGIN
35 
36 
37 
39 {
40 public:
41 
43 
45 
46 #if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS)
47  typedef ArenaBlock<ObjectType> ArenaBlockType;
48 
49  typedef ArenaAllocator<ObjectType,
50  ArenaBlockType> ArenaAllocatorType;
51 #else
53 #endif
54 
56 
63 
65 
83  ObjectType*
84  create(
85  const XalanDOMString& theTagName,
86  const XalanDOMString& theLocalName,
87  const XalanDOMString& theNamespaceURI,
88  const XalanDOMString& thePrefix,
89  XalanSourceTreeDocument* theOwnerDocument,
90  XalanNode* theParentNode = 0,
91  XalanNode* thePreviousSibling = 0,
92  XalanNode* theNextSibling = 0,
93  IndexType theIndex = 0);
94 
98  void
99  reset();
100 
107  size_type
109  {
110  return m_allocator.getBlockCount();
111  }
112 
118  size_type
119  getBlockSize() const
120  {
121  return m_allocator.getBlockSize();
122  }
123 
124 private:
125 
126  // Not implemented...
128 
130  operator=(const XalanSourceTreeElementNANSAllocator&);
131 
132  // Data members...
133  ArenaAllocatorType m_allocator;
134 };
135 
136 
137 
138 XALAN_CPP_NAMESPACE_END
139 
140 
141 
142 #endif // XALANSOURCETREEELEMENTANSALLOCATOR_INCLUDE_GUARD_12455133
Definition: XalanNode.hpp:44
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
size_type getBlockSize() const
Get the number of ArenaBlocks currently allocated.
Definition: XalanSourceTreeElementNANSAllocator.hpp:119
Definition: XalanSourceTreeElementNANS.hpp:33
Definition: ArenaBlock.hpp:36
ArenaAllocatorType::size_type size_type
Definition: XalanSourceTreeElementNANSAllocator.hpp:55
ArenaAllocator< ObjectType > ArenaAllocatorType
Definition: XalanSourceTreeElementNANSAllocator.hpp:52
XalanSourceTreeElementNANS ObjectType
Definition: XalanSourceTreeElementNANSAllocator.hpp:42
Definition: ArenaAllocator.hpp:45
#define XALAN_XALANSOURCETREE_EXPORT
Definition: XalanSourceTreeDefinitions.hpp:33
XALAN_CPP_NAMESPACE_BEGIN typedef size_t size_type
Definition: XalanMap.hpp:44
Definition: XalanSourceTreeElementNANSAllocator.hpp:38
Definition: XalanDOMString.hpp:42
unsigned long IndexType
Definition: XalanNode.hpp:70
Definition: XalanSourceTreeDocument.hpp:73
size_type getBlockCount() const
Get size of an ArenaBlock, that is, the number of objects in each block.
Definition: XalanSourceTreeElementNANSAllocator.hpp:108
ObjectType::IndexType IndexType
Definition: XalanSourceTreeElementNANSAllocator.hpp:44
ArenaBlockType::size_type size_type
Definition: ArenaAllocator.hpp:53

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