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

Constant view for a 4D array. More...

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

Collaboration diagram for Arcane::ConstArray4View< DataType >:

Public Member Functions

constexpr ConstArray4View (DataType *ptr, Integer dim1_size, Integer dim2_size, Integer dim3_size, Integer dim4_size)
constexpr Integer dim1Size () const
constexpr Integer dim2Size () const
constexpr Integer dim3Size () const
constexpr Integer dim4Size () const
constexpr Integer totalNbElement () const
constexpr ConstArray3View< DataType > operator[] (Integer i) const
constexpr const DataType & operator() (Integer i, Integer j, Integer k, Integer l) const
 Value for element i,j,k,l.
constexpr DataType item (Integer i, Integer j, Integer k, Integer l) const
constexpr const DataType * unguardedBasePointer ()
 Pointer to the allocated memory.
constexpr const DataType * data ()
 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_dim4_size
 Size of the 4th dimension.
Integer m_dim34_size
 dim3 * dim4
Integer m_dim234_size
 dim2 * dim3 * dim4

Detailed Description

template<class DataType>
class Arcane::ConstArray4View< DataType >

Constant view for a 4D array.

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

Constructor & Destructor Documentation

◆ ConstArray4View() [1/2]

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

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

◆ ConstArray4View() [2/2]

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

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

Member Function Documentation

◆ data()

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

Pointer to the allocated memory.

Definition at line 236 of file arccore/src/base/arccore/base/Array4View.h.

◆ dim1Size()

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

Definition at line 197 of file arccore/src/base/arccore/base/Array4View.h.

◆ dim2Size()

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

Definition at line 198 of file arccore/src/base/arccore/base/Array4View.h.

◆ dim3Size()

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

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

◆ dim4Size()

template<class DataType>
Integer Arcane::ConstArray4View< DataType >::dim4Size ( ) const
inlineconstexpr

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

◆ item()

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

Definition at line 224 of file arccore/src/base/arccore/base/Array4View.h.

◆ operator()()

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

Value for element i,j,k,l.

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

References m_dim1_size, m_dim234_size, m_dim2_size, m_dim34_size, m_dim3_size, and m_dim4_size.

◆ operator[]()

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

Definition at line 205 of file arccore/src/base/arccore/base/Array4View.h.

◆ totalNbElement()

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

Definition at line 201 of file arccore/src/base/arccore/base/Array4View.h.

◆ unguardedBasePointer()

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

Pointer to the allocated memory.

Definition at line 233 of file arccore/src/base/arccore/base/Array4View.h.

Member Data Documentation

◆ m_dim1_size

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

Size of the 1st dimension.

Definition at line 241 of file arccore/src/base/arccore/base/Array4View.h.

Referenced by operator()().

◆ m_dim234_size

template<class DataType>
Integer Arcane::ConstArray4View< DataType >::m_dim234_size
private

dim2 * dim3 * dim4

Definition at line 246 of file arccore/src/base/arccore/base/Array4View.h.

Referenced by operator()().

◆ m_dim2_size

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

Size of the 2nd dimension.

Definition at line 242 of file arccore/src/base/arccore/base/Array4View.h.

Referenced by operator()().

◆ m_dim34_size

template<class DataType>
Integer Arcane::ConstArray4View< DataType >::m_dim34_size
private

dim3 * dim4

Definition at line 245 of file arccore/src/base/arccore/base/Array4View.h.

Referenced by operator()().

◆ m_dim3_size

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

Size of the 3rd dimension.

Definition at line 243 of file arccore/src/base/arccore/base/Array4View.h.

Referenced by operator()().

◆ m_dim4_size

template<class DataType>
Integer Arcane::ConstArray4View< DataType >::m_dim4_size
private

Size of the 4th dimension.

Definition at line 244 of file arccore/src/base/arccore/base/Array4View.h.

Referenced by operator()().

◆ m_ptr

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

Definition at line 240 of file arccore/src/base/arccore/base/Array4View.h.


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