Arcane  v3.16.4.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
IVariableParallelOperation.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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/* IVariableParallelOperation.h (C) 2000-2025 */
9/* */
10/* Interface d'une classe d'opérations parallèles sur des variables. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_IVARIABLEPARALLELOPERATION_H
13#define ARCANE_CORE_IVARIABLEPARALLELOPERATION_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27/*!
28 * \internal
29 * \brief Interface d'une classe d'opérations parallèle sur des variables.
30 *
31 * Ces opérations sont collectives.
32 *
33 * Avant d'effectuer l'opération, il faut positionner la famille
34 * d'entités (setItemFamily()),
35 * puis ajouter la liste des variables sur lesquelles seront effectuées
36 * les opérations.
37 */
38class ARCANE_CORE_EXPORT IVariableParallelOperation
39{
40 public:
41
42 virtual ~IVariableParallelOperation() = default; //!< Libère les ressources.
43
44 public:
45
46 virtual void build() =0; //!< Construit l'instance
47
48 public:
49
50 /*!
51 * \brief Positionne la famille d'entité sur laquelle on souhaite opérer.
52 *
53 * La famille doit être positionnée avant d'ajouter des variables.
54 * Elle ne peut l'être qu'une seule fois.
55 */
56 virtual void setItemFamily(IItemFamily* family) =0;
57
58 //! Famille d'entités sur laquelle on opère
59 virtual IItemFamily* itemFamily() =0;
60
61 //! Ajoute \a variable à la liste des variables concernées par l'opération
62 virtual void addVariable(IVariable* variable) =0;
63
64 //! Applique l'opération.
65 virtual void applyOperation(IDataOperation* operation) =0;
66};
67
68/*---------------------------------------------------------------------------*/
69/*---------------------------------------------------------------------------*/
70
71} // namespace Arcane
72
73/*---------------------------------------------------------------------------*/
74/*---------------------------------------------------------------------------*/
75
76#endif
77
Fichier de configuration d'Arcane.
Interface d'une famille d'entités.
Definition IItemFamily.h:84
virtual void build()=0
Construit l'instance.
virtual IItemFamily * itemFamily()=0
Famille d'entités sur laquelle on opère.
virtual ~IVariableParallelOperation()=default
Libère les ressources.
virtual void setItemFamily(IItemFamily *family)=0
Positionne la famille d'entité sur laquelle on souhaite opérer.
virtual void addVariable(IVariable *variable)=0
Ajoute variable à la liste des variables concernées par l'opération.
virtual void applyOperation(IDataOperation *operation)=0
Applique l'opération.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-