Arcane  4.2.3.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::NumVectorDataViewGetterSetter< DataType_, Size_ > Class Template Reference

Mutable view for a NumVector<DataType_,Size>. More...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/common/arccore/common/NumVectorDataView.h>

Inheritance diagram for Arcane::NumVectorDataViewGetterSetter< DataType_, Size_ >:
Collaboration diagram for Arcane::NumVectorDataViewGetterSetter< DataType_, Size_ >:

Public Types

using NumVectorType = NumVector<DataType_, Size>
 Type of the vector.
using VectorElemenAccessor = DataViewGetterSetter<DataType_>
 Accessor for one element of the vector.
Public Types inherited from Arcane::DataViewGetterSetter< NumVector< DataType_, Size_ > >
using ValueType
using AccessorReturnType
Public Types inherited from Arcane::DataViewSetter< DataType >
using ValueType = DataType
using AccessorReturnType = DataViewSetter<DataType>

Public Member Functions

__host__ __device__ NumVectorDataViewGetterSetter (NumVectorType *ptr)
NumVectorDataViewGetterSetter & operator= (const NumVectorType &v)
void fill (const DataType_ &v)
Public Member Functions inherited from Arcane::DataViewGetterSetter< NumVector< DataType_, Size_ > >
__host__ __device__ DataViewGetterSetter (NumVector< DataType_, Size_ > *ptr)
__host__ __device__ DataViewGetterSetter (const DataViewGetterSetter &v)
__host__ __device__ operator NumVector< DataType_, Size_ > () const
 Operator to convert to the underlying type for read-only operation.
__host__ __device__ DataViewSetter< NumVector< DataType_, Size_ > > & operator= (const DataViewGetterSetter< NumVector< DataType_, Size_ > > &v)
__host__ __device__ DataViewSetter< NumVector< DataType_, Size_ > > & operator= (const NumVector< DataType_, Size_ > &v)
__host__ __device__ auto operator[] (Int32 index)
 Applies, if it exists, the operator operator[](Int32) on the type.
constexpr __host__ __device__ auto operator() (Int32 i0)
 Applies, if it exists, the operator operator()(Int32) on the type.
constexpr __host__ __device__ auto operator() (Int32 i0, Int32 i1)
 Applies, if it exists, the operator operator()(Int32,Int32) on DataType.
__host__ __device__ operator NumVector< DataType_, Size_ > () const
 Operator to convert to the underlying type for read-only operation.
Public Member Functions inherited from Arcane::DataViewSetter< DataType >
__host__ __device__ DataViewSetter (DataType *ptr)
__host__ __device__ DataViewSetter (const DataViewSetter< DataType > &v)
__host__ __device__ DataViewSetter< DataType > & operator= (const DataType &v)
__host__ __device__ DataViewSetter< DataType > & operator= (const DataViewSetter< DataType > &v)
__host__ __device__ DataViewSetter< DataType > & operator+= (const DataType &v)
__host__ __device__ DataViewSetter< DataType > & operator+= (const DataViewSetter< DataType > &v)
__host__ __device__ DataViewSetter< DataType > & operator-= (const DataType &v)
__host__ __device__ DataViewSetter< DataType > & operator-= (const DataViewSetter< DataType > &v)
__host__ __device__ DataViewSetter< DataType > & operator*= (const DataType &v)
__host__ __device__ DataViewSetter< DataType > & operator*= (const DataViewSetter< DataType > &v)
__host__ __device__ DataViewSetter< DataType > & operator/= (const DataType &v)
__host__ __device__ DataViewSetter< DataType > & operator/= (const DataViewSetter< DataType > &v)
template<typename X = DataType, typename ComponentDataType = decltype(X::x)>
__host__ __device__ void setX (ComponentDataType value)
template<typename X = DataType, typename ComponentDataType = decltype(X::y)>
__host__ __device__ void setY (ComponentDataType value)
template<typename X = DataType, typename ComponentDataType = decltype(X::z)>
__host__ __device__ void setZ (ComponentDataType value)
__host__ __device__ void setXX (Real value)
__host__ __device__ void setYX (Real value)
__host__ __device__ void setZX (Real value)
__host__ __device__ void setXY (Real value)
__host__ __device__ void setYY (Real value)
__host__ __device__ void setZY (Real value)
__host__ __device__ void setXZ (Real value)
__host__ __device__ void setYZ (Real value)
__host__ __device__ void setZZ (Real value)
__host__ __device__ auto operator[] (Int32 index)
 Applies the operator operator[] on the type.

Static Public Attributes

static constexpr int Size = Size_
 Number of elements of the vector.

Private Types

using BaseClass = DataViewGetterSetter<NumVector<DataType_, Size_>>

Additional Inherited Members

Static Public Member Functions inherited from Arcane::DataViewGetterSetter< NumVector< DataType_, Size_ > >
static __host__ __device__ AccessorReturnType build (NumVector< DataType_, Size_ > *ptr)
Static Public Member Functions inherited from Arcane::DataViewSetter< DataType >
static __host__ __device__ AccessorReturnType build (DataType *ptr)

Detailed Description

template<typename DataType_, int Size_>
class Arcane::NumVectorDataViewGetterSetter< DataType_, Size_ >

Mutable view for a NumVector<DataType_,Size>.

Definition at line 74 of file NumVectorDataView.h.

Member Typedef Documentation

◆ BaseClass

template<typename DataType_, int Size_>
using Arcane::NumVectorDataViewGetterSetter< DataType_, Size_ >::BaseClass = DataViewGetterSetter<NumVector<DataType_, Size_>>
private

Definition at line 77 of file NumVectorDataView.h.

◆ NumVectorType

template<typename DataType_, int Size_>
using Arcane::NumVectorDataViewGetterSetter< DataType_, Size_ >::NumVectorType = NumVector<DataType_, Size>

Type of the vector.

Definition at line 84 of file NumVectorDataView.h.

◆ VectorElemenAccessor

template<typename DataType_, int Size_>
using Arcane::NumVectorDataViewGetterSetter< DataType_, Size_ >::VectorElemenAccessor = DataViewGetterSetter<DataType_>

Accessor for one element of the vector.

Definition at line 86 of file NumVectorDataView.h.

Constructor & Destructor Documentation

◆ NumVectorDataViewGetterSetter()

template<typename DataType_, int Size_>
__host__ __device__ Arcane::NumVectorDataViewGetterSetter< DataType_, Size_ >::NumVectorDataViewGetterSetter ( NumVectorType * ptr)
inlineexplicit

Definition at line 90 of file NumVectorDataView.h.

Member Function Documentation

◆ fill()

template<typename DataType_, int Size_>
void Arcane::NumVectorDataViewGetterSetter< DataType_, Size_ >::fill ( const DataType_ & v)
inline

Definition at line 102 of file NumVectorDataView.h.

◆ operator=()

template<typename DataType_, int Size_>
NumVectorDataViewGetterSetter & Arcane::NumVectorDataViewGetterSetter< DataType_, Size_ >::operator= ( const NumVectorType & v)
inline

Definition at line 96 of file NumVectorDataView.h.

Member Data Documentation

◆ Size

template<typename DataType_, int Size_>
int Arcane::NumVectorDataViewGetterSetter< DataType_, Size_ >::Size = Size_
staticconstexpr

Number of elements of the vector.

Definition at line 82 of file NumVectorDataView.h.


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