Back to index

salome-med  6.5.0
Public Types | Public Member Functions
MED::TTCellInfo< eVersion > Struct Template Reference

#include <MED_TStructures.hxx>

Inheritance diagram for MED::TTCellInfo< eVersion >:
Inheritance graph
[legend]
Collaboration diagram for MED::TTCellInfo< eVersion >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef TTElemInfo< eVersion > TElemInfoBase

Public Member Functions

 TTCellInfo (const PMeshInfo &theMeshInfo, const PCellInfo &theInfo)
 TTCellInfo (const PMeshInfo &theMeshInfo, EEntiteMaillage theEntity, EGeometrieElement theGeom, TInt theNbElem, EConnectivite theConnMode, EBooleen theIsElemNum, EBooleen theIsElemNames, EModeSwitch theMode)
 TTCellInfo (const PMeshInfo &theMeshInfo, EEntiteMaillage theEntity, EGeometrieElement theGeom, const TIntVector &theConnectivities, EConnectivite theConnMode, const TIntVector &theFamilyNums, const TIntVector &theElemNums, const TStringVector &theElemNames, EModeSwitch theMode)
virtual TInt GetConnDim () const
virtual std::string GetElemName (TInt theId) const
virtual void SetElemName (TInt theId, const std::string &theValue)

Detailed Description

template<EVersion eVersion>
struct MED::TTCellInfo< eVersion >

Definition at line 678 of file MED_TStructures.hxx.


Member Typedef Documentation

template<EVersion eVersion>
typedef TTElemInfo<eVersion> MED::TTCellInfo< eVersion >::TElemInfoBase

Definition at line 682 of file MED_TStructures.hxx.


Constructor & Destructor Documentation

template<EVersion eVersion>
MED::TTCellInfo< eVersion >::TTCellInfo ( const PMeshInfo theMeshInfo,
const PCellInfo theInfo 
) [inline]

Definition at line 684 of file MED_TStructures.hxx.

                                                                      :
      TElemInfoBase(theMeshInfo,theInfo)
    {
      myEntity = theInfo->GetEntity();
      myGeom = theInfo->GetGeom();
      myConnMode  = theInfo->GetConnMode();
      
      TInt aConnDim = GetNbNodes(myGeom);
      TInt aNbConn = GetNbConn<eVersion>(myGeom, myEntity, myMeshInfo->myDim);
      myConn.reset(new TElemNum(myNbElem * aNbConn));
      for(TInt anElemId = 0; anElemId < myNbElem; anElemId++){
        TConnSlice aConnSlice = GetConnSlice(anElemId);
        TCConnSlice aConnSlice2 = theInfo->GetConnSlice(anElemId);
        for(TInt anConnId = 0; anConnId < aConnDim; anConnId++){
          aConnSlice[anConnId] = aConnSlice2[anConnId];
        }
      }
    }

Here is the call graph for this function:

template<EVersion eVersion>
MED::TTCellInfo< eVersion >::TTCellInfo ( const PMeshInfo theMeshInfo,
EEntiteMaillage  theEntity,
EGeometrieElement  theGeom,
TInt  theNbElem,
EConnectivite  theConnMode,
EBooleen  theIsElemNum,
EBooleen  theIsElemNames,
EModeSwitch  theMode 
) [inline]

Definition at line 703 of file MED_TStructures.hxx.

                                   :
      TModeSwitchInfo(theMode),
      TElemInfoBase(theMeshInfo,
                    theNbElem,
                    theIsElemNum,
                    theIsElemNames)
    {
      myEntity = theEntity;
      myGeom = theGeom;

      myConnMode = theConnMode;
      TInt aNbConn = GetNbConn<eVersion>(theGeom, myEntity, theMeshInfo->myDim);
      myConn.reset(new TElemNum(theNbElem * aNbConn));
    }
template<EVersion eVersion>
MED::TTCellInfo< eVersion >::TTCellInfo ( const PMeshInfo theMeshInfo,
EEntiteMaillage  theEntity,
EGeometrieElement  theGeom,
const TIntVector theConnectivities,
EConnectivite  theConnMode,
const TIntVector theFamilyNums,
const TIntVector theElemNums,
const TStringVector theElemNames,
EModeSwitch  theMode 
) [inline]

Definition at line 725 of file MED_TStructures.hxx.

                                   :
      TModeSwitchInfo(theMode),
      TElemInfoBase(theMeshInfo,
                    (TInt)theConnectivities.size() / GetNbNodes(theGeom),
                    theFamilyNums,
                    theElemNums,
                    theElemNames)
    {
      myEntity = theEntity;
      myGeom = theGeom;

      myConnMode = theConnMode;
      TInt aConnDim = GetNbNodes(myGeom);
      TInt aNbConn = GetNbConn<eVersion>(myGeom, myEntity, myMeshInfo->myDim);
      myConn.reset(new TElemNum(myNbElem * aNbConn));
      for(TInt anElemId = 0; anElemId < myNbElem; anElemId++){
        TConnSlice aConnSlice = GetConnSlice(anElemId);
        for(TInt anConnId = 0; anConnId < aConnDim; anConnId++){
          aConnSlice[anConnId] = theConnectivities[anElemId*aConnDim + anConnId];
        }
      }
    }

Here is the call graph for this function:


Member Function Documentation

template<EVersion eVersion>
virtual TInt MED::TTCellInfo< eVersion >::GetConnDim ( ) const [inline, virtual]

Definition at line 758 of file MED_TStructures.hxx.

    { 
      return GetNbConn<eVersion>(myGeom, myEntity, myMeshInfo->myDim);
    }
template<EVersion eVersion>
virtual std::string MED::TTElemInfo< eVersion >::GetElemName ( TInt  theId) const [inline, virtual, inherited]

Definition at line 410 of file MED_TStructures.hxx.

    { 
      return GetString(theId,GetPNOMLength<eVersion>(), *myElemNames);
    }

Here is the call graph for this function:

template<EVersion eVersion>
virtual void MED::TTElemInfo< eVersion >::SetElemName ( TInt  theId,
const std::string &  theValue 
) [inline, virtual, inherited]

Definition at line 417 of file MED_TStructures.hxx.

    {
      SetString(theId,GetPNOMLength<eVersion>(), *myElemNames, theValue);
    }

Here is the call graph for this function:

Here is the caller graph for this function:


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