12#ifndef ARCCORE_COMMON_NUMVECTORDATAVIEW_H
13#define ARCCORE_COMMON_NUMVECTORDATAVIEW_H
17#include "arccore/base/NumVector.h"
32template <
typename DataType_,
int Size_>
33class NumVectorDataViewGetter
38 static constexpr int Size = Size_;
48 explicit ARCCORE_HOST_DEVICE NumVectorDataViewGetter(
const NumVectorType* ptr)
73template <
typename DataType_,
int Size_>
74class NumVectorDataViewGetterSetter
75:
public DataViewGetterSetter<NumVector<DataType_, Size_>>
77 using BaseClass = DataViewGetterSetter<NumVector<DataType_, Size_>>;
82 static constexpr int Size = Size_;
90 explicit ARCCORE_HOST_DEVICE NumVectorDataViewGetterSetter(
NumVectorType* ptr)
98 BaseClass::operator=(v);
102 void fill(
const DataType_& v)
104 this->m_ptr->fill(v);
Class for accessing an element of a read view.
Mutable view for a NumVector<DataType_,Size>.
DataViewGetterSetter< DataType_ > VectorElemenAccessor
Accessor for one element of the vector.
NumVector< DataType_, Size > NumVectorType
Type of the vector.
static constexpr int Size
Number of elements of the vector.
const NumVectorType & AccessorReturnType
NumVector< DataType, Size > NumVectorType
DataViewGetter< DataType > VectorElemenAccessor
static constexpr int Size
Small fixed-size vector of Size numerical data points.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --