Arcane  v3.14.10.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
20namespace Arcane
21{
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
28: m_thm(time_history_mng)
29{
30 m_thm->_internalApi()->setIOMasterWriteOnly(true);
31}
32
34addValue(const TimeHistoryAddValueArg& thp, Real value)
35{
36 m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), value);
37}
38
40addValue(const TimeHistoryAddValueArg& thp, Int64 value)
41{
42 m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), value);
43}
44
46addValue(const TimeHistoryAddValueArg& thp, Int32 value)
47{
48 m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), value);
49}
50
53{
54 m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), values);
55}
56
59{
60 m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), values);
61}
62
65{
66 m_thm->_internalApi()->addValue(TimeHistoryAddValueArgInternal(thp), values);
67}
68
69/*---------------------------------------------------------------------------*/
70/*---------------------------------------------------------------------------*/
71
72} // End namespace Arcane
73
74/*---------------------------------------------------------------------------*/
75/*---------------------------------------------------------------------------*/
GlobalTimeHistoryAdder(ITimeHistoryMng *time_history_mng)
Constructeur.
void addValue(const TimeHistoryAddValueArg &thp, Real value) override
Méthode permettant d'ajouter une valeur à un historique.
Classe gérant un historique de valeurs.
virtual ITimeHistoryMngInternal * _internalApi()
API interne à Arcane.
Vue constante d'un tableau de type T.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-