Back to index

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

#include <MED_TStructures.hxx>

Inheritance diagram for MED::TTTimeStampValue< eVersion, TMeshValueType >:
Inheritance graph
[legend]
Collaboration diagram for MED::TTTimeStampValue< eVersion, 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

 TTTimeStampValue (const PTimeStampInfo &theTimeStampInfo, const PTimeStampValueBase &theInfo, ETypeChamp theTypeChamp)
 TTTimeStampValue (const PTimeStampInfo &theTimeStampInfo, ETypeChamp theTypeChamp, const TGeom2Profile &theGeom2Profile, EModeSwitch theMode)
virtual size_t GetValueSize (EGeometrieElement theGeom) const
virtual size_t GetNbVal (EGeometrieElement theGeom) const
virtual size_t GetNbGauss (EGeometrieElement theGeom) const
virtual void AllocateValue (EGeometrieElement theGeom, TInt theNbElem, TInt theNbGauss, TInt theNbComp, EModeSwitch theMode=eFULL_INTERLACE)
virtual unsigned char * GetValuePtr (EGeometrieElement theGeom)
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<EVersion eVersion, class TMeshValueType>
struct MED::TTTimeStampValue< eVersion, TMeshValueType >

Definition at line 956 of file MED_TStructures.hxx.


Member Typedef Documentation

template<class TMeshValueType >
typedef SharedPtr<TMeshValueType> MED::TTimeStampValue< TMeshValueType >::PTMeshValue [inherited]

Definition at line 821 of file MED_Structures.hxx.

template<class TMeshValueType >
typedef TMeshValueType::TElement MED::TTimeStampValue< TMeshValueType >::TElement [inherited]

Definition at line 822 of file MED_Structures.hxx.

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

Definition at line 823 of file MED_Structures.hxx.

template<class TMeshValueType >
typedef TMeshValueType MED::TTimeStampValue< TMeshValueType >::TTMeshValue [inherited]

Definition at line 820 of file MED_Structures.hxx.


Constructor & Destructor Documentation

template<EVersion eVersion, class TMeshValueType >
MED::TTTimeStampValue< eVersion, TMeshValueType >::TTTimeStampValue ( const PTimeStampInfo theTimeStampInfo,
const PTimeStampValueBase theInfo,
ETypeChamp  theTypeChamp 
) [inline]

Definition at line 958 of file MED_TStructures.hxx.

    {
      typedef TTimeStampValue<TMeshValueType> TCompatible;
      if(TCompatible* aCompatible = dynamic_cast<TCompatible*>(theInfo.get())){
        this->myTimeStampInfo = theTimeStampInfo;
        this->myTypeChamp = theTypeChamp;
        this->myGeom2Profile = aCompatible->GetGeom2Profile();
        this->myGeom2Value = aCompatible->myGeom2Value;
        this->myGeomSet = aCompatible->GetGeomSet();
      }else
        EXCEPTION(std::runtime_error,"TTTimeStampValue::TTTimeStampValue - use incompatible arguments!");
    }
template<EVersion eVersion, class TMeshValueType >
MED::TTTimeStampValue< eVersion, TMeshValueType >::TTTimeStampValue ( const PTimeStampInfo theTimeStampInfo,
ETypeChamp  theTypeChamp,
const TGeom2Profile theGeom2Profile,
EModeSwitch  theMode 
) [inline]

Definition at line 973 of file MED_TStructures.hxx.

                                         :
      TModeSwitchInfo(theMode)
    {
      this->myTimeStampInfo = theTimeStampInfo;

      this->myTypeChamp = theTypeChamp;

      this->myGeom2Profile = theGeom2Profile;

      TInt aNbComp = theTimeStampInfo->myFieldInfo->myNbComp;

      const TGeom2Size& aGeom2Size = theTimeStampInfo->GetGeom2Size();
      TGeom2Size::const_iterator anIter = aGeom2Size.begin();
      for(; anIter != aGeom2Size.end(); anIter++){
        const EGeometrieElement& aGeom = anIter->first;
        TInt aNbElem = anIter->second;

        MED::PProfileInfo aProfileInfo;
        MED::TGeom2Profile::const_iterator anIter = theGeom2Profile.find(aGeom);
        if(anIter != theGeom2Profile.end())
          aProfileInfo = anIter->second;

        if(aProfileInfo && aProfileInfo->IsPresent())
          aNbElem = aProfileInfo->GetSize();

        TInt aNbGauss = theTimeStampInfo->GetNbGauss(aGeom);
        
        this->GetMeshValue(aGeom).Allocate(aNbElem,aNbGauss,aNbComp);
      }
    }

Here is the call graph for this function:


Member Function Documentation

template<EVersion eVersion, class TMeshValueType >
virtual void MED::TTTimeStampValue< eVersion, TMeshValueType >::AllocateValue ( EGeometrieElement  theGeom,
TInt  theNbElem,
TInt  theNbGauss,
TInt  theNbComp,
EModeSwitch  theMode = eFULL_INTERLACE 
) [inline, virtual]

Definition at line 1030 of file MED_TStructures.hxx.

    {
      this->GetMeshValue(theGeom).Allocate(theNbElem,theNbGauss,theNbComp,theMode);
    }

Here is the call graph for this function:

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

Definition at line 839 of file MED_Structures.hxx.

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

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, inherited]

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, inherited]

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, inherited]

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<EVersion eVersion, class TMeshValueType >
virtual size_t MED::TTTimeStampValue< eVersion, TMeshValueType >::GetNbGauss ( EGeometrieElement  theGeom) const [inline, virtual]

Definition at line 1023 of file MED_TStructures.hxx.

    {
      return this->GetMeshValue(theGeom).GetNbGauss();
    }

Here is the call graph for this function:

template<EVersion eVersion, class TMeshValueType >
virtual size_t MED::TTTimeStampValue< eVersion, TMeshValueType >::GetNbVal ( EGeometrieElement  theGeom) const [inline, virtual]

Definition at line 1016 of file MED_TStructures.hxx.

    {
      return this->GetMeshValue(theGeom).GetNbVal();
    }

Here is the call graph for this function:

template<class TMeshValueType >
virtual ETypeChamp MED::TTimeStampValue< TMeshValueType >::GetTypeChamp ( ) const [inline, virtual, inherited]

Gets type of the champ.

Definition at line 830 of file MED_Structures.hxx.

    {
      return myTypeChamp;
    }
template<EVersion eVersion, class TMeshValueType >
virtual unsigned char* MED::TTTimeStampValue< eVersion, TMeshValueType >::GetValuePtr ( EGeometrieElement  theGeom) [inline, virtual]

Definition at line 1041 of file MED_TStructures.hxx.

    {
      return this->GetMeshValue(theGeom).GetValuePtr();
    }

Here is the call graph for this function:

template<EVersion eVersion, class TMeshValueType >
virtual size_t MED::TTTimeStampValue< eVersion, TMeshValueType >::GetValueSize ( EGeometrieElement  theGeom) const [inline, virtual]

Definition at line 1009 of file MED_TStructures.hxx.

    {
      return this->GetMeshValue(theGeom).GetSize();
    }

Here is the call graph for this function:


Member Data Documentation

template<class TMeshValueType >
TTGeom2Value MED::TTimeStampValue< TMeshValueType >::myGeom2Value [inherited]

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 [inherited]

Definition at line 825 of file MED_Structures.hxx.


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