Back to index

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

To customize TValueHolder common template definition for TVector. More...

#include <MED_TStructures.hxx>

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

List of all members.

Public Types

typedef TVector< TVal > TValue

Public Member Functions

 TValueHolder (TValue &theValue)
TRepresentation * operator& ()

Public Attributes

TValuemyValue
TRepresentation * myRepresentation

Detailed Description

template<class TVal, class TRepresentation>
struct MED::TValueHolder< TVector< TVal >, TRepresentation >

To customize TValueHolder common template definition for TVector.

Definition at line 76 of file MED_TStructures.hxx.


Member Typedef Documentation

template<class TVal , class TRepresentation >
typedef TVector<TVal> MED::TValueHolder< TVector< TVal >, TRepresentation >::TValue

Definition at line 78 of file MED_TStructures.hxx.


Constructor & Destructor Documentation

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

Definition at line 82 of file MED_TStructures.hxx.

                                  :
      myValue(theValue)
    {
      if(theValue.empty())
        myRepresentation = (TRepresentation*)NULL;
      else
        myRepresentation = (TRepresentation*)&theValue[0];
    }

Member Function Documentation

template<class TVal , class TRepresentation >
TRepresentation* MED::TValueHolder< TVector< TVal >, TRepresentation >::operator& ( ) [inline]

Definition at line 92 of file MED_TStructures.hxx.

    {
      return myRepresentation;
    }

Member Data Documentation

template<class TVal , class TRepresentation >
TRepresentation* MED::TValueHolder< TVector< TVal >, TRepresentation >::myRepresentation

Definition at line 80 of file MED_TStructures.hxx.

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

Definition at line 79 of file MED_TStructures.hxx.


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