## Xalan-C++ API Documentation

### The Xalan C++ XSLT Processor Version 1.10

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members

# XalanNodeListSurrogate.hpp

Go to the documentation of this file.

    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(XALANNODELISTSURROGATE_HEADER_GUARD_1357924680)
    00017 #define XALANNODELISTSURROGATE_HEADER_GUARD_1357924680
    00018
    00019
    00020
    00021 #include <xalanc/XalanDOM/XalanDOMDefinitions.hpp>
    00022
    00023
    00024
    00025 #include <xalanc/XalanDOM/XalanNodeList.hpp>
    00026
    00027
    00028
    00029 XALAN_CPP_NAMESPACE_BEGIN
    00030
    00031
    00032
    00033 class XalanNode;
    00034
    00035
    00036
    00037 /*
    00038  * <meta name="usage" content="experimental"/>
    00039  *
    00040  * Helper class for implementing the DOM NodeList interface.
    00041  *
    00042  * This class is experimental and subject to change!!
    00043  */
    00044
    00045 class XALAN_DOM_EXPORT XalanNodeListSurrogate : public XalanNodeList
    00046 {
    00047 public:
    00048
    00049     XalanNodeListSurrogate(const XalanNode&     theNode);
    00050
    00051     XalanNodeListSurrogate(const XalanNodeListSurrogate&    theSource);
    00052
    00053     virtual
    00054     ~XalanNodeListSurrogate();
    00055
    00056     XalanNodeListSurrogate&
    00057     operator=(const XalanNodeListSurrogate& theSource)
    00058     {
    00059         m_node = theSource.m_node;
    00060
    00061         XalanNodeList::operator=(theSource);
    00062
    00063         return *this;
    00064     }
    00065
    00066     bool
    00067     operator==(const XalanNodeListSurrogate&    theRHS) const
    00068     {
    00069         return m_node == theRHS.m_node ? true : false;
    00070     }
    00071
    00072     virtual XalanNode*
    00073     item(unsigned int   index) const;
    00074
    00075     virtual unsigned int
    00076     getLength() const;
    00077
    00078 private:
    00079
    00080     const XalanNode*    m_node;
    00081 };
    00082
    00083
    00084
    00085 XALAN_CPP_NAMESPACE_END
    00086
    00087
    00088
    00089 #endif  // !defined(XALANNODELISTSURROGATE_HEADER_GUARD_1357924680)

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.10 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.