Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ElemForEach.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(XALAN_ELEMFOREACH_HEADER_GUARD) 00017 #define XALAN_ELEMFOREACH_HEADER_GUARD 00018 00019 00020 00021 // Base include file. Must be first. 00022 #include "XSLTDefinitions.hpp" 00023 00024 00025 00026 #include <vector> 00027 00028 00029 00030 // Base class header file. 00031 #include "ElemTemplateElement.hpp" 00032 00033 00034 00035 #include <xalanc/XPath/NodeRefListBase.hpp> 00036 00037 00038 00039 #include "Constants.hpp" 00040 00041 00042 00043 XALAN_CPP_NAMESPACE_BEGIN 00044 00045 00046 00047 class ElemSort; 00048 class ElemTemplate; 00049 class NodeSorter; 00050 class XPath; 00051 00052 00053 00054 class ElemForEach: public ElemTemplateElement 00055 { 00056 public: 00057 00067 ElemForEach( 00068 StylesheetConstructionContext& constructionContext, 00069 Stylesheet& stylesheetTree, 00070 const AttributeListType& atts, 00071 int lineNumber, 00072 int columnNumber); 00073 00074 virtual 00075 ~ElemForEach(); 00076 00077 #if defined(XALAN_NO_STD_NAMESPACE) 00078 typedef vector<ElemSort*> SortElemsVectorType; 00079 #else 00080 typedef std::vector<ElemSort*> SortElemsVectorType; 00081 #endif 00082 00083 00084 // These methods are inherited from ElemTemplateElement ... 00085 00086 virtual const XalanDOMString& 00087 getElementName() const; 00088 00089 virtual void 00090 processSortElement( 00091 StylesheetConstructionContext& constructionContext, 00092 Stylesheet& theStylesheet, 00093 const AttributeListType& atts, 00094 const LocatorType* locator = 0); 00095 00096 virtual void 00097 postConstruction( 00098 StylesheetConstructionContext& constructionContext, 00099 const NamespacesHandler& theParentHandler); 00100 00101 virtual void 00102 execute(StylesheetExecutionContext& executionContext) const; 00103 00104 virtual const XPath* 00105 getXPath(unsigned int index = 0) const; 00106 00107 protected: 00108 00118 ElemForEach( 00119 StylesheetConstructionContext& constructionContext, 00120 Stylesheet& stylesheetTree, 00121 int lineNumber, 00122 int columnNumber, 00123 int xslToken); 00124 00132 void 00133 transformSelectedChildren( 00134 StylesheetExecutionContext& executionContext, 00135 const ElemTemplateElement* theTemplate) const; 00136 00145 void 00146 transformSelectedChildren( 00147 StylesheetExecutionContext& executionContext, 00148 const ElemTemplateElement* theTemplate, 00149 const NodeRefListBase& sourceNodes, 00150 NodeRefListBase::size_type sourceNodesCount) const; 00151 00161 virtual void 00162 selectAndSortChildren( 00163 StylesheetExecutionContext& executionContext, 00164 const ElemTemplateElement* theTemplate, 00165 NodeSorter* sorter, 00166 int selectStackFrameIndex) const; 00167 00168 const XPath* m_selectPattern; 00169 00170 private: 00171 00172 SortElemsVectorType m_sortElems; 00173 00174 SortElemsVectorType::size_type m_sortElemsCount; 00175 00176 }; 00177 00178 00179 00180 XALAN_CPP_NAMESPACE_END 00181 00182 00183 00184 #endif // XALAN_ELEMFOREACH_HEADER_GUARD

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.8
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.