Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanSourceTreeElementAAllocator.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(XALANSOURCETREEELEMENTAALLOCATOR_INCLUDE_GUARD_12455133)
18 #define XALANSOURCETREEELEMENTAALLOCATOR_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 
47 
48 #if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS)
49  typedef ArenaBlock<ObjectType> ArenaBlockType;
50 
51  typedef ArenaAllocator<ObjectType,
52  ArenaBlockType> ArenaAllocatorType;
53 #else
55 #endif
56 
58 
65 
67 
82  ObjectType*
83  create(
84  const XalanDOMString& theTagName,
85  XalanSourceTreeDocument* theOwnerDocument,
86  XalanSourceTreeAttr** theAttributes,
87  AttributesCountType theAttributeCount,
88  XalanNode* theParentNode = 0,
89  XalanNode* thePreviousSibling = 0,
90  XalanNode* theNextSibling = 0,
91  IndexType theIndex = 0);
92 
96  void
97  reset();
98 
105  size_type
107  {
108  return m_allocator.getBlockCount();
109  }
110 
116  size_type
117  getBlockSize() const
118  {
119  return m_allocator.getBlockSize();
120  }
121 
122 private:
123 
124  // Not implemented...
126 
128  operator=(const XalanSourceTreeElementAAllocator&);
129 
130  // Data members...
131  ArenaAllocatorType m_allocator;
132 };
133 
134 
135 
136 XALAN_CPP_NAMESPACE_END
137 
138 
139 
140 #endif // XALANSOURCETREEELEMENTAALLOCATOR_INCLUDE_GUARD_12455133
ArenaAllocator< ObjectType > ArenaAllocatorType
Definition: XalanSourceTreeElementAAllocator.hpp:54
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: XalanSourceTreeElementAAllocator.hpp:117
ArenaAllocatorType::size_type size_type
Definition: XalanSourceTreeElementAAllocator.hpp:57
ObjectType::IndexType IndexType
Definition: XalanSourceTreeElementAAllocator.hpp:44
Definition: ArenaBlock.hpp:36
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
size_type getBlockCount() const
Get size of an ArenaBlock, that is, the number of objects in each block.
Definition: XalanSourceTreeElementAAllocator.hpp:106
Definition: XalanSourceTreeElementAAllocator.hpp:38
Definition: XalanSourceTreeAttr.hpp:50
unsigned long AttributesCountType
Definition: XalanSourceTreeElementA.hpp:41
Definition: XalanDOMString.hpp:42
unsigned long IndexType
Definition: XalanNode.hpp:70
Definition: XalanSourceTreeDocument.hpp:73
XalanSourceTreeElementA ObjectType
Definition: XalanSourceTreeElementAAllocator.hpp:42
ObjectType::AttributesCountType AttributesCountType
Definition: XalanSourceTreeElementAAllocator.hpp:46
Definition: XalanSourceTreeElementA.hpp:37
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