12#ifndef ARCANE_PRIVATEVARIABLESCALAR_H
13#define ARCANE_PRIVATEVARIABLESCALAR_H
17#include "arcane/MeshVariableRef.h"
31template<
typename DataType>
37 typedef DataType& DataTypeReturnReference;
61 ARCANE_CORE_EXPORT
ItemGroup itemGroup()
const;
67 SmallSpan<const DataType> _internalConstSpan()
const {
return m_view; }
71 void _internalInit() { MeshVariableRef::_internalInit(m_private_part); }
75 const DataType& _value(
Integer local_id)
const {
return m_view[local_id]; }
76 DataTypeReturnReference _value(
Integer local_id) {
return m_view[local_id]; }
78 const DataType& _putValue(
Integer index,
const DataType& v)
80 return (_value(index) = v);
85 PrivatePartType* m_private_part =
nullptr;
87 ArrayView<DataType> m_view;
89 IMemoryAccessTrace* m_memory_trace =
nullptr;
Vue modifiable d'un tableau d'un type T.
Vue constante d'un tableau de type T.
Groupe d'entités de maillage.
MeshVariableRef(const VariableBuildInfo &vb)
Construit une référence liée au module module.
Integer arraySize() const
Si la variable est un tableau, retourne sa dimension, sinon retourne 0.
void updateFromInternal()
Mise à jour à partir de la partie interne.
PrivateVariableScalarT(const VariableBuildInfo &vb, const VariableInfo &vi)
Construit une référence liée au module module.
Vue d'un tableau d'éléments de type T.
Paramètres nécessaires à la construction d'une variable.
Infos caractérisant une variable.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Int32 Integer
Type représentant un entier.