Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanReferenceCountedObject.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 #if !defined(XALANREFERENCECOUNTEDOBJECT_HEADER_GUARD_1357924680)
17 #define XALANREFERENCECOUNTEDOBJECT_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
26 XALAN_CPP_NAMESPACE_BEGIN
27 
28 
29 
34 {
35 public:
36 
40  static void
41  addReference(XalanReferenceCountedObject* theInstance);
42 
46  static void
47  removeReference(XalanReferenceCountedObject* theInstance);
48 
49 protected:
50 
54  explicit
56 
57  virtual
59 
60  virtual void
61  referenced() = 0;
62 
63  virtual void
64  dereferenced() = 0;
65 
66  virtual unsigned int
68  {
69  return m_referenceCount;
70  }
71 
72 private:
73 
74  unsigned int m_referenceCount;
75 
76  // Not implemented...
78  operator=(const XalanReferenceCountedObject&);
79 
81 };
82 
83 
84 
85 XALAN_CPP_NAMESPACE_END
86 
87 
88 
89 #endif // XALANREFERENCECOUNTEDOBJECT_HEADER_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