// Created on: 1996-04-18 // Created by: Joelle CHAUVET // Copyright (c) 1996-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef AdvApp2Var_EvaluatorFunc2Var_HeaderFile #define AdvApp2Var_EvaluatorFunc2Var_HeaderFile #include #include #include "Standard_Macro.hxx" #include "Standard_Boolean.hxx" #include "Standard_Integer.hxx" #include "Standard_Real.hxx" #include "Standard_Character.hxx" #include "Standard_ExtCharacter.hxx" #include "Standard_CString.hxx" // History - the C function pointer converted to a virtual class // in order to get rid of usage of static functions and static data class AdvApp2Var_EvaluatorFunc2Var { public: //! Empty constructor AdvApp2Var_EvaluatorFunc2Var() = default; //! Destructor should be declared as virtual virtual ~AdvApp2Var_EvaluatorFunc2Var() = default; //! Function evaluation method to be defined by descendant virtual void Evaluate(int* theDimension, double* theUStartEnd, //!< First and last parameters in U double* theVStartEnd, //!< First and last parameters in V int* theFavorIso, //!< Choice of constante, 1 for U, 2 for V double* theConstParam, //!< Value of constant parameter int* theNbParams, //!< Number of parameters N double* theParameters, //!< Values of parameters, int* theUOrder, //!< Derivative Request in U int* theVOrder, //!< Derivative Request in V double* theResult, //!< Result[Dimension,N] int* theErrorCode) const = 0; //! Shortcut for function-call style usage void operator()(int* theDimension, double* theUStartEnd, double* theVStartEnd, int* theFavorIso, double* theConstParam, int* theNbParams, double* theParameters, int* theUOrder, int* theVOrder, double* theResult, int* theErrorCode) const { Evaluate(theDimension, theUStartEnd, theVStartEnd, theFavorIso, theConstParam, theNbParams, theParameters, theUOrder, theVOrder, theResult, theErrorCode); } private: AdvApp2Var_EvaluatorFunc2Var(const AdvApp2Var_EvaluatorFunc2Var&) = delete; AdvApp2Var_EvaluatorFunc2Var& operator=(const AdvApp2Var_EvaluatorFunc2Var&) = delete; }; #endif