Back to index

salome-med  6.5.0
Public Types | Public Member Functions | Public Attributes
MED::TTimeStampValue< TMeshValueType > Struct Template Reference

The class implements a container for MED TimeStamp values. More...

#include <MED_Structures.hxx>

Inheritance diagram for MED::TTimeStampValue< TMeshValueType >:
Inheritance graph
[legend]
Collaboration diagram for MED::TTimeStampValue< TMeshValueType >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef TMeshValueType TTMeshValue
typedef SharedPtr< TMeshValueType > PTMeshValue
typedef TMeshValueType::TElement TElement
typedef std::map
< EGeometrieElement,
PTMeshValue
TTGeom2Value

Public Member Functions

virtual ETypeChamp GetTypeChamp () const
 Gets type of the champ.
const TTGeom2ValueGetGeom2Value () const
const PTMeshValueGetMeshValuePtr (EGeometrieElement theGeom) const
 Gets MED TimeStamp values for the given geometric type (const version)
PTMeshValueGetMeshValuePtr (EGeometrieElement theGeom)
 Gets MED TimeStamp values for the given geometric type.
const TTMeshValueGetMeshValue (EGeometrieElement theGeom) const
 Gets MED TimeStamp values for the given geometric type (const version)
TTMeshValueGetMeshValue (EGeometrieElement theGeom)
 Gets MED TimeStamp values for the given geometric type.

Public Attributes

ETypeChamp myTypeChamp
TTGeom2Value myGeom2Value
 Keeps map of MED TimeStamp values per geometric type (const version)

Detailed Description

template<class TMeshValueType>
struct MED::TTimeStampValue< TMeshValueType >

The class implements a container for MED TimeStamp values.

Definition at line 817 of file MED_Structures.hxx.


Member Typedef Documentation

template<class TMeshValueType >
typedef SharedPtr<TMeshValueType> MED::TTimeStampValue< TMeshValueType >::PTMeshValue

Definition at line 821 of file MED_Structures.hxx.

template<class TMeshValueType >
typedef TMeshValueType::TElement MED::TTimeStampValue< TMeshValueType >::TElement

Definition at line 822 of file MED_Structures.hxx.

template<class TMeshValueType >
typedef std::map<EGeometrieElement, PTMeshValue> MED::TTimeStampValue< TMeshValueType >::TTGeom2Value

Definition at line 823 of file MED_Structures.hxx.

template<class TMeshValueType >
typedef TMeshValueType MED::TTimeStampValue< TMeshValueType >::TTMeshValue

Definition at line 820 of file MED_Structures.hxx.


Member Function Documentation

template<class TMeshValueType >
const TTGeom2Value& MED::TTimeStampValue< TMeshValueType >::GetGeom2Value ( ) const [inline]

Definition at line 839 of file MED_Structures.hxx.

    {
      return myGeom2Value;
    }
template<class TMeshValueType >
const TTMeshValue& MED::TTimeStampValue< TMeshValueType >::GetMeshValue ( EGeometrieElement  theGeom) const [inline]

Gets MED TimeStamp values for the given geometric type (const version)

Definition at line 868 of file MED_Structures.hxx.

    {
      return *(this->GetMeshValuePtr(theGeom));
    }

Here is the call graph for this function:

Here is the caller graph for this function:

template<class TMeshValueType >
TTMeshValue& MED::TTimeStampValue< TMeshValueType >::GetMeshValue ( EGeometrieElement  theGeom) [inline]

Gets MED TimeStamp values for the given geometric type.

Definition at line 875 of file MED_Structures.hxx.

    {
      return *(this->GetMeshValuePtr(theGeom));
    }

Here is the call graph for this function:

template<class TMeshValueType >
const PTMeshValue& MED::TTimeStampValue< TMeshValueType >::GetMeshValuePtr ( EGeometrieElement  theGeom) const [inline]

Gets MED TimeStamp values for the given geometric type (const version)

Definition at line 846 of file MED_Structures.hxx.

    {
      typename TTGeom2Value::const_iterator anIter = myGeom2Value.find(theGeom);
      if(anIter == myGeom2Value.end())
        EXCEPTION(std::runtime_error,"TTimeStampValue::GetMeshValuePtr - myGeom2Value.find(theGeom) fails");
      return anIter->second;
    }

Here is the caller graph for this function:

template<class TMeshValueType >
PTMeshValue& MED::TTimeStampValue< TMeshValueType >::GetMeshValuePtr ( EGeometrieElement  theGeom) [inline]

Gets MED TimeStamp values for the given geometric type.

Definition at line 856 of file MED_Structures.hxx.

    {
      myGeomSet.insert(theGeom);
      if(myGeom2Value.find(theGeom) == myGeom2Value.end()){
        myGeom2Value[theGeom] = PTMeshValue(new TTMeshValue());
        return myGeom2Value[theGeom];
      }
      return myGeom2Value[theGeom];
    }
template<class TMeshValueType >
virtual ETypeChamp MED::TTimeStampValue< TMeshValueType >::GetTypeChamp ( ) const [inline, virtual]

Gets type of the champ.

Definition at line 830 of file MED_Structures.hxx.

    {
      return myTypeChamp;
    }

Member Data Documentation

template<class TMeshValueType >
TTGeom2Value MED::TTimeStampValue< TMeshValueType >::myGeom2Value

Keeps map of MED TimeStamp values per geometric type (const version)

Definition at line 836 of file MED_Structures.hxx.

template<class TMeshValueType >
ETypeChamp MED::TTimeStampValue< TMeshValueType >::myTypeChamp

Definition at line 825 of file MED_Structures.hxx.


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