14#include "arcane/core/MeshPartialVariableScalarRef.h"
15#include "arcane/core/ItemGroup.h"
16#include "arcane/core/IMesh.h"
17#include "arcane/core/VariableBuildInfo.h"
18#include "arcane/core/VariableDataTypeTraits.h"
19#include "arcane/core/IParallelMng.h"
34 eDataType dt = VariableDataTypeTraitsT<DataType>::type();
47 return VariableInfo(vbi.name(), vbi.itemFamilyName(), vbi.itemGroupName(), vbi.meshName(), vti, sti);
53template <
class DataType>
58 this->_internalInit();
59 internalSetUsed(this->isUsed());
65template <
class DataType>
70 this->_internalInit();
71 internalSetUsed(this->isUsed());
77template <
class DataType>
82 internalSetUsed(this->isUsed());
88template <
typename DataType>
void
93 m_table = this->itemGroup().localIdToIndex();
101template <
class DataType>
void
105 PrivateVariableScalarT<DataType>::operator=(rhs);
106 m_table = rhs.m_table;
113template <
class DataType>
void
115fill(
const DataType& v)
117 this->m_private_part->fill(v);
123template <
typename DataType>
void
124ItemPartialVariableScalarRefT<DataType>::
125copy(
const ItemPartialVariableScalarRefT<DataType>& v)
129 operator[](iitem) = v[iitem];
151 eDataType dt = VariableDataTypeTraitsT<DataType>::type();
158template <
class ItemType,
class DataType>
162 return new ThatClass(vb);
168template <
class ItemType,
class DataType>
183template <
class ItemType,
class DataType>
198template <
class ItemType,
class DataType>
void
208template <
class ItemType,
class DataType>
auto
212 return GroupType(this->m_private_part->itemGroup());
Type information for a data container.
Partial scalar variable on a mesh entity type.
ItemPartialVariableScalarRefT(const VariableBuildInfo &vb, eItemKind ik)
Constructs a reference to the variable specified in vb.
void operator=(const ItemPartialVariableScalarRefT< DataType > &rhs)
Copy operator.
Characteristics of mesh elements.
static eItemKind kind()
Entity kind.
Scalar variable on a mesh entity type.
void refersTo(const MeshPartialVariableScalarRefT< ItemType, DataType > &rhs)
Positions the instance reference to the variable rhs.
MeshPartialVariableScalarRefT(const VariableBuildInfo &vb)
Constructs a reference to the variable specified in vb.
GroupType itemGroup() const
Group associated with the quantity.
PrivateVariableScalarT(const VariableBuildInfo &vb, const VariableInfo &vi)
Parameters necessary for building a variable.
Variable factory registrar.
Information characterizing a variable.
Information characterizing the type of a variable.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
eItemKind
Mesh entity type.