Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
GlobalTimeHistoryAdder.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/* GlobalTimeHistoryAdder.h (C) 2000-2024 */
9/* */
10/* Class allowing the addition of a global value history. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_GLOBALTIMEHISTORYADDER_H
13#define ARCANE_CORE_GLOBALTIMEHISTORYADDER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/core/ITimeHistoryAdder.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
54class ARCANE_CORE_EXPORT GlobalTimeHistoryAdder
55: public ITimeHistoryAdder
56{
57 public:
58
64 explicit GlobalTimeHistoryAdder(ITimeHistoryMng* time_history_mng);
65 ~GlobalTimeHistoryAdder() override = default;
66
67 public:
68
69 void addValue(const TimeHistoryAddValueArg& thp, Real value) override;
70 void addValue(const TimeHistoryAddValueArg& thp, Int32 value) override;
71 void addValue(const TimeHistoryAddValueArg& thp, Int64 value) override;
72 void addValue(const TimeHistoryAddValueArg& thp, RealConstArrayView values) override;
73 void addValue(const TimeHistoryAddValueArg& thp, Int32ConstArrayView values) override;
74 void addValue(const TimeHistoryAddValueArg& thp, Int64ConstArrayView values) override;
75
76 private:
77
78 ITimeHistoryMng* m_thm;
79};
80
81/*---------------------------------------------------------------------------*/
82/*---------------------------------------------------------------------------*/
83
84} // End namespace Arcane
85
86/*---------------------------------------------------------------------------*/
87/*---------------------------------------------------------------------------*/
88
89#endif
GlobalTimeHistoryAdder(ITimeHistoryMng *time_history_mng)
Constructor.
void addValue(const TimeHistoryAddValueArg &thp, Real value) override
Method allowing the addition of a value to a history.
Class interface allowing the addition of one or more values to a value history.
Class managing a history of values.
-- 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