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

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

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/base/arccore/base/Array3View.h>

Collaboration diagram for Arcane::ConstArray3View< DataType >:

Public Member Functions

constexpr ConstArray3View (const 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 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 const DataType * unguardedBasePointer () const
 Pointer to the allocated memory.
constexpr const DataType * data () const
 Pointer to the allocated memory.

Private Attributes

const 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

Detailed Description

template<class DataType>
class Arcane::ConstArray3View< DataType >

View for a constant 3D array.

Definition at line 144 of file arccore/src/base/arccore/base/Array3View.h.

Constructor & Destructor Documentation

◆ ConstArray3View() [1/2]

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

Definition at line 148 of file arccore/src/base/arccore/base/Array3View.h.

◆ ConstArray3View() [2/2]

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

Definition at line 156 of file arccore/src/base/arccore/base/Array3View.h.

Member Function Documentation

◆ data()

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

Pointer to the allocated memory.

Definition at line 203 of file arccore/src/base/arccore/base/Array3View.h.

◆ dim1Size()

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

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

◆ dim2Size()

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

Definition at line 168 of file arccore/src/base/arccore/base/Array3View.h.

◆ dim3Size()

template<class DataType>
Integer Arcane::ConstArray3View< DataType >::dim3Size ( ) const
inlineconstexpr

Definition at line 169 of file arccore/src/base/arccore/base/Array3View.h.

◆ item()

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

Definition at line 179 of file arccore/src/base/arccore/base/Array3View.h.

◆ operator()()

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

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

◆ operator[]()

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

Definition at line 174 of file arccore/src/base/arccore/base/Array3View.h.

◆ totalNbElement()

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

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

◆ unguardedBasePointer()

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

Pointer to the allocated memory.

Definition at line 200 of file arccore/src/base/arccore/base/Array3View.h.

Member Data Documentation

◆ m_dim1_size

template<class DataType>
Integer Arcane::ConstArray3View< DataType >::m_dim1_size
private

Size of the 1st dimension.

Definition at line 208 of file arccore/src/base/arccore/base/Array3View.h.

◆ m_dim23_size

template<class DataType>
Integer Arcane::ConstArray3View< DataType >::m_dim23_size
private

dim2 * dim3

Definition at line 211 of file arccore/src/base/arccore/base/Array3View.h.

◆ m_dim2_size

template<class DataType>
Integer Arcane::ConstArray3View< DataType >::m_dim2_size
private

Size of the 2nd dimension.

Definition at line 209 of file arccore/src/base/arccore/base/Array3View.h.

◆ m_dim3_size

template<class DataType>
Integer Arcane::ConstArray3View< DataType >::m_dim3_size
private

Size of the 3rd dimension.

Definition at line 210 of file arccore/src/base/arccore/base/Array3View.h.

◆ m_ptr

template<class DataType>
const DataType* Arcane::ConstArray3View< DataType >::m_ptr
private

Definition at line 207 of file arccore/src/base/arccore/base/Array3View.h.


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