Class for accessing an element of a read/write view. More...
Public Types | |
| using | ValueType = DataType |
| using | AccessorReturnType = DataViewGetterSetter<DataType> |
| Public Types inherited from Arcane::DataViewSetter< DataType > | |
| using | ValueType = DataType |
| using | AccessorReturnType = DataViewSetter<DataType> |
Public Member Functions | |
| __host__ __device__ | DataViewGetterSetter (DataType *ptr) |
| __host__ __device__ | DataViewGetterSetter (const DataViewGetterSetter &v) |
| __host__ __device__ | operator DataType () const |
| Operator to convert to the underlying type for read-only operation. | |
| __host__ __device__ DataViewSetter< DataType > & | operator= (const DataViewGetterSetter< DataType > &v) |
| __host__ __device__ DataViewSetter< DataType > & | operator= (const DataType &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. | |
| 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 Member Functions | |
| static __host__ __device__ AccessorReturnType | build (DataType *ptr) |
| Static Public Member Functions inherited from Arcane::DataViewSetter< DataType > | |
| static __host__ __device__ AccessorReturnType | build (DataType *ptr) |
Private Types | |
| using | BaseType = DataViewSetter<DataType> |
Private Member Functions | |
| constexpr __host__ __device__ DataType * | _address () const |
| Address of the data. Valid only for simple types (i.e. not Real3). | |
Friends | |
| class | Arcane::Accelerator::Impl::AtomicImpl |
| template<typename DataType_, int Row, int Column> | |
| class | NumMatrixDataViewGetterSetter |
| std::ostream & | operator<< (std::ostream &o, const DataViewGetterSetter &v) |
Class for accessing an element of a read/write view.
This class extends the functionalities of DataViewSetter by adding the possibility to access the data value.
Definition at line 242 of file arccore/src/common/arccore/common/DataView.h.
| using Arcane::DataViewGetterSetter< DataType >::AccessorReturnType = DataViewGetterSetter<DataType> |
Definition at line 256 of file arccore/src/common/arccore/common/DataView.h.
|
private |
Definition at line 245 of file arccore/src/common/arccore/common/DataView.h.
| using Arcane::DataViewGetterSetter< DataType >::ValueType = DataType |
Definition at line 255 of file arccore/src/common/arccore/common/DataView.h.
|
inlineexplicit |
Definition at line 260 of file arccore/src/common/arccore/common/DataView.h.
|
inline |
Definition at line 263 of file arccore/src/common/arccore/common/DataView.h.
|
inlineconstexprprivate |
Address of the data. Valid only for simple types (i.e. not Real3).
Definition at line 332 of file arccore/src/common/arccore/common/DataView.h.
|
inlinestatic |
Definition at line 283 of file arccore/src/common/arccore/common/DataView.h.
|
inline |
Operator to convert to the underlying type for read-only operation.
Definition at line 267 of file arccore/src/common/arccore/common/DataView.h.
|
inlineconstexpr |
Applies, if it exists, the operator operator()(Int32) on the type.
Definition at line 305 of file arccore/src/common/arccore/common/DataView.h.
|
inlineconstexpr |
Applies, if it exists, the operator operator()(Int32,Int32) on DataType.
Definition at line 317 of file arccore/src/common/arccore/common/DataView.h.
|
inline |
Definition at line 278 of file arccore/src/common/arccore/common/DataView.h.
|
inline |
Definition at line 272 of file arccore/src/common/arccore/common/DataView.h.
|
inline |
Applies, if it exists, the operator operator[](Int32) on the type.
Definition at line 293 of file arccore/src/common/arccore/common/DataView.h.
|
friend |
Definition at line 247 of file arccore/src/common/arccore/common/DataView.h.
|
friend |
Definition at line 251 of file arccore/src/common/arccore/common/DataView.h.
|
friend |
Definition at line 323 of file arccore/src/common/arccore/common/DataView.h.