00001 /* 00002 * Copyright 1999-2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #if !defined(XNODESETBASE_HEADER_GUARD_1357924680) 00017 #define XNODESETBASE_HEADER_GUARD_1357924680 00018 00019 00020 00021 // Base include file. Must be first. 00022 #include <xalanc/XPath/XPathDefinitions.hpp> 00023 00024 00025 00026 // Base class header file. 00027 #include <xalanc/XPath/XObject.hpp> 00028 00029 00030 00031 #include <xalanc/XPath/NodeRefListBase.hpp> 00032 #include <xalanc/XPath/XNodeSetResultTreeFragProxy.hpp> 00033 00034 00035 00036 XALAN_CPP_NAMESPACE_BEGIN 00037 00038 00039 00043 class XALAN_XPATH_EXPORT XNodeSetBase : public XObject 00044 { 00045 public: 00046 00047 typedef NodeRefListBase::size_type size_type; 00048 00049 virtual 00050 ~XNodeSetBase(); 00051 00052 MemoryManagerType& 00053 getMemoryManager()const 00054 { 00055 return m_cachedStringValue.getMemoryManager(); 00056 } 00057 00058 // These methods are inherited from XObject ... 00059 00060 00061 virtual const XalanDOMString& 00062 getTypeString() const; 00063 00064 virtual double 00065 num() const; 00066 00067 virtual bool 00068 boolean() const; 00069 00070 virtual const XalanDOMString& 00071 str() const; 00072 00073 virtual void 00074 str( 00075 FormatterListener& formatterListener, 00076 MemberFunctionPtr function) const; 00077 00078 virtual void 00079 str(XalanDOMString& theBuffer) const; 00080 00081 virtual double 00082 stringLength() const; 00083 00084 virtual const XalanDocumentFragment& 00085 rtree() const; 00086 00087 virtual const NodeRefListBase& 00088 nodeset() const = 0; 00089 00090 virtual void 00091 ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject); 00092 00093 virtual void 00094 ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject) const; 00095 00096 virtual XalanNode* 00097 item(size_type index) const = 0; 00098 00099 virtual size_type 00100 getLength() const = 0; 00101 00102 protected: 00103 00107 XNodeSetBase(MemoryManagerType& theManager); 00108 00114 XNodeSetBase(const XNodeSetBase& source, MemoryManagerType& theManager); 00115 00116 void 00117 clearCachedValues(); 00118 00119 private: 00120 00121 // Not implemented... 00122 XNodeSetBase(); 00123 XNodeSetBase(const XNodeSetBase&); 00124 XNodeSetBase& 00125 operator=(const XNodeSetBase&); 00126 00127 // Data members... 00128 XNodeSetResultTreeFragProxy m_proxy; 00129 00130 mutable XalanDOMString m_cachedStringValue; 00131 00132 mutable double m_cachedNumberValue; 00133 }; 00134 00135 00136 00137 XALAN_CPP_NAMESPACE_END 00138 00139 00140 00141 #endif // XNODESETBASE_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.10 |
|