14#include "arcane/core/MeshPartialVariableArrayRef.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>
56: PrivateVariableArrayT<DataType>(vb, _buildVariableInfo(vb, ik))
58 this->_internalInit();
59 internalSetUsed(this->isUsed());
65template <
class DataType>
68: PrivateVariableArrayT<DataType>(var)
70 this->_internalInit();
71 internalSetUsed(this->isUsed());
77template <
class DataType>
80: PrivateVariableArrayT<DataType>(rhs)
82 internalSetUsed(this->isUsed());
88template <
typename DataType>
void
93 m_table = this->itemGroup().localIdToIndex();
101template <
class DataType>
void
105 PrivateVariableArrayT<DataType>::operator=(rhs);
106 m_table = rhs.m_table;
112template <
class DataType>
void
114fill(
const DataType& v)
117 operator[](iitem).fill(v);
124template <
typename DataType>
void
129 operator[](iitem).copy(v[iitem]);
151 return BaseClass::_buildVariableTypeInfo(ik);
157template <
typename ItemType,
typename DataType>
VariableInfo
162 return BaseClass::_buildVariableInfo(vbi, ik);
168template <
class ItemType,
class DataType>
VariableRef*
172 return new ThatClass(vb);
178template <
class ItemType,
class DataType>
192template <
class ItemType,
class DataType>
206template <
class ItemType,
class DataType>
void
216template <
class ItemType,
class DataType>
217typename Arcane::MeshPartialVariableArrayRefT<ItemType, DataType>::GroupType
221 return GroupType(this->m_private_part->itemGroup());
Type information for a data container.
Scalar partial variable on a mesh entity type.
ItemPartialVariableArrayRefT(const VariableBuildInfo &vb, eItemKind ik)
Constructs a reference to the variable specified in vb.
void operator=(const ItemPartialVariableArrayRefT< DataType > &rhs)
Copy assignment operator.
static eItemKind kind()
Entity kind.
Scalar partial variable on a mesh entity type.
void refersTo(const MeshPartialVariableArrayRefT< ItemType, DataType > &rhs)
Positions the instance reference to the variable rhs.
MeshPartialVariableArrayRefT(const VariableBuildInfo &vb)
Constructs a reference to the variable specified in vb.
GroupType itemGroup() const
Group associated with the quantity.
Parameters necessary for building a variable.
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.