Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
MeshTimeHistoryAdder.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/* MeshTimeHistoryAdder.h (C) 2000-2024 */
9/* */
10/* Class allowing the addition of a value history linked to a mesh. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_MESHTIMEHISTORYADDER_H
13#define ARCANE_CORE_MESHTIMEHISTORYADDER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/core/ITimeHistoryAdder.h"
18#include "arcane/core/IParallelMng.h"
19#include "arcane/core/MeshHandle.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
74class ARCANE_CORE_EXPORT MeshTimeHistoryAdder
75: public ITimeHistoryAdder
76{
77 public:
78
85 MeshTimeHistoryAdder(ITimeHistoryMng* time_history_mng, const MeshHandle& mesh_handle);
86 ~MeshTimeHistoryAdder() override = default;
87
88 public:
89
90 void addValue(const TimeHistoryAddValueArg& thp, Real value) override;
91 void addValue(const TimeHistoryAddValueArg& thp, Int32 value) override;
92 void addValue(const TimeHistoryAddValueArg& thp, Int64 value) override;
93 void addValue(const TimeHistoryAddValueArg& thp, RealConstArrayView values) override;
94 void addValue(const TimeHistoryAddValueArg& thp, Int32ConstArrayView values) override;
95 void addValue(const TimeHistoryAddValueArg& thp, Int64ConstArrayView values) override;
96
97 private:
98
99 ITimeHistoryMng* m_thm;
100 MeshHandle m_mesh_handle;
101};
102
103/*---------------------------------------------------------------------------*/
104/*---------------------------------------------------------------------------*/
105
106} // End namespace Arcane
107
108/*---------------------------------------------------------------------------*/
109/*---------------------------------------------------------------------------*/
110
111#endif
Class interface allowing the addition of one or more values to a value history.
Class managing a history of values.
Handle on a mesh.
Definition MeshHandle.h:48
MeshTimeHistoryAdder(ITimeHistoryMng *time_history_mng, const MeshHandle &mesh_handle)
Constructor.
void addValue(const TimeHistoryAddValueArg &thp, Real value) override
Method allowing the addition of a value to a history.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int64_t Int64
Signed integer type of 64 bits.
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
Definition UtilsTypes.h:482
ConstArrayView< Int64 > Int64ConstArrayView
C equivalent of a 1D array of 64-bit integers.
Definition UtilsTypes.h:480
double Real
Type representing a real number.
std::int32_t Int32
Signed integer type of 32 bits.
ConstArrayView< Real > RealConstArrayView
C equivalent of a 1D array of reals.
Definition UtilsTypes.h:488