Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:02:53

0001 // Created on: 1996-04-18
0002 // Created by: Joelle CHAUVET
0003 // Copyright (c) 1996-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef AdvApp2Var_EvaluatorFunc2Var_HeaderFile
0018 #define AdvApp2Var_EvaluatorFunc2Var_HeaderFile
0019 
0020 #include <Standard_PrimitiveTypes.hxx>
0021 
0022 // History - the C function pointer converted to a virtual class
0023 // in order to get rid of usage of static functions and static data
0024 class AdvApp2Var_EvaluatorFunc2Var
0025 {
0026 public:
0027 
0028   //! Empty constructor
0029   AdvApp2Var_EvaluatorFunc2Var() {}
0030 
0031   //! Destructor should be declared as virtual
0032   virtual ~AdvApp2Var_EvaluatorFunc2Var () {}
0033 
0034   //! Function evaluation method to be defined by descendant
0035   virtual void Evaluate (Standard_Integer* theDimension,
0036                          Standard_Real*    theUStartEnd,  //!< First and last parameters in U
0037                          Standard_Real*    theVStartEnd,  //!< First and last parameters in V
0038                          Standard_Integer* theFavorIso,   //!< Choice of constante, 1 for U, 2 for V
0039                          Standard_Real*    theConstParam, //!< Value of constant parameter
0040                          Standard_Integer* theNbParams,   //!< Number of parameters N
0041                          Standard_Real*    theParameters, //!< Values of parameters,
0042                          Standard_Integer* theUOrder,     //!< Derivative Request in U
0043                          Standard_Integer* theVOrder,     //!< Derivative Request in V
0044                          Standard_Real*    theResult,     //!< Result[Dimension,N]
0045                          Standard_Integer* theErrorCode) const = 0;
0046 
0047   //! Shortcut for function-call style usage
0048   void operator() (Standard_Integer* theDimension,
0049                    Standard_Real*    theUStartEnd,
0050                    Standard_Real*    theVStartEnd,
0051                    Standard_Integer* theFavorIso,
0052                    Standard_Real*    theConstParam,
0053                    Standard_Integer* theNbParams,
0054                    Standard_Real*    theParameters,
0055                    Standard_Integer* theUOrder,
0056                    Standard_Integer* theVOrder,
0057                    Standard_Real*    theResult,
0058                    Standard_Integer* theErrorCode) const
0059   {
0060     Evaluate (theDimension, theUStartEnd, theVStartEnd, theFavorIso,
0061               theConstParam, theNbParams,
0062               theParameters, theUOrder, theVOrder, theResult, theErrorCode);
0063   }
0064 
0065 private:
0066 
0067   //! Copy constructor is declared private to forbid copying
0068   AdvApp2Var_EvaluatorFunc2Var (const AdvApp2Var_EvaluatorFunc2Var& ) {}
0069 
0070   //! Assignment operator is declared private to forbid copying
0071   void operator= (const AdvApp2Var_EvaluatorFunc2Var& ) {}
0072 };
0073 
0074 #endif