|
|
|||
File indexing completed on 2025-12-16 10:34:30
0001 /* 0002 * Licensed to the Apache Software Foundation (ASF) under one or more 0003 * contributor license agreements. See the NOTICE file distributed with 0004 * this work for additional information regarding copyright ownership. 0005 * The ASF licenses this file to You under the Apache License, Version 2.0 0006 * (the "License"); you may not use this file except in compliance with 0007 * the License. You may obtain a copy of the License at 0008 * 0009 * http://www.apache.org/licenses/LICENSE-2.0 0010 * 0011 * Unless required by applicable law or agreed to in writing, software 0012 * distributed under the License is distributed on an "AS IS" BASIS, 0013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0014 * See the License for the specific language governing permissions and 0015 * limitations under the License. 0016 */ 0017 0018 /* 0019 * $Id$ 0020 */ 0021 0022 #if !defined(XERCESC_INCLUDE_GUARD_CMBINARYOP_HPP) 0023 #define XERCESC_INCLUDE_GUARD_CMBINARYOP_HPP 0024 0025 #include <xercesc/validators/common/CMNode.hpp> 0026 0027 XERCES_CPP_NAMESPACE_BEGIN 0028 0029 class CMStateSet; 0030 0031 class CMBinaryOp : public CMNode 0032 { 0033 public : 0034 // ----------------------------------------------------------------------- 0035 // Constructors 0036 // ----------------------------------------------------------------------- 0037 CMBinaryOp 0038 ( 0039 ContentSpecNode::NodeTypes type 0040 , CMNode* const leftToAdopt 0041 , CMNode* const rightToAdopt 0042 , unsigned int maxStates 0043 , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager 0044 ); 0045 ~CMBinaryOp(); 0046 0047 0048 // ----------------------------------------------------------------------- 0049 // Getter methods 0050 // ----------------------------------------------------------------------- 0051 const CMNode* getLeft() const; 0052 CMNode* getLeft(); 0053 const CMNode* getRight() const; 0054 CMNode* getRight(); 0055 0056 0057 // ----------------------------------------------------------------------- 0058 // Implementation of the public CMNode virtual interface 0059 // ----------------------------------------------------------------------- 0060 virtual void orphanChild(); 0061 0062 0063 protected : 0064 // ----------------------------------------------------------------------- 0065 // Implementation of the protected CMNode virtual interface 0066 // ----------------------------------------------------------------------- 0067 void calcFirstPos(CMStateSet& toSet) const; 0068 void calcLastPos(CMStateSet& toSet) const; 0069 0070 0071 private : 0072 // ----------------------------------------------------------------------- 0073 // Private data members 0074 // 0075 // fLeftChild 0076 // fRightChild 0077 // These are the references to the two nodes that are on either side 0078 // of this binary operation. We own them both. 0079 // ----------------------------------------------------------------------- 0080 CMNode* fLeftChild; 0081 CMNode* fRightChild; 0082 0083 // ----------------------------------------------------------------------- 0084 // Unimplemented constructors and operators 0085 // ----------------------------------------------------------------------- 0086 CMBinaryOp(const CMBinaryOp&); 0087 CMBinaryOp& operator=(const CMBinaryOp&); 0088 }; 0089 0090 XERCES_CPP_NAMESPACE_END 0091 0092 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|