Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanNodeListSurrogate.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(XALANNODELISTSURROGATE_HEADER_GUARD_1357924680)
17 #define XALANNODELISTSURROGATE_HEADER_GUARD_1357924680
18 
19 
20 
22 
23 
24 
26 
27 
28 
29 XALAN_CPP_NAMESPACE_BEGIN
30 
31 
32 
33 class XalanNode;
34 
35 
36 
37 /*
38  * <meta name="usage" content="experimental"/>
39  *
40  * Helper class for implementing the DOM NodeList interface.
41  *
42  * This class is experimental and subject to change!!
43  */
44 
46 {
47 public:
48 
49  XalanNodeListSurrogate(const XalanNode& theNode);
50 
52 
53  virtual
55 
58  {
59  m_node = theSource.m_node;
60 
61  XalanNodeList::operator=(theSource);
62 
63  return *this;
64  }
65 
66  bool
67  operator==(const XalanNodeListSurrogate& theRHS) const
68  {
69  return m_node == theRHS.m_node ? true : false;
70  }
71 
72  virtual XalanNode*
73  item(unsigned int index) const;
74 
75  virtual unsigned int
76  getLength() const;
77 
78 private:
79 
80  const XalanNode* m_node;
81 };
82 
83 
84 
85 XALAN_CPP_NAMESPACE_END
86 
87 
88 
89 #endif // !defined(XALANNODELISTSURROGATE_HEADER_GUARD_1357924680)
Definition: XalanNode.hpp:44
Definition: XalanNodeList.hpp:42
XalanNodeListSurrogate & operator=(const XalanNodeListSurrogate &theSource)
Definition: XalanNodeListSurrogate.hpp:57
Definition: XalanNodeListSurrogate.hpp:45
#define XALAN_DOM_EXPORT
Definition: XalanDOMDefinitions.hpp:35
XalanNodeList & operator=(const XalanNodeList &theSource)
bool operator==(const XalanNodeListSurrogate &theRHS) const
Definition: XalanNodeListSurrogate.hpp:67
virtual XalanNode * item(unsigned int index) const =0
Returns the indexth item in the collection.
virtual unsigned int getLength() const =0
Returns the number of nodes in the list.

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