English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / ReLauncher: TComponentRun.h Source File
Uranie / ReLauncher v4.9.0
/* @license-end */
TComponentRun.h
Go to the documentation of this file.
1/* --- Ansi C --- */
3// Copyright (C) 2013-2024 CEA/DES
4//
5// This program is free software: you can redistribute it and/or
6// modify it under the terms of the GNU Lesser General Public License
7// as published by the Free Software Foundation, either version 3 of
8// the License, or any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU Lesser General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public
16// License along with this program.
17// if not, see <http://www.gnu.org/licenses/>.
19
28#ifndef __COMPONENTRUN__
29#define __COMPONENTRUN__
30
31#include "TShareRun.h"
32
33#include "uranie_detection.h"
34#ifdef Boost_COROUTINE_FOUND
35#include <boost/coroutine2/coroutine.hpp>
36using namespace boost::coroutines2;
37#endif
38
39namespace URANIE
40{
41namespace Relauncher
42{
43
45{
46protected:
48#ifdef Boost_COROUTINE_FOUND
49 coroutine<void>::push_type *_yield;
50#endif
51
52public:
53#ifdef Boost_COROUTINE_FOUND
54 TComponentRun(TEval *, coroutine<void>::push_type *);
55#else
57#endif
58 virtual ~TComponentRun(void);
59
60 virtual void startSlave(void);
61 virtual void stopSlave(void);
62
63 virtual int get(long &);
64
65 int eval(vector<URANIE::DataServer::UEntry*> *,
66 vector<URANIE::DataServer::UEntry*> *, int =0);
67
68 ClassDef(URANIE::Relauncher::TComponentRun, ID_RELAUNCHER)
69};
70
71}} //namespace
72
73#endif
TRun base class.
Definition TComponentRun.h:45
virtual void stopSlave(void)
Definition TComponentRun.cxx:55
TEval * _workfun
Definition TComponentRun.h:47
int eval(vector< URANIE::DataServer::UEntry * > *, vector< URANIE::DataServer::UEntry * > *, int=0)
Definition TComponentRun.cxx:77
virtual int get(long &)
Definition TComponentRun.cxx:66
virtual ~TComponentRun(void)
Definition TComponentRun.cxx:44
virtual void startSlave(void)
Definition TComponentRun.cxx:49
Definition TEval.h:50
Definition TShareRun.h:84
Definition TBaseEval.cxx:44