Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
DirectExecutionFunctor.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* DirectExecutionFunctor.h (C) 2000-2022 */
9/* */
10/* Fonctor pour l'exécution directe. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_LAUNCHER_INTERNAL_DIRECTEXECUTIONFUNCTOR_H
13#define ARCANE_LAUNCHER_INTERNAL_DIRECTEXECUTIONFUNCTOR_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/launcher/LauncherGlobal.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28class ARCANE_LAUNCHER_EXPORT IDirectExecutionFunctor
29{
30 public:
31 virtual ~IDirectExecutionFunctor(){}
32 virtual int execute(DirectExecutionContext*)
33 {
34 return (-1);
35 }
36};
37
38/*---------------------------------------------------------------------------*/
39/*---------------------------------------------------------------------------*/
40
41class ARCANE_LAUNCHER_EXPORT IDirectSubDomainExecutionFunctor
42{
43 public:
45 virtual int execute(DirectSubDomainExecutionContext*)
46 {
47 return (-1);
48 }
49};
50
51/*---------------------------------------------------------------------------*/
52/*---------------------------------------------------------------------------*/
53
54class ARCANE_LAUNCHER_EXPORT DirectExecutionWrapper
55{
56 public:
57 static int run(IDirectExecutionFunctor*);
58 static int run(IDirectSubDomainExecutionFunctor*);
59 static int run();
60};
61
62/*---------------------------------------------------------------------------*/
63/*---------------------------------------------------------------------------*/
64
65} // End namespace Arcane
66
67/*---------------------------------------------------------------------------*/
68/*---------------------------------------------------------------------------*/
69
70#endif
Contexte d'exécution directe.
Contexte d'exécution directe avec création d'un sous-domaine.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-