Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
VariableUtilsInternal.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/* VariableUtilsInternal.h (C) 2000-2024 */
9/* */
10/* Various utility functions for internal Arcane variables. */
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
71
72/*---------------------------------------------------------------------------*/
73/*---------------------------------------------------------------------------*/
74
75#endif
Declarations of Arcane's general types.
Modifiable view of an array of type T.
Constant view of an array of type T.
Constant view on a contiguous memory region containing fixed-size elements.
Internal part of IData.
Interface of a variable.
Definition IVariable.h:40
static bool setFromFloat64Array(IVariable *v, ConstArrayView< double > values)
Copies the values values into the variable v.
static bool fillFloat64Array(IVariable *v, ArrayView< double > values)
Fills values with the variable's values.
static bool setFromMemoryBuffer(IVariable *v, ConstMemoryView values)
Copies the values values into the variable v.
static IDataInternal * getDataInternal(IVariable *v)
Returns the internal IData API associated with the variable v.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --