// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Expr_BinaryExpression_HeaderFile #define _Expr_BinaryExpression_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Expr_BinaryExpression_HeaderFile #include #endif #ifndef _Handle_Expr_GeneralExpression_HeaderFile #include #endif #ifndef _Expr_GeneralExpression_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_Expr_NamedUnknown_HeaderFile #include #endif class Expr_GeneralExpression; class Standard_OutOfRange; class Standard_NumericError; class Expr_InvalidOperand; class Expr_NamedUnknown; //! Defines all binary expressions. The order of the two
//! operands is significant.
class Expr_BinaryExpression : public Expr_GeneralExpression { public: const Handle_Expr_GeneralExpression& FirstOperand() const; const Handle_Expr_GeneralExpression& SecondOperand() const; //! Sets first operand of
//! Raises InvalidOperand if exp = me
Standard_EXPORT void SetFirstOperand(const Handle(Expr_GeneralExpression)& exp) ; //! Sets second operand of
//! Raises InvalidOperand if contains .
Standard_EXPORT void SetSecondOperand(const Handle(Expr_GeneralExpression)& exp) ; //! returns the number of sub-expressions contained
//! in ( >= 0)
Standard_EXPORT Standard_Integer NbSubExpressions() const; //! returns the -th sub-expression of
//! raises OutOfRange if > NbSubExpressions(me)
Standard_EXPORT const Handle_Expr_GeneralExpression& SubExpression(const Standard_Integer I) const; //! Does contain NamedUnknown ?
Standard_EXPORT Standard_Boolean ContainsUnknowns() const; //! Tests if contains .
Standard_EXPORT Standard_Boolean Contains(const Handle(Expr_GeneralExpression)& exp) const; //! Replaces all occurences of with in .
//! Raises InvalidOperand if contains .
Standard_EXPORT void Replace(const Handle(Expr_NamedUnknown)& var,const Handle(Expr_GeneralExpression)& with) ; //! Returns a GeneralExpression after replacement of
//! NamedUnknowns by an associated expression and after
//! values computation.
Standard_EXPORT Handle_Expr_GeneralExpression Simplified() const; DEFINE_STANDARD_RTTI(Expr_BinaryExpression) protected: //! Sets first operand of
Standard_EXPORT void CreateFirstOperand(const Handle(Expr_GeneralExpression)& exp) ; //! Sets second operand of
//! Raises InvalidOperand if contains .
Standard_EXPORT void CreateSecondOperand(const Handle(Expr_GeneralExpression)& exp) ; private: Handle_Expr_GeneralExpression myFirstOperand; Handle_Expr_GeneralExpression mySecondOperand; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif