English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / ReLauncher: TCIntEval.h Source File
Uranie / ReLauncher  v4.10.0
/* @license-end */
TCIntEval.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2024 CEA/DES
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or any
7 // later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 // $Id$
19 // $Author$
20 // $Date$
21 // $Revision 1.3 $
22 // $State$
24 
32 #ifndef __TCINTEVAL__
33 #define __TCINTEVAL__
34 
35 //ROOT
36 #include "Rtypes.h"
37 #include "TMethodCall.h"
38 #include "TString.h"
39 
40 // Uranie
41 #include "Relauncher.h"
42 #include "TStandardEval.h"
43 
44 namespace URANIE
45 {
46 namespace Relauncher
47 {
48 
49 class TCIntEval: public TDoubleEval
50 {
51 protected:
52  TMethodCall *_fun;
53  void *_arg;
54  Bool_t _ret;
55 
56 public:
57  TCIntEval(TString nfun, Bool_t h = kFALSE);
58  TCIntEval(TString nfun, void *arg);
59 #ifdef ROOT5
60  TCIntEval(void *fun, Bool_t h = kFALSE);
61  TCIntEval(void *fun, void *arg);
62 #endif
63  virtual ~TCIntEval();
64 
65  Int_t eval(Double_t *in, Double_t *out, int icalc);
66  virtual bool isThreadSafe() {return false;}
67 
68  ClassDef(URANIE::Relauncher::TCIntEval, ID_RELAUNCHER)
69 };
70 
71 }
72 }
73 
74 #endif
Definition: TBaseEval.cxx:44
Definition: TStandardEval.h:70
virtual bool isThreadSafe()
Definition: TCIntEval.h:66
virtual ~TCIntEval()
Definition: TCIntEval.cxx:144
TMethodCall * _fun
Definition: TCIntEval.h:52
simple eval shared class
void * _arg
Definition: TCIntEval.h:53
Int_t eval(Double_t *in, Double_t *out, int icalc)
Definition: TCIntEval.cxx:150
TCIntEval(TString nfun, Bool_t h=kFALSE)
Definition: TCIntEval.cxx:46
Definition: TCIntEval.h:49
Bool_t _ret
Definition: TCIntEval.h:54