Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XStringAllocator.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(XSTRINGALLOCATOR_INCLUDE_GUARD_1357924680)
18 #define XSTRINGALLOCATOR_INCLUDE_GUARD_1357924680
19 
20 
21 
22 // Base include file. Must be first.
24 
25 
26 
27 #include <xalanc/XPath/XString.hpp>
28 
29 
30 
32 
33 
34 
35 XALAN_CPP_NAMESPACE_BEGIN
36 
37 
38 
40 {
41 public:
42 
44 
47 
53  XStringAllocator(MemoryManagerType& theManager, size_type theBlockCount);
54 
56 
65  createString(const XalanDOMString& theString);
66 
75  createString(const XalanDOMChar* theString);
76 
86  createString(
87  const XalanDOMChar* theString,
88  unsigned int theLength);
89 
93  bool
94  destroy(string_type* theString);
95 
99  bool
100  ownsObject(const string_type* theObject)
101  {
102  return m_allocator.ownsObject(theObject);
103  }
104 
108  void
109  reset();
110 
117  size_type
118  getBlockCount() const
119  {
120  return m_allocator.getBlockCount();
121  }
122 
128  size_type
129  getBlockSize() const
130  {
131  return m_allocator.getBlockSize();
132  }
133 
134 private:
135 
136  // Not implemented...
138 
140  operator=(const XStringAllocator&);
141 
142  // Data members...
143  ArenaAllocatorType m_allocator;
144 };
145 
146 
147 
148 XALAN_CPP_NAMESPACE_END
149 
150 
151 
152 #endif // XSTRINGALLOCATOR_INCLUDE_GUARD_1357924680

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