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

Read-only view for a NumVector<DataType_, Size_>. More...

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

Collaboration diagram for Arcane::NumVectorDataViewGetter< DataType_, Size_ >:

Public Types

using NumVectorType = NumVector<DataType_, Size>
 Type of the vector.
using AccessorReturnType = const NumVectorType&
 Accessor for the vector.
using VectorElemenAccessor = DataViewGetter<DataType_>
 Accessor for one element of the vector.

Public Member Functions

__host__ __device__ NumVectorDataViewGetter (const NumVectorType *ptr)
constexpr operator AccessorReturnType () const noexcept

Static Public Member Functions

static constexpr __host__ __device__ AccessorReturnType build (const NumVectorType *ptr)

Static Public Attributes

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

Private Attributes

const NumVectorType * m_ptr = nullptr

Detailed Description

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

Read-only view for a NumVector<DataType_, Size_>.

Definition at line 33 of file NumVectorDataView.h.

Member Typedef Documentation

◆ AccessorReturnType

template<typename DataType_, int Size_>
using Arcane::NumVectorDataViewGetter< DataType_, Size_ >::AccessorReturnType = const NumVectorType&

Accessor for the vector.

Definition at line 42 of file NumVectorDataView.h.

◆ NumVectorType

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

Type of the vector.

Definition at line 40 of file NumVectorDataView.h.

◆ VectorElemenAccessor

template<typename DataType_, int Size_>
using Arcane::NumVectorDataViewGetter< DataType_, Size_ >::VectorElemenAccessor = DataViewGetter<DataType_>

Accessor for one element of the vector.

Definition at line 44 of file NumVectorDataView.h.

Constructor & Destructor Documentation

◆ NumVectorDataViewGetter()

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

Definition at line 48 of file NumVectorDataView.h.

Member Function Documentation

◆ build()

template<typename DataType_, int Size_>
constexpr __host__ __device__ AccessorReturnType Arcane::NumVectorDataViewGetter< DataType_, Size_ >::build ( const NumVectorType * ptr)
inlinestaticconstexpr

Definition at line 54 of file NumVectorDataView.h.

◆ operator AccessorReturnType()

template<typename DataType_, int Size_>
Arcane::NumVectorDataViewGetter< DataType_, Size_ >::operator AccessorReturnType ( ) const
inlineconstexprnoexcept

Definition at line 61 of file NumVectorDataView.h.

Member Data Documentation

◆ m_ptr

template<typename DataType_, int Size_>
const NumVectorType* Arcane::NumVectorDataViewGetter< DataType_, Size_ >::m_ptr = nullptr
private

Definition at line 65 of file NumVectorDataView.h.

◆ Size

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

Number of elements of the vector.

Definition at line 38 of file NumVectorDataView.h.


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