12#ifndef ARCANE_CORE_PRIVATEVARIABLESCALAR_H
13#define ARCANE_CORE_PRIVATEVARIABLESCALAR_H
17#include "arcane/core/MeshVariableRef.h"
32template <
typename DataType>
38 typedef DataType& DataTypeReturnReference;
62 ARCANE_CORE_EXPORT
ItemGroup itemGroup()
const;
68 SmallSpan<const DataType> _internalConstSpan()
const {
return m_view; }
72 void _internalInit() { MeshVariableRef::_internalInit(m_private_part); }
76 const DataType& _value(
Integer local_id)
const {
return m_view[local_id]; }
77 DataTypeReturnReference _value(
Integer local_id) {
return m_view[local_id]; }
79 const DataType& _putValue(
Integer index,
const DataType& v)
81 return (_value(index) = v);
86 PrivatePartType* m_private_part =
nullptr;
88 ArrayView<DataType> m_view;
90 IMemoryAccessTrace* m_memory_trace =
nullptr;
Modifiable view of an array of type T.
Constant view of an array of type T.
MeshVariableRef(const VariableBuildInfo &vb)
Constructs a reference linked to the module.
Integer arraySize() const
If the variable is an array, returns its dimension, otherwise returns 0.
void updateFromInternal()
Updates from the internal part.
PrivateVariableScalarT(const VariableBuildInfo &vb, const VariableInfo &vi)
Constructs a reference linked to the module.
View of an array of elements of type T.
Implementation of a variable on a 1D array.
Parameters necessary for building a variable.
Information characterizing a variable.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.