// 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_NamedFunction_HeaderFile #define _Expr_NamedFunction_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Expr_NamedFunction_HeaderFile #include #endif #ifndef _TCollection_AsciiString_HeaderFile #include #endif #ifndef _Handle_Expr_GeneralExpression_HeaderFile #include #endif #ifndef _Expr_Array1OfNamedUnknown_HeaderFile #include #endif #ifndef _Expr_GeneralFunction_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Handle_Expr_NamedUnknown_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Handle_Expr_GeneralFunction_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif class Expr_GeneralExpression; class Standard_OutOfRange; class Standard_DimensionMismatch; class Standard_NumericError; class Expr_NotEvaluable; class TCollection_AsciiString; class Expr_Array1OfNamedUnknown; class Expr_NamedUnknown; class TColStd_Array1OfReal; class Expr_GeneralFunction; class Expr_NamedFunction : public Expr_GeneralFunction { public: //! Creates a function of given variables with name
//! defined by the expression .
Standard_EXPORT Expr_NamedFunction(const TCollection_AsciiString& name,const Handle(Expr_GeneralExpression)& exp,const Expr_Array1OfNamedUnknown& vars); //! Sets the name to .
Standard_EXPORT void SetName(const TCollection_AsciiString& newname) ; //! Returns the name assigned to
Standard_EXPORT TCollection_AsciiString GetName() const; //! Returns the number of variables of .
Standard_EXPORT Standard_Integer NbOfVariables() const; //! Returns the variable denoted by in .
//! Raises OutOfRange if is greater than
//! NbOfVariables of , or less than or equal to zero.
Standard_EXPORT Handle_Expr_NamedUnknown Variable(const Standard_Integer index) const; //! Computes the value of with the given variables.
//! Raises DimensionMismatch if Length(vars) is different from
//! Length(values).
Standard_EXPORT Standard_Real Evaluate(const Expr_Array1OfNamedUnknown& vars,const TColStd_Array1OfReal& values) const; //! Returns a copy of with the same form.
Standard_EXPORT Handle_Expr_GeneralFunction Copy() const; //! Returns Derivative of for variable .
Standard_EXPORT Handle_Expr_GeneralFunction Derivative(const Handle(Expr_NamedUnknown)& var) const; //! Returns Derivative of for variable with
//! degree .
Standard_EXPORT Handle_Expr_GeneralFunction Derivative(const Handle(Expr_NamedUnknown)& var,const Standard_Integer deg) const; //! Tests if and are similar functions (same
//! name and same used expression).
Standard_EXPORT Standard_Boolean IsIdentical(const Handle(Expr_GeneralFunction)& func) const; //! Tests if is linear on variable on range
Standard_EXPORT Standard_Boolean IsLinearOnVariable(const Standard_Integer index) const; Standard_EXPORT TCollection_AsciiString GetStringName() const; //! Returns equivalent expression of .
Standard_EXPORT Handle_Expr_GeneralExpression Expression() const; //! Modifies expression of .
//! Warning: Beware of derivatives. See FunctionDerivative
Standard_EXPORT void SetExpression(const Handle(Expr_GeneralExpression)& exp) ; DEFINE_STANDARD_RTTI(Expr_NamedFunction) protected: private: TCollection_AsciiString myName; Handle_Expr_GeneralExpression myExp; Expr_Array1OfNamedUnknown myVariables; }; // other Inline functions and methods (like "C++: function call" methods) #endif