View for a 3D array. More...
Public Member Functions | |
| constexpr | Array3View (DataType *ptr, Integer dim1_size, Integer dim2_size, Integer dim3_size) |
| constexpr Integer | dim1Size () const |
| constexpr Integer | dim2Size () const |
| constexpr Integer | dim3Size () const |
| constexpr Integer | totalNbElement () const |
| constexpr Array2View< DataType > | operator[] (Integer i) |
| constexpr ConstArray2View< DataType > | operator[] (Integer i) const |
| constexpr DataType | item (Integer i, Integer j, Integer k) const |
| constexpr const DataType & | operator() (Integer i, Integer j, Integer k) const |
| constexpr DataType & | operator() (Integer i, Integer j, Integer k) |
| constexpr DataType | setItem (Integer i, Integer j, Integer k, const DataType &value) |
| DataType * | unguardedBasePointer () |
| Pointer to the allocated memory. | |
Private Attributes | |
| DataType * | m_ptr |
| Integer | m_dim1_size |
| Size of the 1st dimension. | |
| Integer | m_dim2_size |
| Size of the 2nd dimension. | |
| Integer | m_dim3_size |
| Size of the 3rd dimension. | |
| Integer | m_dim23_size |
| dim2 * dim3 | |
View for a 3D array.
A 3D view can be created from a classic array (Array) as follows:
For performance reasons, it is preferable to access elements via operator()()
Definition at line 44 of file arccore/src/base/arccore/base/Array3View.h.
|
inlineconstexpr |
Definition at line 48 of file arccore/src/base/arccore/base/Array3View.h.
|
inlineconstexpr |
Definition at line 56 of file arccore/src/base/arccore/base/Array3View.h.
|
inlineconstexpr |
Definition at line 67 of file arccore/src/base/arccore/base/Array3View.h.
|
inlineconstexpr |
Definition at line 68 of file arccore/src/base/arccore/base/Array3View.h.
|
inlineconstexpr |
Definition at line 69 of file arccore/src/base/arccore/base/Array3View.h.
|
inlineconstexpr |
Definition at line 84 of file arccore/src/base/arccore/base/Array3View.h.
|
inlineconstexpr |
Definition at line 94 of file arccore/src/base/arccore/base/Array3View.h.
|
inlineconstexpr |
Definition at line 89 of file arccore/src/base/arccore/base/Array3View.h.
|
inlineconstexpr |
Definition at line 74 of file arccore/src/base/arccore/base/Array3View.h.
|
inlineconstexpr |
Definition at line 79 of file arccore/src/base/arccore/base/Array3View.h.
|
inlineconstexpr |
Definition at line 111 of file arccore/src/base/arccore/base/Array3View.h.
|
inlineconstexpr |
Definition at line 70 of file arccore/src/base/arccore/base/Array3View.h.
|
inline |
Pointer to the allocated memory.
Definition at line 122 of file arccore/src/base/arccore/base/Array3View.h.
|
private |
Size of the 1st dimension.
Definition at line 130 of file arccore/src/base/arccore/base/Array3View.h.
|
private |
dim2 * dim3
Definition at line 133 of file arccore/src/base/arccore/base/Array3View.h.
|
private |
Size of the 2nd dimension.
Definition at line 131 of file arccore/src/base/arccore/base/Array3View.h.
|
private |
Size of the 3rd dimension.
Definition at line 132 of file arccore/src/base/arccore/base/Array3View.h.
|
private |
Definition at line 129 of file arccore/src/base/arccore/base/Array3View.h.