Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::ConstMultiArray2View< DataType > Class Template Reference

Constant view on a MultiArray2. More...

#include <arcane/utils/MultiArray2View.h>

Collaboration diagram for Arcane::ConstMultiArray2View< DataType >:

Public Member Functions

 ConstMultiArray2View (ConstArrayView< DataType > buf, ConstArrayView< Int32 > indexes, ConstArrayView< Int32 > sizes)
 View on the array buf.
 ConstMultiArray2View ()=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< Int32dim2Sizes () const
 Number of elements in the second dimension.
Int32 totalNbElement () const
 Total number of elements in the array.
ConstArrayView< DataType > operator[] (Int32 i) const
 The i-th element of the array.

Private Attributes

ConstArrayView< DataType > m_buffer
ConstArrayView< Int32m_indexes
ConstArrayView< Int32m_sizes

Friends

class MultiArray2< DataType >

Detailed Description

template<class DataType>
class Arcane::ConstMultiArray2View< DataType >

Constant view on a MultiArray2.

Definition at line 92 of file MultiArray2View.h.

Constructor & Destructor Documentation

◆ ConstMultiArray2View()

template<class DataType>
Arcane::ConstMultiArray2View< DataType >::ConstMultiArray2View ( ConstArrayView< DataType > buf,
ConstArrayView< Int32 > indexes,
ConstArrayView< Int32 > sizes )
inline

View on the array buf.

Definition at line 101 of file MultiArray2View.h.

Member Function Documentation

◆ dim1Size()

template<class DataType>
Int32 Arcane::ConstMultiArray2View< DataType >::dim1Size ( ) const
inline

Number of elements in the first dimension.

Definition at line 114 of file MultiArray2View.h.

Referenced by Arcane::ConstMultiArray2View< TiedNode >::size().

Here is the caller graph for this function:

◆ dim2Sizes()

template<class DataType>
ConstArrayView< Int32 > Arcane::ConstMultiArray2View< DataType >::dim2Sizes ( ) const
inline

Number of elements in the second dimension.

Definition at line 123 of file MultiArray2View.h.

◆ operator[]()

template<class DataType>
ConstArrayView< DataType > Arcane::ConstMultiArray2View< DataType >::operator[] ( Int32 i) const
inline

The i-th element of the array.

Definition at line 131 of file MultiArray2View.h.

◆ size()

template<class DataType>
ARCANE_DEPRECATED_122 Int32 Arcane::ConstMultiArray2View< DataType >::size ( ) const
inline

Number of elements in the first dimension.

Deprecated
Use dim1Size() instead.

Definition at line 120 of file MultiArray2View.h.

Referenced by Arcane::MeshUtils::writeMeshConnectivity().

Here is the caller graph for this function:

◆ totalNbElement()

template<class DataType>
Int32 Arcane::ConstMultiArray2View< DataType >::totalNbElement ( ) const
inline

Total number of elements in the array.

Definition at line 126 of file MultiArray2View.h.

◆ MultiArray2< DataType >

template<class DataType>
friend class MultiArray2< DataType >
friend

Definition at line 82 of file MultiArray2View.h.

Member Data Documentation

◆ m_buffer

template<class DataType>
ConstArrayView<DataType> Arcane::ConstMultiArray2View< DataType >::m_buffer
private

Definition at line 138 of file MultiArray2View.h.

◆ m_indexes

template<class DataType>
ConstArrayView<Int32> Arcane::ConstMultiArray2View< DataType >::m_indexes
private

Definition at line 139 of file MultiArray2View.h.

◆ m_sizes

template<class DataType>
ConstArrayView<Int32> Arcane::ConstMultiArray2View< DataType >::m_sizes
private

Definition at line 140 of file MultiArray2View.h.


The documentation for this class was generated from the following file: