Multi-sized 2D array with reference semantics. More...
#include <arcane/utils/MultiArray2.h>
Public Types | |
| using | ThatClass = SharedMultiArray2<DataType> |
| Public Types inherited from Arcane::MultiArray2< DataType > | |
| using | ConstReferenceType = typename UniqueArray<DataType>::ConstReferenceType |
| using | ThatClass = MultiArray2<DataType> |
Public Member Functions | |
| SharedMultiArray2 (ConstArrayView< Int32 > sizes) | |
| SharedMultiArray2 (ConstMultiArray2View< DataType > view) | |
| SharedMultiArray2 (const SharedMultiArray2< DataType > &rhs) | |
| SharedMultiArray2 (const UniqueMultiArray2< DataType > &rhs) | |
| ThatClass & | operator= (const ThatClass &rhs) |
| void | operator= (ConstMultiArray2View< DataType > view) |
| ThatClass & | operator= (const UniqueMultiArray2< DataType > &rhs) |
| void | operator= (const MultiArray2< DataType > &rhs)=delete |
| SharedMultiArray2< DataType > | clone () const |
| Clones the array. | |
| Public Member Functions inherited from Arcane::MultiArray2< DataType > | |
| MultiArray2 (ConstArrayView< Int32 > sizes) | |
| MultiArray2 (const ThatClass &rhs)=delete | |
| ThatClass & | operator= (const ThatClass &rhs)=delete |
| ArrayView< DataType > | operator[] (Integer i) |
| ConstArrayView< DataType > | operator[] (Integer i) const |
| Int32 | totalNbElement () const |
| Total number of elements. | |
| void | clear () |
| Clears the array elements. | |
| void | fill (const DataType &v) |
| Fills the array elements with the value v. | |
| DataType & | at (Integer i, Integer j) |
| ConstReferenceType | at (Integer i, Integer j) const |
| void | setAt (Integer i, Integer j, ConstReferenceType v) |
| Int32 | dim1Size () const |
| Number of elements following the first dimension. | |
| ConstArrayView< Int32 > | dim2Sizes () const |
| Array of the number of elements following the second dimension. | |
| operator MultiArray2View< DataType > () | |
| Conversion operator to a mutable view. | |
| operator ConstMultiArray2View< DataType > () const | |
| Conversion operator to a constant view. | |
| MultiArray2View< DataType > | view () |
| Mutable view of the array. | |
| ConstMultiArray2View< DataType > | constView () const |
| Constant view of the array. | |
| JaggedSmallSpan< DataType > | span () |
| Mutable view of the array. | |
| JaggedSmallSpan< const DataType > | span () const |
| Constant view of the array. | |
| JaggedSmallSpan< const DataType > | constSpan () const |
| Constant view of the array. | |
| ArrayView< DataType > | viewAsArray () |
| View of the array as a 1D array. | |
| ConstArrayView< DataType > | viewAsArray () const |
| View of the array as a 1D array. | |
| void | resize (ConstArrayView< Int32 > new_sizes) |
| Resizes the array with new sizes new_sizes. | |
Additional Inherited Members | |
| Protected Member Functions inherited from Arcane::MultiArray2< DataType > | |
| MultiArray2 (const MultiArray2< DataType > &rhs, bool do_clone) | |
| Copy constructor. Temporary method to be removed once the copy constructor and copy operator are deleted. | |
| MultiArray2 (ConstMultiArray2View< DataType > aview) | |
| MultiArray2 (const MemoryAllocationOptions &allocation_options) | |
| MultiArray2 (const MemoryAllocationOptions &allocation_options, ConstArrayView< Int32 > sizes) | |
| ConstArrayView< DataType > | _value (Integer i) const |
| void | _resize (ConstArrayView< Int32 > ar) |
| void | _copy (const MultiArray2< DataType > &rhs, bool do_clone) |
| void | _copy (ConstMultiArray2View< DataType > aview) |
Multi-sized 2D array with reference semantics.
Definition at line 318 of file MultiArray2.h.
| using Arcane::SharedMultiArray2< DataType >::ThatClass = SharedMultiArray2<DataType> |
Definition at line 323 of file MultiArray2.h.
|
inlineexplicit |
Definition at line 328 of file MultiArray2.h.
|
inline |
Definition at line 331 of file MultiArray2.h.
|
inline |
Definition at line 334 of file MultiArray2.h.
| Arcane::SharedMultiArray2< DataType >::SharedMultiArray2 | ( | const UniqueMultiArray2< DataType > & | rhs | ) |
Definition at line 439 of file MultiArray2.h.
|
inline |
Clones the array.
Definition at line 357 of file MultiArray2.h.
References Arcane::MultiArray2< DataType >::constView().
|
inline |
Definition at line 341 of file MultiArray2.h.
| SharedMultiArray2< DataType > & Arcane::SharedMultiArray2< DataType >::operator= | ( | const UniqueMultiArray2< DataType > & | rhs | ) |
Definition at line 447 of file MultiArray2.h.
|
inline |
Definition at line 347 of file MultiArray2.h.