Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XercesAttrWrapperAllocator.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(XERCESATTRWRAPPERALLOCATOR_INCLUDE_GUARD_12455133)
18 #define XERCESATTRWRAPPERALLOCATOR_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 
44 #if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS)
45  typedef ArenaBlock<ObjectType> ArenaBlockType;
46 
47  typedef ArenaAllocator<ObjectType,
48  ArenaBlockType> ArenaAllocatorType;
49 #else
51 #endif
52 
54 
60  XercesAttrWrapperAllocator(MemoryManagerType& theManager, size_type theBlockCount);
61 
63 
72  ObjectType*
73  create(
74  const DOMAttrType* theXercesAttr,
75  const XercesWrapperNavigator& theNavigator);
76 
80  void
81  reset();
82 
89  size_type
90  getBlockCount() const
91  {
92  return m_allocator.getBlockCount();
93  }
94 
100  size_type
101  getBlockSize() const
102  {
103  return m_allocator.getBlockSize();
104  }
105 
106 private:
107 
108  // Not implemented...
110 
112  operator=(const XercesAttrWrapperAllocator&);
113 
114  // Data members...
115  ArenaAllocatorType m_allocator;
116 };
117 
118 
119 
120 XALAN_CPP_NAMESPACE_END
121 
122 
123 
124 #endif // XERCESATTRWRAPPERALLOCATOR_INCLUDE_GUARD_12455133
Definition: XercesAttrWrapperAllocator.hpp:38
Definition: XercesAttrWrapper.hpp:47
XercesAttrWrapper ObjectType
Definition: XercesAttrWrapperAllocator.hpp:42
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
size_type getBlockCount() const
Get size of an ArenaBlock, that is, the number of objects in each block.
Definition: XercesAttrWrapperAllocator.hpp:90
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition: XercesParserLiaisonDefinitions.hpp:37
size_type getBlockSize() const
Get the number of ArenaBlocks currently allocated.
Definition: XercesAttrWrapperAllocator.hpp:101
Definition: ArenaBlock.hpp:36
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER DOMAttr DOMAttrType
Definition: XercesWrapperTypes.hpp:51
ArenaAllocator< ObjectType > ArenaAllocatorType
Definition: XercesAttrWrapperAllocator.hpp:50
Definition: ArenaAllocator.hpp:45
XALAN_CPP_NAMESPACE_BEGIN typedef size_t size_type
Definition: XalanMap.hpp:44
ArenaAllocatorType::size_type size_type
Definition: XercesAttrWrapperAllocator.hpp:53
Definition: XercesWrapperNavigator.hpp:53
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