0024624: Lost word in license statement in source files
[occt.git] / src / AdvApp2Var / AdvApp2Var_EvaluatorFunc2Var.hxx
1 // Created on: 1996-04-18
2 // Created by: Joelle CHAUVET
3 // Copyright (c) 1996-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _Standard_Integer_HeaderFile
18 #include <Standard_Integer.hxx>
19 #endif
20 #ifndef _Standard_Real_HeaderFile
21 #include <Standard_Real.hxx>
22 #endif
23 #ifndef _Standard_PrimitiveTypes_HeaderFile
24 #include <Standard_PrimitiveTypes.hxx>
25 #endif
26
27 #ifndef AdvApp2Var_EvaluatorFunc2Var_HeaderFile
28 #define AdvApp2Var_EvaluatorFunc2Var_HeaderFile
29
30 // History - the C function pointer converted to a virtual class
31 // in order to get rid of usage of static functions and static data
32 class AdvApp2Var_EvaluatorFunc2Var
33 {
34 public:
35
36   //! Empty constructor
37   AdvApp2Var_EvaluatorFunc2Var() {}
38
39   //! Destructor should be declared as virtual
40   virtual ~AdvApp2Var_EvaluatorFunc2Var () {}
41
42   //! Function evaluation method to be defined by descendant
43   virtual void Evaluate (Standard_Integer* theDimension,
44                          Standard_Real*    theUStartEnd,
45                          Standard_Real*    theVStartEnd,
46                          Standard_Integer* theFavorIso,   //!< Choice of constante, 1 for U, 2 for V
47                          Standard_Real*    theConstParam, //!< Value of constant parameter
48                          Standard_Integer* theNbParams,   //!< Number of parameters N
49                          Standard_Real*    theParameters, //!< Values of parameters,
50                          Standard_Integer* theUOrder,     //!< Derivative Request in U
51                          Standard_Integer* theVOrder,     //!< Derivative Request in V
52                          Standard_Real*    theResult,     //!< Result[Dimension,N]
53                          Standard_Integer* theErrorCode) const = 0;
54
55   //! Shortcut for function-call style usage
56   void operator() (Standard_Integer* theDimension,
57                    Standard_Real*    theUStartEnd,
58                    Standard_Real*    theVStartEnd,
59                    Standard_Integer* theFavorIso,
60                    Standard_Real*    theConstParam,
61                    Standard_Integer* theNbParams,
62                    Standard_Real*    theParameters,
63                    Standard_Integer* theUOrder,
64                    Standard_Integer* theVOrder,
65                    Standard_Real*    theResult,
66                    Standard_Integer* theErrorCode) const
67   {
68     Evaluate (theDimension, theUStartEnd, theVStartEnd, theFavorIso,
69               theConstParam, theNbParams,
70               theParameters, theUOrder, theVOrder, theResult, theErrorCode);
71   }
72
73 private:
74
75   //! Copy constructor is declared private to forbid copying
76   AdvApp2Var_EvaluatorFunc2Var (const AdvApp2Var_EvaluatorFunc2Var& ) {}
77
78   //! Assignment operator is declared private to forbid copying
79   void operator= (const AdvApp2Var_EvaluatorFunc2Var& ) {}
80 };
81
82 #endif