// 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_GeneralFunction_HeaderFile #define _Expr_GeneralFunction_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Expr_GeneralFunction_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Handle_Expr_NamedUnknown_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif class Standard_OutOfRange; class Standard_DimensionMismatch; class Standard_NumericError; class Expr_NotEvaluable; class Expr_NamedUnknown; class Expr_Array1OfNamedUnknown; class TColStd_Array1OfReal; class TCollection_AsciiString; //! Defines the general purposes of any function.
class Expr_GeneralFunction : public MMgt_TShared { public: //! Returns the number of variables of .
Standard_EXPORT virtual Standard_Integer NbOfVariables() const = 0; //! Returns the variable denoted by in .
//! Raises OutOfRange if index > NbOfVariables.
Standard_EXPORT virtual Handle_Expr_NamedUnknown Variable(const Standard_Integer index) const = 0; //! Returns a copy of with the same form.
Standard_EXPORT virtual Handle_Expr_GeneralFunction Copy() const = 0; //! Returns Derivative of for variable .
Standard_EXPORT virtual Handle_Expr_GeneralFunction Derivative(const Handle(Expr_NamedUnknown)& var) const = 0; //! Returns Derivative of for variable with
//! degree .
Standard_EXPORT virtual Handle_Expr_GeneralFunction Derivative(const Handle(Expr_NamedUnknown)& var,const Standard_Integer deg) const = 0; //! Computes the value of with the given variables.
//! Raises NotEvaluable if does not match all variables
//! of .
Standard_EXPORT virtual Standard_Real Evaluate(const Expr_Array1OfNamedUnknown& vars,const TColStd_Array1OfReal& vals) const = 0; //! Tests if and are similar functions (same
//! name and same used expression).
Standard_EXPORT virtual Standard_Boolean IsIdentical(const Handle(Expr_GeneralFunction)& func) const = 0; //! Tests if is linear on variable on range
Standard_EXPORT virtual Standard_Boolean IsLinearOnVariable(const Standard_Integer index) const = 0; Standard_EXPORT virtual TCollection_AsciiString GetStringName() const = 0; DEFINE_STANDARD_RTTI(Expr_GeneralFunction) protected: private: }; // other Inline functions and methods (like "C++: function call" methods) #endif