00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #if !defined(XNODESETNODEPROXY_HEADER_GUARD_1357924680) 00019 #define XNODESETNODEPROXY_HEADER_GUARD_1357924680 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/XPath/XPathDefinitions.hpp> 00025 00026 00027 00028 // Base class header file. 00029 #include <xalanc/XPath/XNodeSetBase.hpp> 00030 00031 00032 00033 #include <xalanc/XPath/NodeRefListBase.hpp> 00034 00035 00036 00037 XALAN_CPP_NAMESPACE_BEGIN 00038 00039 00040 00041 /** 00042 * Class to hold XPath return types. 00043 */ 00044 class XALAN_XPATH_EXPORT XNodeSetNodeProxy : public XNodeSetBase 00045 { 00046 public: 00047 00048 /** 00049 * Create an XNodeSetNodeProxy 00050 */ 00051 XNodeSetNodeProxy(MemoryManager& theManager, XalanNode* theNode); 00052 00053 /** 00054 * Create an XNodeSetNodeProxy from another. 00055 * 00056 * @param source object to copy 00057 */ 00058 XNodeSetNodeProxy(const XNodeSetNodeProxy& source, MemoryManager& theManager); 00059 00060 virtual 00061 ~XNodeSetNodeProxy(); 00062 00063 // These methods are inherited from XObject ... 00064 00065 virtual const NodeRefListBase& 00066 nodeset() const; 00067 00068 virtual XalanNode* 00069 item(size_type index) const; 00070 00071 virtual size_type 00072 getLength() const; 00073 00074 // A proxy class to implement NodeRefListBase... 00075 class Proxy : public NodeRefListBase 00076 { 00077 public: 00078 00079 Proxy(XalanNode* theNode); 00080 00081 virtual 00082 ~Proxy(); 00083 00084 virtual XalanNode* 00085 item(size_type index) const; 00086 00087 virtual size_type 00088 getLength() const; 00089 00090 virtual size_type 00091 indexOf(const XalanNode* theNode) const; 00092 00093 XalanNode* m_node; 00094 }; 00095 00096 protected: 00097 00098 virtual eObjectType 00099 getRealType() const; 00100 00101 private: 00102 00103 // Not implemented... 00104 XNodeSetNodeProxy& 00105 operator=(const XNodeSetNodeProxy&); 00106 XNodeSetNodeProxy(const XNodeSetNodeProxy& source); 00107 00108 00109 // Data members... 00110 const Proxy m_proxy; 00111 }; 00112 00113 00114 00115 XALAN_CPP_NAMESPACE_END 00116 00117 00118 00119 #endif // XNODESETNODEPROXY_HEADER_GUARD_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|