Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::ConstArray2View< DataType > Class Template Reference

View for a constant 2D array. More...

#include <arccore/base/Array2View.h>

Public Member Functions

constexpr ConstArray2View (const DataType *ptr, Integer dim1_size, Integer dim2_size)
constexpr ConstArray2View (const Array2View< DataType > &rhs)
constexpr Integer dim1Size () const
constexpr Integer dim2Size () const
constexpr Integer totalNbElement () const
constexpr ConstArrayView< DataType > operator[] (Integer i) const
constexpr DataType item (Integer i, Integer j) const
constexpr const DataType operator() (Integer i, Integer j) const
 Value of element [i][j].
constexpr const DataType * unguardedBasePointer () const
 Pointer to the allocated memory.
constexpr const DataType * data () const
 Pointer to the allocated memory.

Friends

class SmallSpan2< const DataType >
class Span2< const DataType >

Detailed Description

template<class DataType>
class Arcane::ConstArray2View< DataType >

View for a constant 2D array.

Definition at line 154 of file arccore/src/base/arccore/base/Array2View.h.

Constructor & Destructor Documentation

◆ ConstArray2View() [1/3]

template<class DataType>
Arcane::ConstArray2View< DataType >::ConstArray2View ( const DataType * ptr,
Integer dim1_size,
Integer dim2_size )
inlineconstexpr

Definition at line 161 of file arccore/src/base/arccore/base/Array2View.h.

◆ ConstArray2View() [2/3]

template<class DataType>
Arcane::ConstArray2View< DataType >::ConstArray2View ( const Array2View< DataType > & rhs)
inlineconstexpr

Definition at line 167 of file arccore/src/base/arccore/base/Array2View.h.

◆ ConstArray2View() [3/3]

template<class DataType>
Arcane::ConstArray2View< DataType >::ConstArray2View ( )
inlineconstexpr

Definition at line 173 of file arccore/src/base/arccore/base/Array2View.h.

Member Function Documentation

◆ data()

template<class DataType>
const DataType * Arcane::ConstArray2View< DataType >::data ( ) const
inlineconstexpr

Pointer to the allocated memory.

Definition at line 219 of file arccore/src/base/arccore/base/Array2View.h.

◆ dim1Size()

template<class DataType>
Integer Arcane::ConstArray2View< DataType >::dim1Size ( ) const
inlineconstexpr

Definition at line 182 of file arccore/src/base/arccore/base/Array2View.h.

◆ dim2Size()

template<class DataType>
Integer Arcane::ConstArray2View< DataType >::dim2Size ( ) const
inlineconstexpr

Definition at line 183 of file arccore/src/base/arccore/base/Array2View.h.

◆ item()

template<class DataType>
DataType Arcane::ConstArray2View< DataType >::item ( Integer i,
Integer j ) const
inlineconstexpr

Definition at line 193 of file arccore/src/base/arccore/base/Array2View.h.

◆ operator()()

template<class DataType>
const DataType Arcane::ConstArray2View< DataType >::operator() ( Integer i,
Integer j ) const
inlineconstexpr

Value of element [i][j].

Definition at line 199 of file arccore/src/base/arccore/base/Array2View.h.

◆ operator[]()

template<class DataType>
ConstArrayView< DataType > Arcane::ConstArray2View< DataType >::operator[] ( Integer i) const
inlineconstexpr

Definition at line 188 of file arccore/src/base/arccore/base/Array2View.h.

◆ totalNbElement()

template<class DataType>
Integer Arcane::ConstArray2View< DataType >::totalNbElement ( ) const
inlineconstexpr

Definition at line 184 of file arccore/src/base/arccore/base/Array2View.h.

◆ unguardedBasePointer()

template<class DataType>
const DataType * Arcane::ConstArray2View< DataType >::unguardedBasePointer ( ) const
inlineconstexpr

Pointer to the allocated memory.

Definition at line 216 of file arccore/src/base/arccore/base/Array2View.h.

◆ SmallSpan2< const DataType >

template<class DataType>
friend class SmallSpan2< const DataType >
friend

Definition at line 143 of file arccore/src/base/arccore/base/Array2View.h.

◆ Span2< const DataType >

template<class DataType>
friend class Span2< const DataType >
friend

Definition at line 143 of file arccore/src/base/arccore/base/Array2View.h.


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