14#include "arcane/core/VariableRefArray2.h"
16#include "arcane/utils/FatalErrorException.h"
18#include "arcane/core/Array2Variable.h"
19#include "arcane/core/VariableBuildInfo.h"
20#include "arcane/core/VariableInfo.h"
21#include "arcane/core/VariableDataTypeTraits.h"
22#include "arcane/core/IParallelMng.h"
23#include "arcane/core/VariableFactoryRegisterer.h"
24#include "arcane/core/internal/IDataInternal.h"
58 return VariableInfo(vbi.name(), vbi.itemFamilyName(), vbi.itemGroupName(), vbi.meshName(), vti, sti);
68 return new ThatClass(vb);
74template <
typename DataType>
78, m_private_part(PrivatePartType::getReference(vbi, _internalVariableInfo(vbi)))
86template <
class DataType>
91, m_private_part(rhs.m_private_part)
102, m_private_part(PrivatePartType::getReference(var))
110template <
class DataType>
void
115 m_private_part = rhs.m_private_part;
130template <
class DataType>
void
135 m_private_part = rhs.m_private_part;
142template <
typename DataType>
void
146 m_private_part->directResize(s);
152template <
typename DataType>
void
156 m_private_part->directResize(dim1_size, dim2_size);
162template <
typename DataType>
void
164fill(
const DataType& value)
166 m_private_part->trueData()->_internal()->_internalDeprecatedValue().fill(value);
175 ArrayBase::operator=(m_private_part->valueView());
196 ARCANE_FATAL(
"variable '{0}': getting internal data container is only valid on private variable",
name());
197 return m_private_part->trueData()->_internal();
#define ARCANE_FATAL(...)
Macro throwing a FatalErrorException.
constexpr Array2View(T *ptr, Integer dim1_size, Integer dim2_size)
Type information for a data container.
Interface for a two-dimensional array data of type T.
@ PPrivate
Indicates that the variable is private.
Parameters necessary for building a variable.
Variable factory registrar.
Information characterizing a variable.
Two-dimensional array variable.
void refersTo(const VariableRefArray2T< DataType > &rhs)
Positions the instance reference to the variable rhs.
IArray2DataInternalT< T > * _internalTrueData()
VariableRefArray2T(const VariableBuildInfo &vb)
Constructs a reference to a 2D array variable specified in vb.
virtual void resize(Integer new_size)
Reallocates the number of elements in the first dimension of the array.
void fill(const DataType &value)
Fills the variable with the value value.
ContainerType & internalContainer()
Returns the container of the variable's values.
Array2< DataType > ContainerType
Type of the class managing the variable value.
void operator=(const VariableRefArray2T< DataType > &rhs)
Copy assignment operator.
virtual void updateFromInternal()
Updates from the internal part.
virtual ~VariableRefArray2T()
Frees resources.
virtual void updateFromInternal()
Updates from the internal part.
VariableRef(const VariableBuildInfo &vbi)
Constructs a reference to a variable with the infos vbi.
VariableRef & operator=(const VariableRef &from)
Copy assignment operator.
virtual int property() const
Variable properties.
void _internalInit(IVariable *)
Internal initialization of the variable.
String name() const
Variable name.
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.
@ IK_Unknown
Unknown or uninitialized mesh entity.