Base class for managing indices of an N-dimensional array. More...
#include <arcane/utils/MDIndex.h>
Public Member Functions | |
| constexpr std::array< Int32, RankValue > | operator() () const |
| List of indices. | |
| constexpr __host__ __device__ Int32 | operator[] (int i) const |
| Returns the i-th index. | |
| constexpr __host__ __device__ Int64 | asInt64 (int i) const |
| Returns the i-th index in the form of an Int64. | |
| constexpr __host__ __device__ void | add (const MDIndexBase< RankValue > &rhs) |
| Adds rhs to the index values of the instance. | |
| constexpr std::array< Int32, RankValue > | operator() () const |
| List of indices. | |
| constexpr __host__ __device__ Int32 | operator[] (int i) const |
| Returns the i-th index. | |
| constexpr __host__ __device__ Int64 | asInt64 (int i) const |
| Returns the i-th index as an Int64. | |
| constexpr __host__ __device__ void | add (const MDIndexBase< RankValue > &rhs) |
| Adds rhs to the index values of the instance. | |
Protected Member Functions | |
| constexpr | MDIndexBase (std::array< Int32, RankValue > _id) |
| constexpr | MDIndexBase (std::array< Int32, RankValue > _id) |
Protected Attributes | |
| std::array< Int32, RankValue > | m_indexes = {} |
Base class for managing indices of an N-dimensional array.
Definition at line 41 of file arcane/src/arcane/utils/MDIndex.h.
|
inlineconstexprprotected |
Definition at line 47 of file arcane/src/arcane/utils/MDIndex.h.
|
inlineconstexprprotected |
Definition at line 48 of file arcane/src/arcane/utils/MDIndex.h.
|
inlineconstexprprotected |
Definition at line 40 of file arccore/src/base/arccore/base/MDIndex.h.
|
inlineconstexprprotected |
Definition at line 41 of file arccore/src/base/arccore/base/MDIndex.h.
|
inlineconstexpr |
Adds rhs to the index values of the instance.
Definition at line 71 of file arcane/src/arcane/utils/MDIndex.h.
|
inlineconstexpr |
Adds rhs to the index values of the instance.
Definition at line 64 of file arccore/src/base/arccore/base/MDIndex.h.
|
inlineconstexpr |
Returns the i-th index in the form of an Int64.
Definition at line 64 of file arcane/src/arcane/utils/MDIndex.h.
|
inlineconstexpr |
Returns the i-th index as an Int64.
Definition at line 57 of file arccore/src/base/arccore/base/MDIndex.h.
|
inlineconstexpr |
List of indices.
Definition at line 55 of file arcane/src/arcane/utils/MDIndex.h.
|
inlineconstexpr |
List of indices.
Definition at line 48 of file arccore/src/base/arccore/base/MDIndex.h.
|
inlineconstexpr |
Returns the i-th index.
Definition at line 58 of file arcane/src/arcane/utils/MDIndex.h.
|
inlineconstexpr |
Returns the i-th index.
Definition at line 51 of file arccore/src/base/arccore/base/MDIndex.h.
|
protected |
Definition at line 79 of file arcane/src/arcane/utils/MDIndex.h.