Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
IVariableParallelOperation.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 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 of a class for parallel operations on 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/*!
29 * \internal
30 * \brief Interface of a class for parallel operations on variables.
31 *
32 * These operations are collective.
33 *
34 * Before performing the operation, the entity family must be positioned
35 * (setItemFamily()), then add the list of variables on which the operations
36 * will be performed.
37 */
38class ARCANE_CORE_EXPORT IVariableParallelOperation
39{
40 public:
41
42 virtual ~IVariableParallelOperation() = default; //!< Releases resources.
43
44 public:
45
46 virtual void build() = 0; //!< Constructs the instance
47
48 public:
49
50 /*!
51 * \brief Positions the entity family on which the operation is to be performed.
52 *
53 * The family must be positioned before adding variables.
54 * It can only be done once.
55 */
56 virtual void setItemFamily(IItemFamily* family) = 0;
57
58 //! Entity family on which the operation is performed
59 virtual IItemFamily* itemFamily() = 0;
60
61 //! Adds a variable to the list of variables concerned by the operation
62 virtual void addVariable(IVariable* variable) = 0;
63
64 //! Applies the operation.
65 virtual void applyOperation(IDataOperation* operation) = 0;
66};
67
68/*---------------------------------------------------------------------------*/
69/*---------------------------------------------------------------------------*/
70
71} // namespace Arcane
72
73/*---------------------------------------------------------------------------*/
74/*---------------------------------------------------------------------------*/
75
76#endif
Arcane configuration file.
Interface of an entity family.
Definition IItemFamily.h:83
virtual void build()=0
Constructs the instance.
virtual IItemFamily * itemFamily()=0
Entity family on which the operation is performed.
virtual ~IVariableParallelOperation()=default
Releases resources.
virtual void setItemFamily(IItemFamily *family)=0
Positions the entity family on which the operation is to be performed.
virtual void addVariable(IVariable *variable)=0
Adds a variable to the list of variables concerned by the operation.
virtual void applyOperation(IDataOperation *operation)=0
Applies the operation.
Interface of a variable.
Definition IVariable.h:40
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --