Xalan-C++ API Reference
1.12.0
xalanc
XalanDOM
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
23
#include <
xalanc/XalanDOM/XalanDOMDefinitions.hpp
>
24
25
26
27
#include <
xalanc/XalanDOM/XalanNodeList.hpp
>
28
29
30
31
namespace
XALAN_CPP_NAMESPACE
{
32
33
34
35
class
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
47
class
XALAN_DOM_EXPORT
XalanNodeListSurrogate
:
public
XalanNodeList
48
{
49
public
:
50
51
XalanNodeListSurrogate
(
const
XalanNode
& theNode);
52
53
XalanNodeListSurrogate
(
const
XalanNodeListSurrogate
& theSource);
54
55
virtual
56
~
XalanNodeListSurrogate
();
57
58
XalanNodeListSurrogate
&
59
operator=
(
const
XalanNodeListSurrogate
& theSource)
60
{
61
m_node = theSource.m_node;
62
63
XalanNodeList::operator=(theSource);
64
65
return
*
this
;
66
}
67
68
bool
69
operator==
(
const
XalanNodeListSurrogate
& theRHS)
const
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
80
private
:
81
82
const
XalanNode
* m_node;
83
};
84
85
86
87
}
88
89
90
91
#endif // !defined(XALANNODELISTSURROGATE_HEADER_GUARD_1357924680)
xalanc::XalanNodeListSurrogate
Definition:
XalanNodeListSurrogate.hpp:47
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition:
XalanVersion.hpp:76
xalanc::XalanNodeListSurrogate::operator=
XalanNodeListSurrogate & operator=(const XalanNodeListSurrogate &theSource)
Definition:
XalanNodeListSurrogate.hpp:59
xalanc::XalanNode
Definition:
XalanNode.hpp:38
xalanc::XalanNodeListSurrogate::operator==
bool operator==(const XalanNodeListSurrogate &theRHS) const
Definition:
XalanNodeListSurrogate.hpp:69
xalanc::XalanNodeList
Definition:
XalanNodeList.hpp:36
XalanDOMDefinitions.hpp
XALAN_DOM_EXPORT
#define XALAN_DOM_EXPORT
Definition:
XalanDOMDefinitions.hpp:37
XalanNodeList.hpp
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:18 for Xalan-C++ API Reference by
1.8.17