Version: 9.12.0
MED::TTMeshValue< TValueType > Struct Template Reference

The class is a helper one. It provide safe and flexible way to get access to values for a MED TimeStamp. More...

#include <MED_Structures.hxx>

Inheritance diagram for MED::TTMeshValue< TValueType >:

Public Types

typedef TValueType TValue
 
typedef TValueType::value_type TElement
 
typedef TSlice< TElementTValueSlice
 
typedef TCSlice< TElementTCValueSlice
 
typedef TVector< TCValueSliceTCValueSliceArr
 
typedef TVector< TValueSliceTValueSliceArr
 

Public Member Functions

void Allocate (TInt theNbElem, TInt theNbGauss, TInt theNbComp, EModeSwitch theMode=eFULL_INTERLACE)
 Initialize the class. More...
 
virtual unsigned char * GetValuePtr ()
 Returns bare pointer on the internal value representation. More...
 
virtual TElementGetPointer ()
 Returns bare pointer on the internal value representation. More...
 
virtual const TElementGetPointer () const
 Returns bare pointer on the internal value representation. More...
 
TCValueSliceArr GetGaussValueSliceArr (TInt theElemId) const
 Iteration through Gauss Points by their components. More...
 
TValueSliceArr GetGaussValueSliceArr (TInt theElemId)
 Iteration through Gauss Points by their components. More...
 
TCValueSliceArr GetCompValueSliceArr (TInt theElemId) const
 Iteration through components by corresponding Gauss Points. More...
 
TValueSliceArr GetCompValueSliceArr (TInt theElemId)
 Iteration through components by corresponding Gauss Points. More...
 
size_t GetSize () const
 Returns size of the value container. More...
 
size_t GetNbVal () const
 Returns MED interpretation of the value size. More...
 
size_t GetNbGauss () const
 Returns number of Gauss Points bounded with the value. More...
 
size_t GetStep () const
 Returns step inside of the data array. More...
 
EModeSwitch GetModeSwitch () const
 

Data Fields

TValue myValue
 
TInt myNbElem
 
TInt myNbComp
 
TInt myNbGauss
 
TInt myStep
 
EModeSwitch myModeSwitch
 Keeps the interlace mode. More...
 

Detailed Description

template<class TValueType>
struct MED::TTMeshValue< TValueType >

The class is a helper one. It provide safe and flexible way to get access to values for a MED TimeStamp.

Member Typedef Documentation

◆ TCValueSlice

template<class TValueType >
typedef TCSlice<TElement> MED::TTMeshValue< TValueType >::TCValueSlice

◆ TCValueSliceArr

template<class TValueType >
typedef TVector<TCValueSlice> MED::TTMeshValue< TValueType >::TCValueSliceArr

◆ TElement

template<class TValueType >
typedef TValueType::value_type MED::TTMeshValue< TValueType >::TElement

◆ TValue

template<class TValueType >
typedef TValueType MED::TTMeshValue< TValueType >::TValue

◆ TValueSlice

template<class TValueType >
typedef TSlice<TElement> MED::TTMeshValue< TValueType >::TValueSlice

◆ TValueSliceArr

template<class TValueType >
typedef TVector<TValueSlice> MED::TTMeshValue< TValueType >::TValueSliceArr

Member Function Documentation

◆ Allocate()

template<class TValueType >
void MED::TTMeshValue< TValueType >::Allocate ( TInt  theNbElem,
TInt  theNbGauss,
TInt  theNbComp,
EModeSwitch  theMode = eFULL_INTERLACE 
)

◆ GetCompValueSliceArr() [1/2]

template<class TValueType >
TValueSliceArr MED::TTMeshValue< TValueType >::GetCompValueSliceArr ( TInt  theElemId)

◆ GetCompValueSliceArr() [2/2]

template<class TValueType >
TCValueSliceArr MED::TTMeshValue< TValueType >::GetCompValueSliceArr ( TInt  theElemId) const

◆ GetGaussValueSliceArr() [1/2]

template<class TValueType >
TValueSliceArr MED::TTMeshValue< TValueType >::GetGaussValueSliceArr ( TInt  theElemId)

◆ GetGaussValueSliceArr() [2/2]

template<class TValueType >
TCValueSliceArr MED::TTMeshValue< TValueType >::GetGaussValueSliceArr ( TInt  theElemId) const

◆ GetModeSwitch()

EModeSwitch MED::TModeSwitchInfo::GetModeSwitch ( ) const
inherited

◆ GetNbGauss()

size_t MED::TMeshValueBase::GetNbGauss ( ) const
inherited

Returns number of Gauss Points bounded with the value.

◆ GetNbVal()

size_t MED::TMeshValueBase::GetNbVal ( ) const
inherited

Returns MED interpretation of the value size.

◆ GetPointer() [1/2]

template<class TValueType >
virtual TElement* MED::TTMeshValue< TValueType >::GetPointer ( )
virtual

Returns bare pointer on the internal value representation.

References MED::TTMeshValue< TValueType >::myValue.

◆ GetPointer() [2/2]

template<class TValueType >
virtual const TElement* MED::TTMeshValue< TValueType >::GetPointer ( ) const
virtual

Returns bare pointer on the internal value representation.

References MED::TTMeshValue< TValueType >::myValue.

◆ GetSize()

size_t MED::TMeshValueBase::GetSize ( ) const
inherited

Returns size of the value container.

◆ GetStep()

size_t MED::TMeshValueBase::GetStep ( ) const
inherited

Returns step inside of the data array.

Referenced by MED::TTMeshValue< TValueType >::Allocate().

◆ GetValuePtr()

template<class TValueType >
virtual unsigned char* MED::TTMeshValue< TValueType >::GetValuePtr ( )
virtual

Returns bare pointer on the internal value representation.

Implements MED::TMeshValueBase.

Field Documentation

◆ myModeSwitch

◆ myNbComp

◆ myNbElem

TInt MED::TMeshValueBase::myNbElem
inherited

◆ myNbGauss

◆ myStep

◆ myValue