Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XNodeSetNodeProxy.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(XNODESETNODEPROXY_HEADER_GUARD_1357924680)
17 #define XNODESETNODEPROXY_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
26 // Base class header file.
28 
29 
30 
32 
33 
34 
35 XALAN_CPP_NAMESPACE_BEGIN
36 
37 
38 
43 {
44 public:
45 
49  XNodeSetNodeProxy(MemoryManagerType& theManager, XalanNode* theNode);
50 
56  XNodeSetNodeProxy(const XNodeSetNodeProxy& source, MemoryManagerType& theManager);
57 
58  virtual
60 
61  // These methods are inherited from XObject ...
62 
63  virtual const NodeRefListBase&
64  nodeset() const;
65 
66  virtual XalanNode*
67  item(size_type index) const;
68 
69  virtual size_type
70  getLength() const;
71 
72  // A proxy class to implement NodeRefListBase...
73  class Proxy : public NodeRefListBase
74  {
75  public:
76 
77  Proxy(XalanNode* theNode);
78 
79  virtual
80  ~Proxy();
81 
82  virtual XalanNode*
83  item(size_type index) const;
84 
85  virtual size_type
86  getLength() const;
87 
88  virtual size_type
89  indexOf(const XalanNode* theNode) const;
90 
92  };
93 
94 protected:
95 
96  virtual eObjectType
97  getRealType() const;
98 
99 private:
100 
101  // Not implemented...
103  operator=(const XNodeSetNodeProxy&);
104  XNodeSetNodeProxy(const XNodeSetNodeProxy& source);
105 
106 
107  // Data members...
108  const Proxy m_proxy;
109 };
110 
111 
112 
113 XALAN_CPP_NAMESPACE_END
114 
115 
116 
117 #endif // XNODESETNODEPROXY_HEADER_GUARD_1357924680
Definition: XalanNode.hpp:44
Definition: XNodeSetNodeProxy.hpp:73
virtual size_type getLength() const =0
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
eObjectType
Enumeration of possible object types.
Definition: XObject.hpp:70
XalanDOMString::size_type indexOf(const XalanDOMChar *theString, XalanDOMChar theChar)
Simulates the java String method indexOf().
Definition: DOMStringHelper.hpp:348
XalanNode * m_node
Definition: XNodeSetNodeProxy.hpp:91
Local implementation of NodeRefList.
Definition: NodeRefListBase.hpp:42
Class to hold XPath return types.
Definition: XNodeSetNodeProxy.hpp:42
virtual eObjectType getRealType() const
Tell what kind of class this is.
virtual const NodeRefListBase & nodeset() const =0
Cast result object to a nodelist.
unsigned int size_type
Definition: NodeRefListBase.hpp:56
virtual XalanNode * item(size_type index) const =0
NodeRefListBase::size_type size_type
Definition: XNodeSetBase.hpp:47
Class to hold XPath return types.
Definition: XNodeSetBase.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