Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XTokenStringAdapterAllocator.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(XTOKENSTRINGADAPTERALLOCATOR_INCLUDE_GUARD_1357924680)
18 #define XTOKENSTRINGADAPTERALLOCATOR_INCLUDE_GUARD_1357924680
19 
20 
21 
22 // Base include file. Must be first.
24 
25 
26 
28 
29 
30 
32 
33 
34 
35 XALAN_CPP_NAMESPACE_BEGIN
36 
37 
38 
40 {
41 public:
42 
44 
47 
53  XTokenStringAdapterAllocator(MemoryManagerType& theManager, size_type theBlockCount);
54 
56 
65  create(const XToken& theXToken);
66 
67 
71  bool
72  destroy(object_type* theString);
73 
77  bool
78  ownsObject(const object_type* theObject)
79  {
80  return m_allocator.ownsObject(theObject);
81  }
82 
86  void
87  reset();
88 
95  size_type
96  getBlockCount() const
97  {
98  return m_allocator.getBlockCount();
99  }
100 
106  size_type
107  getBlockSize() const
108  {
109  return m_allocator.getBlockSize();
110  }
111 
112 private:
113 
114  // Not implemented...
116 
118  operator=(const XTokenStringAdapterAllocator&);
119 
120  // Data members...
121  ArenaAllocatorType m_allocator;
122 };
123 
124 
125 
126 XALAN_CPP_NAMESPACE_END
127 
128 
129 
130 #endif // XTOKENSTRINGADAPTERALLOCATOR_INCLUDE_GUARD_1357924680
Definition: XToken.hpp:35
Definition: XTokenStringAdapter.hpp:43
ArenaAllocatorType::size_type size_type
Definition: XTokenStringAdapterAllocator.hpp:46
size_type getBlockSize() const
Get the number of ArenaBlocks currently allocated.
Definition: XTokenStringAdapterAllocator.hpp:107
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
ReusableArenaAllocator< object_type > ArenaAllocatorType
Definition: XTokenStringAdapterAllocator.hpp:45
size_type getBlockCount() const
Get size of an ArenaBlock, that is, the number of objects in each block.
Definition: XTokenStringAdapterAllocator.hpp:96
bool ownsObject(const object_type *theObject)
Determine if an object is owned by the allocator...
Definition: XTokenStringAdapterAllocator.hpp:78
XALAN_CPP_NAMESPACE_BEGIN typedef size_t size_type
Definition: XalanMap.hpp:44
Definition: XTokenStringAdapterAllocator.hpp:39
XTokenStringAdapter object_type
Definition: XTokenStringAdapterAllocator.hpp:43
#define XALAN_XPATH_EXPORT
Definition: XPathDefinitions.hpp:33

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