Arcane  4.2.2.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 147 of file arccore/src/base/arccore/base/Array2View.h.

Constructor & Destructor Documentation

◆ ConstArray2View() [1/2]

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

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

◆ ConstArray2View() [2/2]

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

Definition at line 160 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 207 of file arccore/src/base/arccore/base/Array2View.h.

◆ dim1Size()

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

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

◆ dim2Size()

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

Definition at line 171 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 181 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 187 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 176 of file arccore/src/base/arccore/base/Array2View.h.

◆ totalNbElement()

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

Definition at line 172 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 204 of file arccore/src/base/arccore/base/Array2View.h.

◆ SmallSpan2< const DataType >

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

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

◆ Span2< const DataType >

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

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


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