Represents an index on material and environment variables. More...
#include <arcane/core/materials/MatVarIndex.h>
Public Member Functions | |
| constexpr __host__ __device__ | MatVarIndex (Int32 array_index, Int32 value_index) |
| constexpr __host__ __device__ Int32 | arrayIndex () const |
| Returns the index of the value array in the list of variables. | |
| constexpr __host__ __device__ Int32 | valueIndex () const |
| Returns the index in the value array. | |
| constexpr __host__ __device__ void | setIndex (Int32 array_index, Int32 value_index) |
| Sets the index. | |
| constexpr __host__ __device__ void | reset () |
| Sets the entity to the null instance. | |
| constexpr __host__ __device__ bool | null () const |
| Indicates if the instance represents the null entity. | |
| constexpr __host__ __device__ bool | isNull () const |
| Indicates if the instance represents the null entity. | |
Friends | |
| constexpr __host__ __device__ friend bool | operator== (MatVarIndex mv1, MatVarIndex mv2) |
| Comparison operator. | |
| constexpr __host__ __device__ friend bool | operator!= (MatVarIndex mv1, MatVarIndex mv2) |
| Comparison operator. | |
| std::ostream & | operator<< (std::ostream &o, const MatVarIndex &mvi) |
| Output operator. | |
Represents an index on material and environment variables.
The index includes 2 values:
Definition at line 39 of file core/materials/MatVarIndex.h.
|
inlineconstexpr |
Definition at line 43 of file core/materials/MatVarIndex.h.
|
inline |
Definition at line 48 of file core/materials/MatVarIndex.h.
|
inlineconstexpr |
Returns the index of the value array in the list of variables.
Definition at line 53 of file core/materials/MatVarIndex.h.
Referenced by operator<<, operator==, Arcane::Accelerator::MatItemVariableScalarInViewT< ItemType, DataType >::operator[](), Arcane::Accelerator::MatItemVariableScalarOutViewT< ItemType, Accessor >::operator[](), Arcane::Materials::MatItemVariableScalarInViewT< ItemType, DataType >::operator[](), Arcane::Materials::MatItemVariableScalarInViewT< ItemType, DataType >::operator[](), Arcane::Materials::MatItemVariableScalarOutViewT< ItemType, DataType >::operator[](), Arcane::Materials::MatItemVariableScalarOutViewT< ItemType, DataType >::operator[](), Arcane::Accelerator::MatItemVariableScalarOutViewT< ItemType, Accessor >::setValue(), Arcane::Accelerator::MatItemVariableScalarInViewT< ItemType, DataType >::value(), Arcane::Accelerator::MatItemVariableScalarOutViewT< ItemType, Accessor >::value(), Arcane::Materials::MatItemVariableScalarInViewT< ItemType, DataType >::value(), and Arcane::Materials::MatItemVariableScalarOutViewT< ItemType, DataType >::value().
|
inlineconstexpr |
Indicates if the instance represents the null entity.
Definition at line 79 of file core/materials/MatVarIndex.h.
|
inlineconstexpr |
Indicates if the instance represents the null entity.
Definition at line 73 of file core/materials/MatVarIndex.h.
|
inlineconstexpr |
Sets the entity to the null instance.
Definition at line 66 of file core/materials/MatVarIndex.h.
|
inlineconstexpr |
Sets the index.
Definition at line 59 of file core/materials/MatVarIndex.h.
|
inlineconstexpr |
Returns the index in the value array.
Definition at line 56 of file core/materials/MatVarIndex.h.
Referenced by operator<<, operator==, Arcane::Accelerator::MatItemVariableScalarInViewT< ItemType, DataType >::operator[](), Arcane::Accelerator::MatItemVariableScalarOutViewT< ItemType, Accessor >::operator[](), Arcane::Materials::MatItemVariableScalarInViewT< ItemType, DataType >::operator[](), Arcane::Materials::MatItemVariableScalarInViewT< ItemType, DataType >::operator[](), Arcane::Materials::MatItemVariableScalarOutViewT< ItemType, DataType >::operator[](), Arcane::Materials::MatItemVariableScalarOutViewT< ItemType, DataType >::operator[](), Arcane::Accelerator::MatItemVariableScalarOutViewT< ItemType, Accessor >::setValue(), Arcane::Accelerator::MatItemVariableScalarInViewT< ItemType, DataType >::value(), Arcane::Accelerator::MatItemVariableScalarOutViewT< ItemType, Accessor >::value(), Arcane::Materials::MatItemVariableScalarInViewT< ItemType, DataType >::value(), and Arcane::Materials::MatItemVariableScalarOutViewT< ItemType, DataType >::value().
|
friend |
Comparison operator.
Definition at line 95 of file core/materials/MatVarIndex.h.
References operator==.
|
friend |
Output operator.
Definition at line 27 of file MatVarIndex.cc.
References arrayIndex(), operator<<, and valueIndex().
Referenced by operator<<.
|
friend |
Comparison operator.
Definition at line 86 of file core/materials/MatVarIndex.h.
References arrayIndex(), and valueIndex().
Referenced by operator!=.