Modifiable view on a MultiArray2. More...
#include <arcane/utils/MultiArray2View.h>
Public Member Functions | |
| MultiArray2View (ArrayView< DataType > buf, ConstArrayView< Int32 > indexes, ConstArrayView< Int32 > sizes) | |
| View on the array buf. | |
| MultiArray2View ()=default | |
| Empty view. | |
| Int32 | dim1Size () const |
| Number of elements in the first dimension. | |
| ARCANE_DEPRECATED_122 Int32 | size () const |
| Number of elements in the first dimension. | |
| ConstArrayView< Int32 > | dim2Sizes () const |
| Number of elements in the second dimension. | |
| Int32 | totalNbElement () const |
| Total number of elements in the array. | |
| ArrayView< DataType > | operator[] (Int32 i) |
| The i-th element of the array. | |
| ConstArrayView< DataType > | operator[] (Int32 i) const |
| The i-th element of the array. | |
Private Attributes | |
| ArrayView< DataType > | m_buffer |
| ConstArrayView< Int32 > | m_indexes |
| ConstArrayView< Int32 > | m_sizes |
Modifiable view on a MultiArray2.
Definition at line 35 of file MultiArray2View.h.
|
inline |
View on the array buf.
Definition at line 40 of file MultiArray2View.h.
|
inline |
Number of elements in the first dimension.
Definition at line 51 of file MultiArray2View.h.
Referenced by size().
|
inline |
Number of elements in the second dimension.
Definition at line 60 of file MultiArray2View.h.
|
inline |
The i-th element of the array.
Definition at line 68 of file MultiArray2View.h.
|
inline |
The i-th element of the array.
Definition at line 73 of file MultiArray2View.h.
|
inline |
Number of elements in the first dimension.
Definition at line 57 of file MultiArray2View.h.
References dim1Size().
|
inline |
Total number of elements in the array.
Definition at line 63 of file MultiArray2View.h.
|
private |
Definition at line 80 of file MultiArray2View.h.
|
private |
Definition at line 81 of file MultiArray2View.h.
|
private |
Definition at line 82 of file MultiArray2View.h.