Xalan-C++ API Reference 1.12.0
XNodeSetBase.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(XNODESETBASE_HEADER_GUARD_1357924680)
19#define XNODESETBASE_HEADER_GUARD_1357924680
20
21
22
23// Base include file. Must be first.
25
26
27
28// Base class header file.
30
31
32
35
36
37
38namespace XALAN_CPP_NAMESPACE {
39
40
41
42/**
43 * Class to hold XPath return types.
44 */
46{
47public:
48
50
52
53 virtual
55
56 // These methods are inherited from XObject ...
57
58
59 virtual const XalanDOMString&
61
62 virtual double
64
65 using ParentType::num;
66
67 virtual bool
69
70 virtual const XalanDOMString&
72
73 virtual const XalanDOMString&
74 str() const;
75
76 virtual void
80 MemberFunctionPtr function) const;
81
82 virtual void
85 MemberFunctionPtr function) const;
86
87 virtual void
91
92 virtual void
94
95 virtual double
97
98 virtual const XalanDocumentFragment&
99 rtree() const;
100
101 virtual const NodeRefListBase&
102 nodeset() const = 0;
103
104 virtual void
106
107 virtual void
109
110 virtual XalanNode*
111 item(size_type index) const = 0;
112
113 virtual size_type
114 getLength() const = 0;
115
116protected:
117
118 /**
119 * Create an XNodeSetBase
120 */
122
123 /**
124 * Create an XNodeSetBase from another.
125 *
126 * @param source object to copy
127 */
129 const XNodeSetBase& source,
130 MemoryManager& theMemoryManager);
131
132 void
134
135private:
136
137 // Not implemented...
138 XNodeSetBase();
141 operator=(const XNodeSetBase&);
142
143 // Data members...
145
146 mutable XalanDOMString m_cachedStringValue;
147
148 mutable double m_cachedNumberValue;
149};
150
151
152
153}
154
155
156
157#endif // XNODESETBASE_HEADER_GUARD_1357924680
#define XALAN_XPATH_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
A SAX-based formatter interface for the XSL processor.
Local implementation of NodeRefList.
Class to hold XPath return types.
virtual double num(XPathExecutionContext &executionContext) const
Cast result object to a number.
virtual void str(XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
Send the string value to a FormatterListener instance.
virtual const XalanDOMString & str() const
Cast result object to a string.
virtual void ProcessXObjectTypeCallback(XObjectTypeCallback &theCallbackObject)
Process a callback request for preferred type information.
XNodeSetBase(const XNodeSetBase &source, MemoryManager &theMemoryManager)
Create an XNodeSetBase from another.
virtual void str(XPathExecutionContext &executionContext, XalanDOMString &theBuffer) const
Append the string value directly a string.
virtual void str(FormatterListener &formatterListener, MemberFunctionPtr function) const
Send the string value to a FormatterListener instance.
virtual const NodeRefListBase & nodeset() const =0
Cast result object to a nodelist.
virtual double stringLength(XPathExecutionContext &executionContext) const
Get the length of the string value of the instance.
virtual bool boolean(XPathExecutionContext &executionContext) const
Cast result object to a boolean.
virtual size_type getLength() const =0
virtual const XalanDOMString & getTypeString() const
Given a request type, return the equivalent string.
virtual const XalanDOMString & str(XPathExecutionContext &executionContext) const
Cast result object to a string.
virtual void str(XalanDOMString &theBuffer) const
Append the string value directly a string.
virtual void ProcessXObjectTypeCallback(XObjectTypeCallback &theCallbackObject) const
Process a callback request for preferred type information.
virtual XalanNode * item(size_type index) const =0
virtual const XalanDocumentFragment & rtree() const
Cast result object to a result tree fragment.
NodeRefListBase::size_type size_type
XNodeSetBase(MemoryManager &theMemoryManager)
Create an XNodeSetBase.
The purpose of this class is to provide a way to get the "preferred" or closest matching type for XOb...
Class to hold XPath return types.
Definition XObject.hpp:64