Write view on a mesh scalar variable of type 'RealN'. More...
#include <arcane/core/VariableView.h>
Public Types | |
| using | DataType = typename Accessor::ValueType |
| using | DataTypeReturnReference = DataType& |
| using | ItemIndexType = typename ItemTraitsT<ItemType>::LocalIdType |
Public Member Functions | |
| ItemVariableRealNScalarOutViewT (IVariable *var, Span< DataType > v) | |
| Constructs the view. | |
| SimdSetter< DataType > | operator[] (SimdItemIndexT< ItemType > simd_item) const |
| Vector access operator with indirection. | |
| SimdDirectSetter< DataType > | operator[] (SimdItemDirectIndexT< ItemType > simd_item) const |
| Vector access operator without indirection. | |
| Accessor | operator[] (ItemIndexType item) const |
| Access operator for the item entity. | |
| Accessor | value (ItemIndexType item) const |
| Access operator for the item entity. | |
| void | setValue (ItemIndexType item, const DataType &v) const |
| Positions the value for the item entity at v. | |
| Public Member Functions inherited from Arcane::Accelerator::VariableViewBase | |
| VariableViewBase (const ViewBuildInfo &command, IVariable *var) | |
Private Attributes | |
| DataType * | m_values |
| Int64 | m_size |
Write view on a mesh scalar variable of type 'RealN'.
This class specializes modifiable views for the reals 'Real2', 'Real3', 'Real2x2' and 'Real3x3'. The specialization ensures that only the entire vector of these real numbers can be modified. For example:
Definition at line 327 of file VariableView.h.
| using Arcane::ItemVariableRealNScalarOutViewT< ItemType, Accessor >::DataType = typename Accessor::ValueType |
Definition at line 332 of file VariableView.h.
| using Arcane::ItemVariableRealNScalarOutViewT< ItemType, Accessor >::DataTypeReturnReference = DataType& |
Definition at line 333 of file VariableView.h.
| using Arcane::ItemVariableRealNScalarOutViewT< ItemType, Accessor >::ItemIndexType = typename ItemTraitsT<ItemType>::LocalIdType |
Definition at line 334 of file VariableView.h.
|
inline |
Constructs the view.
Definition at line 339 of file VariableView.h.
|
inline |
Access operator for the item entity.
Definition at line 358 of file VariableView.h.
|
inline |
Vector access operator without indirection.
Definition at line 352 of file VariableView.h.
|
inline |
Vector access operator with indirection.
Definition at line 346 of file VariableView.h.
References Arcane::SimdItemIndexT< ItemType >::simdLocalIds().
|
inline |
Positions the value for the item entity at v.
Definition at line 372 of file VariableView.h.
|
inline |
Access operator for the item entity.
Definition at line 365 of file VariableView.h.
|
private |
Definition at line 381 of file VariableView.h.
|
private |
Definition at line 380 of file VariableView.h.