Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::RealArray2Variant Class Reference

Variant that can contain the types ConstArray2View, Real2x2, and Real3x3. More...

#include <arcane/core/datatype/RealArray2Variant.h>

Collaboration diagram for Arcane::RealArray2Variant:

Public Member Functions

 RealArray2Variant (UniqueArray2< Real > v)
 RealArray2Variant (ConstArray2View< Real > v)
 RealArray2Variant (Real2x2 r)
 RealArray2Variant (Real3x3 r)
RealArray2Variant & operator= (const RealArray2Variant &rhs)=default
RealArray2Variant & operator= (ConstArray2View< Real > v)
RealArray2Variant & operator= (Real2x2 r)
RealArray2Variant & operator= (Real3x3 r)
Realoperator[] (Integer index)
const Realoperator[] (Integer index) const
Realoperator() (Int32 i, Int32 j)
Real operator() (Int32 i, Int32 j) const
Int32 dim1Size () const
Int32 dim2Size () const
Realdata ()
const Realdata () const
 operator ConstArray2View< Real > () const
 operator Real2x2 () const
 operator Real3x3 () const

Static Public Attributes

static const Integer MAX_DIM1_SIZE = 3
static const Integer MAX_DIM2_SIZE = 3

Private Member Functions

void _setValue (const Real *v, Integer nb_dim1, Integer nb_dim2)

Private Attributes

Real m_value [MAX_DIM1_SIZE][MAX_DIM2_SIZE]
Int32 m_nb_dim1 = 0
Int32 m_nb_dim2 = 0

Detailed Description

Variant that can contain the types ConstArray2View, Real2x2, and Real3x3.

Definition at line 39 of file RealArray2Variant.h.

Constructor & Destructor Documentation

◆ RealArray2Variant() [1/4]

Arcane::RealArray2Variant::RealArray2Variant ( UniqueArray2< Real > v)
inline

Definition at line 47 of file RealArray2Variant.h.

◆ RealArray2Variant() [2/4]

Arcane::RealArray2Variant::RealArray2Variant ( ConstArray2View< Real > v)
inline

Definition at line 50 of file RealArray2Variant.h.

◆ RealArray2Variant() [3/4]

Arcane::RealArray2Variant::RealArray2Variant ( Real2x2 r)
inline

Definition at line 54 of file RealArray2Variant.h.

◆ RealArray2Variant() [4/4]

Arcane::RealArray2Variant::RealArray2Variant ( Real3x3 r)
inline

Definition at line 58 of file RealArray2Variant.h.

Member Function Documentation

◆ _setValue()

void Arcane::RealArray2Variant::_setValue ( const Real * v,
Integer nb_dim1,
Integer nb_dim2 )
inlineprivate

Definition at line 159 of file RealArray2Variant.h.

◆ data() [1/2]

Real * Arcane::RealArray2Variant::data ( )
inline

Definition at line 123 of file RealArray2Variant.h.

◆ data() [2/2]

const Real * Arcane::RealArray2Variant::data ( ) const
inline

Definition at line 124 of file RealArray2Variant.h.

◆ dim1Size()

Int32 Arcane::RealArray2Variant::dim1Size ( ) const
inline

Definition at line 121 of file RealArray2Variant.h.

◆ dim2Size()

Int32 Arcane::RealArray2Variant::dim2Size ( ) const
inline

Definition at line 122 of file RealArray2Variant.h.

◆ operator ConstArray2View< Real >()

Arcane::RealArray2Variant::operator ConstArray2View< Real > ( ) const
inline

Definition at line 125 of file RealArray2Variant.h.

◆ operator Real2x2()

Arcane::RealArray2Variant::operator Real2x2 ( ) const
inline

Definition at line 129 of file RealArray2Variant.h.

◆ operator Real3x3()

Arcane::RealArray2Variant::operator Real3x3 ( ) const
inline

Definition at line 133 of file RealArray2Variant.h.

◆ operator()() [1/2]

Real & Arcane::RealArray2Variant::operator() ( Int32 i,
Int32 j )
inline

Definition at line 108 of file RealArray2Variant.h.

◆ operator()() [2/2]

Real Arcane::RealArray2Variant::operator() ( Int32 i,
Int32 j ) const
inline

Definition at line 114 of file RealArray2Variant.h.

◆ operator=() [1/3]

RealArray2Variant & Arcane::RealArray2Variant::operator= ( ConstArray2View< Real > v)
inline

Definition at line 81 of file RealArray2Variant.h.

◆ operator=() [2/3]

RealArray2Variant & Arcane::RealArray2Variant::operator= ( Real2x2 r)
inline

Definition at line 86 of file RealArray2Variant.h.

◆ operator=() [3/3]

RealArray2Variant & Arcane::RealArray2Variant::operator= ( Real3x3 r)
inline

Definition at line 91 of file RealArray2Variant.h.

◆ operator[]() [1/2]

Real * Arcane::RealArray2Variant::operator[] ( Integer index)
inline

Definition at line 97 of file RealArray2Variant.h.

◆ operator[]() [2/2]

const Real * Arcane::RealArray2Variant::operator[] ( Integer index) const
inline

Definition at line 102 of file RealArray2Variant.h.

Member Data Documentation

◆ m_nb_dim1

Int32 Arcane::RealArray2Variant::m_nb_dim1 = 0
private

Definition at line 154 of file RealArray2Variant.h.

◆ m_nb_dim2

Int32 Arcane::RealArray2Variant::m_nb_dim2 = 0
private

Definition at line 155 of file RealArray2Variant.h.

◆ m_value

Real Arcane::RealArray2Variant::m_value[MAX_DIM1_SIZE][MAX_DIM2_SIZE]
private

Definition at line 153 of file RealArray2Variant.h.

◆ MAX_DIM1_SIZE

const Integer Arcane::RealArray2Variant::MAX_DIM1_SIZE = 3
static

Definition at line 43 of file RealArray2Variant.h.

◆ MAX_DIM2_SIZE

const Integer Arcane::RealArray2Variant::MAX_DIM2_SIZE = 3
static

Definition at line 44 of file RealArray2Variant.h.


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