Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::ItemVariableScalarOutViewT< ItemType, Accessor > Class Template Reference

Write view on a scalar mesh variable. More...

#include <arcane/core/VariableView.h>

Inheritance diagram for Arcane::ItemVariableScalarOutViewT< ItemType, Accessor >:
Collaboration diagram for Arcane::ItemVariableScalarOutViewT< ItemType, Accessor >:

Public Types

using DataType = typename Accessor::ValueType
using DataTypeReturnReference = DataType&
using ItemIndexType = typename ItemTraitsT<ItemType>::LocalIdType

Public Member Functions

 ItemVariableScalarOutViewT (IVariable *var, Span< DataType > v)
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 i) const
 Access operator for the item entity.
Accessor value (ItemIndexType i) const
 Access operator for the item entity.
void setValue (ItemIndexType i, const DataType &v) const
 Sets 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

Detailed Description

template<typename ItemType, typename Accessor>
class Arcane::ItemVariableScalarOutViewT< ItemType, Accessor >

Write view on a scalar mesh variable.

Definition at line 116 of file VariableView.h.

Member Typedef Documentation

◆ DataType

template<typename ItemType, typename Accessor>
using Arcane::ItemVariableScalarOutViewT< ItemType, Accessor >::DataType = typename Accessor::ValueType

Definition at line 121 of file VariableView.h.

◆ DataTypeReturnReference

template<typename ItemType, typename Accessor>
using Arcane::ItemVariableScalarOutViewT< ItemType, Accessor >::DataTypeReturnReference = DataType&

Definition at line 122 of file VariableView.h.

◆ ItemIndexType

template<typename ItemType, typename Accessor>
using Arcane::ItemVariableScalarOutViewT< ItemType, Accessor >::ItemIndexType = typename ItemTraitsT<ItemType>::LocalIdType

Definition at line 123 of file VariableView.h.

Constructor & Destructor Documentation

◆ ItemVariableScalarOutViewT()

template<typename ItemType, typename Accessor>
Arcane::ItemVariableScalarOutViewT< ItemType, Accessor >::ItemVariableScalarOutViewT ( IVariable * var,
Span< DataType > v )
inline

Definition at line 127 of file VariableView.h.

Member Function Documentation

◆ operator[]() [1/3]

template<typename ItemType, typename Accessor>
Accessor Arcane::ItemVariableScalarOutViewT< ItemType, Accessor >::operator[] ( ItemIndexType i) const
inline

Access operator for the item entity.

Definition at line 146 of file VariableView.h.

◆ operator[]() [2/3]

template<typename ItemType, typename Accessor>
SimdDirectSetter< DataType > Arcane::ItemVariableScalarOutViewT< ItemType, Accessor >::operator[] ( SimdItemDirectIndexT< ItemType > simd_item) const
inline

Vector access operator without indirection.

Definition at line 140 of file VariableView.h.

◆ operator[]() [3/3]

template<typename ItemType, typename Accessor>
SimdSetter< DataType > Arcane::ItemVariableScalarOutViewT< ItemType, Accessor >::operator[] ( SimdItemIndexT< ItemType > simd_item) const
inline

Vector access operator with indirection.

Definition at line 134 of file VariableView.h.

References Arcane::SimdItemIndexT< ItemType >::simdLocalIds().

Here is the call graph for this function:

◆ setValue()

template<typename ItemType, typename Accessor>
void Arcane::ItemVariableScalarOutViewT< ItemType, Accessor >::setValue ( ItemIndexType i,
const DataType & v ) const
inline

Sets the value for the item entity at v.

Definition at line 160 of file VariableView.h.

◆ value()

template<typename ItemType, typename Accessor>
Accessor Arcane::ItemVariableScalarOutViewT< ItemType, Accessor >::value ( ItemIndexType i) const
inline

Access operator for the item entity.

Definition at line 153 of file VariableView.h.

Member Data Documentation

◆ m_size

template<typename ItemType, typename Accessor>
Int64 Arcane::ItemVariableScalarOutViewT< ItemType, Accessor >::m_size
private

Definition at line 169 of file VariableView.h.

◆ m_values

template<typename ItemType, typename Accessor>
DataType* Arcane::ItemVariableScalarOutViewT< ItemType, Accessor >::m_values
private

Definition at line 168 of file VariableView.h.


The documentation for this class was generated from the following file: