Arcane
v3.16.0.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
GlobalTimeHistoryAdder.cc
1
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2
//-----------------------------------------------------------------------------
3
// Copyright 2000-2024 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.cc (C) 2000-2024 */
9
/* */
10
/* Classe permettant d'ajouter un historique de valeur global. */
11
/*---------------------------------------------------------------------------*/
12
/*---------------------------------------------------------------------------*/
13
14
#include "arcane/core/GlobalTimeHistoryAdder.h"
15
#include "arcane/core/internal/ITimeHistoryMngInternal.h"
16
17
/*---------------------------------------------------------------------------*/
18
/*---------------------------------------------------------------------------*/
19
20
namespace
Arcane
21
{
22
23
/*---------------------------------------------------------------------------*/
24
/*---------------------------------------------------------------------------*/
25
26
GlobalTimeHistoryAdder::
27
GlobalTimeHistoryAdder
(
ITimeHistoryMng
* time_history_mng)
28
: m_thm(time_history_mng)
29
{
30
m_thm->_internalApi()->setIOMasterWriteOnly(
true
);
31
}
32
33
void
GlobalTimeHistoryAdder::
34
addValue
(
const
TimeHistoryAddValueArg
& thp,
Real
value)
35
{
36
m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), value);
37
}
38
39
void
GlobalTimeHistoryAdder::
40
addValue
(
const
TimeHistoryAddValueArg
& thp,
Int64
value)
41
{
42
m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), value);
43
}
44
45
void
GlobalTimeHistoryAdder::
46
addValue
(
const
TimeHistoryAddValueArg
& thp,
Int32
value)
47
{
48
m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), value);
49
}
50
51
void
GlobalTimeHistoryAdder::
52
addValue
(
const
TimeHistoryAddValueArg
& thp,
RealConstArrayView
values)
53
{
54
m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), values);
55
}
56
57
void
GlobalTimeHistoryAdder::
58
addValue
(
const
TimeHistoryAddValueArg
& thp,
Int32ConstArrayView
values)
59
{
60
m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), values);
61
}
62
63
void
GlobalTimeHistoryAdder::
64
addValue
(
const
TimeHistoryAddValueArg
& thp,
Int64ConstArrayView
values)
65
{
66
m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), values);
67
}
68
69
/*---------------------------------------------------------------------------*/
70
/*---------------------------------------------------------------------------*/
71
72
}
// End namespace Arcane
73
74
/*---------------------------------------------------------------------------*/
75
/*---------------------------------------------------------------------------*/
Arcane::GlobalTimeHistoryAdder::GlobalTimeHistoryAdder
GlobalTimeHistoryAdder(ITimeHistoryMng *time_history_mng)
Constructeur.
Definition
GlobalTimeHistoryAdder.cc:27
Arcane::GlobalTimeHistoryAdder::addValue
void addValue(const TimeHistoryAddValueArg &thp, Real value) override
Méthode permettant d'ajouter une valeur à un historique.
Definition
GlobalTimeHistoryAdder.cc:34
Arcane::ITimeHistoryMng
Classe gérant un historique de valeurs.
Definition
ITimeHistoryMng.h:133
Arcane::TimeHistoryAddValueArg
Definition
ITimeHistoryMng.h:34
Arcane
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Definition
AbstractCaseDocumentVisitor.cc:20
Arcane::Int64
std::int64_t Int64
Type entier signé sur 64 bits.
Definition
ArccoreGlobal.h:186
Arcane::Int32ConstArrayView
ConstArrayView< Int32 > Int32ConstArrayView
Equivalent C d'un tableau à une dimension d'entiers 32 bits.
Definition
UtilsTypes.h:569
Arcane::Int64ConstArrayView
ConstArrayView< Int64 > Int64ConstArrayView
Equivalent C d'un tableau à une dimension d'entiers 64 bits.
Definition
UtilsTypes.h:567
Arcane::Real
double Real
Type représentant un réel.
Definition
ArccoreGlobal.h:223
Arcane::Int32
std::int32_t Int32
Type entier signé sur 32 bits.
Definition
ArccoreGlobal.h:184
Arcane::RealConstArrayView
ConstArrayView< Real > RealConstArrayView
Equivalent C d'un tableau à une dimension de réels.
Definition
UtilsTypes.h:575
arcane
core
GlobalTimeHistoryAdder.cc
Généré le Lundi 24 Mars 2025 02:48:31 pour Arcane par
1.13.2