Xalan-C++ API Reference 1.12.0
XalanNodeListSurrogate.hpp
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18#if !defined(XALANNODELISTSURROGATE_HEADER_GUARD_1357924680)
19#define XALANNODELISTSURROGATE_HEADER_GUARD_1357924680
20
21
22
24
25
26
28
29
30
31namespace XALAN_CPP_NAMESPACE {
32
33
34
35class XalanNode;
36
37
38
39/*
40 * <meta name="usage" content="deprecated"/>
41 *
42 * Helper class for implementing the DOM NodeList interface.
43 *
44 * This class is deprecated and should not be used!!
45 */
46
48{
49public:
50
52
54
55 virtual
57
60 {
61 m_node = theSource.m_node;
62
63 XalanNodeList::operator=(theSource);
64
65 return *this;
66 }
67
68 bool
70 {
71 return m_node == theRHS.m_node ? true : false;
72 }
73
74 virtual XalanNode*
75 item(XalanSize_t index) const;
76
77 virtual XalanSize_t
78 getLength() const;
79
80private:
81
82 const XalanNode* m_node;
83};
84
85
86
87}
88
89
90
91#endif // !defined(XALANNODELISTSURROGATE_HEADER_GUARD_1357924680)
#define XALAN_DOM_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
bool operator==(const XalanNodeListSurrogate &theRHS) const
XalanNodeListSurrogate & operator=(const XalanNodeListSurrogate &theSource)
XalanNodeListSurrogate(const XalanNodeListSurrogate &theSource)
virtual XalanNode * item(XalanSize_t index) const
Returns the indexth item in the collection.
virtual XalanSize_t getLength() const
Returns the number of nodes in the list.
XalanNodeListSurrogate(const XalanNode &theNode)