Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
IVariableComputeFunction.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/* IVariableComputeFunction.h (C) 2000-2025 */
9/* */
10/* Interface of the functor class for recalculating a variable. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_IVARIABLECOMPUTEFUNCTION_H
13#define ARCANE_CORE_IVARIABLECOMPUTEFUNCTION_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28/*!
29 * \brief Interface of the functor class for recalculating a variable.
30 */
32{
33 public:
34
35 virtual ~IVariableComputeFunction() = default; //!< Frees resources
36
37 public:
38
39 //! Executes the calculation function
40 virtual void execute() = 0;
41
42 //! Trace information of the calculation function definition
43 virtual const TraceInfo& traceInfo() const = 0;
44};
45
46/*---------------------------------------------------------------------------*/
47/*---------------------------------------------------------------------------*/
48
49} // namespace Arcane
50
51/*---------------------------------------------------------------------------*/
52/*---------------------------------------------------------------------------*/
53
54#endif
Arcane configuration file.
Interface of the functor class for recalculating a variable.
virtual void execute()=0
Executes the calculation function.
virtual const TraceInfo & traceInfo() const =0
Trace information of the calculation function definition.
virtual ~IVariableComputeFunction()=default
Frees resources.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --