Back to index

salome-med  6.5.0
Public Member Functions | Public Attributes
MED::TValueHolder< TValue, TRepresentation > Struct Template Reference

To provide a common way to handle values of MEDWrapper types as native MED types. More...

#include <MED_TStructures.hxx>

Collaboration diagram for MED::TValueHolder< TValue, TRepresentation >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TValueHolder (TValue &theValue)
 ~TValueHolder ()
TRepresentation * operator& ()
 operator TRepresentation () const
const TValueoperator() () const

Public Attributes

TValuemyValue
TRepresentation myRepresentation

Detailed Description

template<class TValue, class TRepresentation>
struct MED::TValueHolder< TValue, TRepresentation >

To provide a common way to handle values of MEDWrapper types as native MED types.

Definition at line 41 of file MED_TStructures.hxx.


Constructor & Destructor Documentation

template<class TValue , class TRepresentation >
MED::TValueHolder< TValue, TRepresentation >::TValueHolder ( TValue theValue) [inline]

Definition at line 46 of file MED_TStructures.hxx.

                                  :
      myValue(theValue),
      myRepresentation(TRepresentation(theValue))
    {}
template<class TValue , class TRepresentation >
MED::TValueHolder< TValue, TRepresentation >::~TValueHolder ( ) [inline]

Definition at line 51 of file MED_TStructures.hxx.


Member Function Documentation

template<class TValue , class TRepresentation >
MED::TValueHolder< TValue, TRepresentation >::operator TRepresentation ( ) const [inline]

Definition at line 62 of file MED_TStructures.hxx.

    {
      return myRepresentation;
    }  
template<class TValue , class TRepresentation >
TRepresentation* MED::TValueHolder< TValue, TRepresentation >::operator& ( ) [inline]

Definition at line 57 of file MED_TStructures.hxx.

    {
      return &myRepresentation;
    }
template<class TValue , class TRepresentation >
const TValue& MED::TValueHolder< TValue, TRepresentation >::operator() ( ) const [inline]

Definition at line 68 of file MED_TStructures.hxx.

    {
      return myValue;
    }  

Member Data Documentation

template<class TValue , class TRepresentation >
TRepresentation MED::TValueHolder< TValue, TRepresentation >::myRepresentation

Definition at line 44 of file MED_TStructures.hxx.

template<class TValue , class TRepresentation >
TValue& MED::TValueHolder< TValue, TRepresentation >::myValue

Definition at line 43 of file MED_TStructures.hxx.


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