Arcane  v3.16.7.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
VariableUtilsInternal.h
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/* VariableUtilsInternal.h (C) 2000-2024 */
9/* */
10/* Fonctions utilitaires diverses sur les variables internes à Arcane. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_INTERNAL_VARIABLEUTILSINTERNAL_H
13#define ARCANE_CORE_INTERNAL_VARIABLEUTILSINTERNAL_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18#include "arcane/core/materials/MaterialsCoreGlobal.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
29class ARCANE_CORE_EXPORT VariableUtilsInternal
30{
31 public:
32
41 static bool fillFloat64Array(IVariable* v, ArrayView<double> values);
42
52
61 static bool setFromMemoryBuffer(IVariable* v, ConstMemoryView values);
62
65};
66
67/*---------------------------------------------------------------------------*/
68/*---------------------------------------------------------------------------*/
69
70} // namespace Arcane::VariableUtils
71
72/*---------------------------------------------------------------------------*/
73/*---------------------------------------------------------------------------*/
74
75#endif
Déclarations des types généraux de Arcane.
Vue modifiable d'un tableau d'un type T.
Vue constante d'un tableau de type T.
Vue constante sur une zone mémoire contigue contenant des éléments de taille fixe.
Definition MemoryView.h:38
Partie interne de IData.
Interface d'une variable.
Definition IVariable.h:39
static bool setFromFloat64Array(IVariable *v, ConstArrayView< double > values)
Recopie dans la variable v les valeurs values.
static bool fillFloat64Array(IVariable *v, ArrayView< double > values)
Remplit values avec les valeurs de la variable.
static bool setFromMemoryBuffer(IVariable *v, ConstMemoryView values)
Recopie dans la variable v les valeurs values.
static IDataInternal * getDataInternal(IVariable *v)
Retourne l'API internal de IData associé à la variable v.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-