Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanElemVariableAllocator.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(XALANELEMVARIABLEALLOCATOR_INCLUDE_GUARD_12455133)
18 #define XALANELEMVARIABLEALLOCATOR_INCLUDE_GUARD_12455133
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 
45 #if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS)
46  typedef ArenaBlock<data_type> ArenaBlockType;
47  typedef ArenaAllocator<data_type,
48  ArenaBlockType> ArenaAllocatorType;
49 #else
51 #endif
52 
54 
60  XalanElemVariableAllocator(MemoryManagerType& theManager, size_type theBlockCount);
61 
63 
75  data_type*
76  create(
77  StylesheetConstructionContext& constructionContext,
78  Stylesheet& stylesheetTree,
79  const AttributeListType& atts,
80  int lineNumber,
81  int columnNumber);
82 
86  bool
87  ownsObject(const data_type* theObject)
88  {
89  return m_allocator.ownsObject(theObject);
90  }
91 
95  void
97  {
98  m_allocator.reset();
99  }
100 
106  size_type
108  {
109  return m_allocator.getBlockCount();
110  }
111 
118  size_type
119  getBlockSize() const
120  {
121  return m_allocator.getBlockSize();
122  }
123 
124 private:
125 
126  // Not implemented...
128 
130  operator=(const XalanElemVariableAllocator&);
131 
132  // Data members...
133  ArenaAllocatorType m_allocator;
134 };
135 
136 
137 
138 XALAN_CPP_NAMESPACE_END
139 
140 
141 
142 #endif // XALANELEMVARIABLEALLOCATOR_INCLUDE_GUARD_12455133

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