12#ifndef ARCANE_CORE_VARIABLEREFARRAY2_H
13#define ARCANE_CORE_VARIABLEREFARRAY2_H
17#include "arcane/utils/Array2View.h"
18#include "arcane/core/VariableRef.h"
71 ARCCORE_DEPRECATED_2021(
"Use refersTo() instead.")
95 ARCANE_CORE_EXPORT
void fill(const DataType& value);
102 virtual
bool isArrayVariable()
const {
return true; }
112 ARCCORE_DEPRECATED_2021(
"Use _internalTrueData() instead.")
127 PrivatePartType* m_private_part;
constexpr Integer dim1Size() const
constexpr Array2View(T *ptr, Integer dim1_size, Integer dim2_size)
Class representing a classic 2D array.
Modifiable view of an array of type T.
Constant view of an array of type T.
Interface for a two-dimensional array data of type T.
Parameters necessary for building a variable.
Variable factory registrar.
Information characterizing a variable.
void refersTo(const VariableRefArray2T< DataType > &rhs)
DataType ElementType
Type of the variable elements.
IArray2DataInternalT< DataType > * _internalTrueData()
VariableRefArray2T(const VariableBuildInfo &vb)
Constructs a reference to a 2D array variable specified in vb.
virtual void resize(Integer new_size)
void fill(const DataType &value)
virtual Integer arraySize() const
If the variable is an array, returns its dimension, otherwise returns 0.
ContainerType & internalContainer()
VariableRefArray2T(const VariableRefArray2T< DataType > &rhs)
Constructs a reference from rhs.
Array2< DataType > ContainerType
Type of the class managing the variable value.
VariableRef BaseClass
Type of the base class.
virtual void updateFromInternal()
Updates from the internal part.
VariableRefArray2T(IVariable *var)
Constructs a reference from var.
Array2View< DataType > ArrayBase
Type of the array used to access the variable.
VariableRef(const VariableBuildInfo &vbi)
Constructs a reference to a variable with the infos vbi.
Information characterizing the type of a variable.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.