Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XercesElementWrapperAllocator.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(XERCESELEMENTWRAPPERALLOCATOR_INCLUDE_GUARD_12455133)
18 #define XERCESELEMENTWRAPPERALLOCATOR_INCLUDE_GUARD_12455133
19 
20 
21 
23 
24 
25 
27 
28 
29 
32 
33 
34 
35 XALAN_CPP_NAMESPACE_BEGIN
36 
37 
38 
40 {
41 public:
42 
44 
45 #if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS)
46  typedef ArenaBlock<ObjectType> ArenaBlockType;
47 
48  typedef ArenaAllocator<ObjectType,
49  ArenaBlockType> ArenaAllocatorType;
50 #else
52 #endif
53 
55 
61  XercesElementWrapperAllocator(MemoryManagerType& theManager, size_type theBlockCount);
62 
64 
73  ObjectType*
74  create(
75  const DOMElementType* theXercesElement,
76  const XercesWrapperNavigator& theNavigator);
77 
81  void
82  reset();
83 
90  size_type
91  getBlockCount() const
92  {
93  return m_allocator.getBlockCount();
94  }
95 
101  size_type
102  getBlockSize() const
103  {
104  return m_allocator.getBlockSize();
105  }
106 
107 
108 private:
109 
110  // Not implemented...
112 
114  operator=(const XercesElementWrapperAllocator&);
115 
116  // Data members...
117  ArenaAllocatorType m_allocator;
118 };
119 
120 
121 
122 XALAN_CPP_NAMESPACE_END
123 
124 
125 
126 #endif // XERCESELEMENTWRAPPERALLOCATOR_INCLUDE_GUARD_12455133
size_type getBlockCount() const
Get size of an ArenaBlock, that is, the number of objects in each block.
Definition: XercesElementWrapperAllocator.hpp:91
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
XercesElementWrapper ObjectType
Definition: XercesElementWrapperAllocator.hpp:43
ArenaAllocatorType::size_type size_type
Definition: XercesElementWrapperAllocator.hpp:54
size_type getBlockSize() const
Get the number of ArenaBlocks currently allocated.
Definition: XercesElementWrapperAllocator.hpp:102
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition: XercesParserLiaisonDefinitions.hpp:37
Definition: ArenaBlock.hpp:36
Definition: XercesElementWrapperAllocator.hpp:39
Definition: ArenaAllocator.hpp:45
XALAN_CPP_NAMESPACE_BEGIN typedef size_t size_type
Definition: XalanMap.hpp:44
Definition: XercesWrapperNavigator.hpp:53
Definition: XercesElementWrapper.hpp:47
XERCES_CPP_NAMESPACE_QUALIFIER DOMElement DOMElementType
Definition: XercesWrapperTypes.hpp:60
ArenaAllocator< ObjectType > ArenaAllocatorType
Definition: XercesElementWrapperAllocator.hpp:51
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