Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MEDCoupling::MEDFileAnyTypeField1TS Class Referenceabstract
Inheritance diagram for MEDCoupling::MEDFileAnyTypeField1TS:
Collaboration diagram for MEDCoupling::MEDFileAnyTypeField1TS:

Public Member Functions

void changeLocsRefsNamesGen (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif)
 
bool changeMeshNames (const std::vector< std::pair< std::string, std::string > > &modifTab)
 
void changePflsRefsNamesGen (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif)
 
MEDFileAnyTypeField1TSWithoutSDAcontentNotNullBase ()
 
const
MEDFileAnyTypeField1TSWithoutSDA
contentNotNullBase () const
 
void convertMedBallIntoClassic ()
 
int copyTinyInfoFrom (const MEDCouplingFieldDouble *field, const DataArray *arr)
 
MEDFileAnyTypeField1TSdeepCopy () const
 
virtual MEDFileAnyTypeField1TSextractPart (const std::map< int, MCAuto< DataArrayInt > > &extractDef, MEDFileMesh *mm) const =0
 
void fillIteration (std::pair< int, int > &p) const
 
void fillTypesOfFieldAvailable (std::vector< TypeOfField > &types) const
 
int getDimension () const
 
std::vector< const
BigMemoryObject * > 
getDirectChildrenWithNull () const
 
std::pair< int, int > getDtIt () const
 
std::string getDtUnit () const
 
std::vector< std::vector
< std::pair< int, int > > > 
getFieldSplitedByType (const std::string &mname, std::vector< INTERP_KERNEL::NormalizedCellType > &types, std::vector< std::vector< TypeOfField > > &typesF, std::vector< std::vector< std::string > > &pfls, std::vector< std::vector< std::string > > &locs) const
 
std::size_t getHeapMemorySizeWithoutChildren () const
 
const std::vector< std::string > & getInfo () const
 
std::vector< std::string > & getInfo ()
 
int getIteration () const
 
MEDFileFieldPerMeshPerTypePerDisc * getLeafGivenMeshAndTypeAndLocId (const std::string &mName, INTERP_KERNEL::NormalizedCellType typ, int locId)
 
const
MEDFileFieldPerMeshPerTypePerDisc * 
getLeafGivenMeshAndTypeAndLocId (const std::string &mName, INTERP_KERNEL::NormalizedCellType typ, int locId) const
 
std::vector< std::string > getLocsReallyUsed () const
 
std::vector< std::string > getLocsReallyUsedMulti () const
 
virtual med_field_type getMEDFileFieldType () const =0
 
int getMeshIteration () const
 
std::string getMeshName () const
 
int getMeshOrder () const
 
std::string getName () const
 
int getNonEmptyLevels (const std::string &mname, std::vector< int > &levs) const
 
int getNumberOfComponents () const
 
int getOrder () const
 
std::vector< std::string > getPflsReallyUsed () const
 
std::vector< std::string > getPflsReallyUsedMulti () const
 
double getTime (int &iteration, int &order) const
 
std::vector< TypeOfFieldgetTypesOfFieldAvailable () const
 
bool isDealingTS (int iteration, int order) const
 
void loadArrays ()
 
void loadArraysIfNecessary ()
 
void makeReduction (INTERP_KERNEL::NormalizedCellType ct, TypeOfField tof, const DataArrayInt *pfl)
 
bool presenceOfMultiDiscPerGeoType () const
 
void setDtUnit (const std::string &dtUnit)
 
void setInfo (const std::vector< std::string > &infos)
 
void setLocNameOnLeaf (const std::string &mName, INTERP_KERNEL::NormalizedCellType typ, int locId, const std::string &newLocName, bool forceRenameOnGlob=false)
 
void setMeshName (const std::string &newMeshName)
 
void setName (const std::string &name)
 
void setProfileNameOnLeaf (const std::string &mName, INTERP_KERNEL::NormalizedCellType typ, int locId, const std::string &newPflName, bool forceRenameOnGlob=false)
 
void setTime (int iteration, int order, double val)
 
virtual MEDFileAnyTypeField1TSshallowCpy () const =0
 
std::string simpleRepr () const
 
void simpleRepr (int bkOffset, std::ostream &oss, int f1tsId) const
 
std::vector< MCAuto
< MEDFileAnyTypeField1TS > > 
splitComponents () const
 
std::vector< MCAuto
< MEDFileAnyTypeField1TS > > 
splitDiscretizations () const
 
std::vector< MCAuto
< MEDFileAnyTypeField1TS > > 
splitMultiDiscrPerGeoTypes () const
 
void unloadArrays ()
 
void unloadArraysWithoutDataLoss ()
 
- Public Member Functions inherited from MEDCoupling::MEDFileFieldGlobsReal
void appendGlobs (const MEDFileFieldGlobsReal &other, double eps)
 
void appendLoc (const std::string &locName, INTERP_KERNEL::NormalizedCellType geoType, const std::vector< double > &refCoo, const std::vector< double > &gsCoo, const std::vector< double > &w)
 
void appendProfile (DataArrayInt *pfl)
 
void changeLocName (const std::string &oldName, const std::string &newName)
 
void changeLocsNames (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif)
 
void changeLocsNamesInStruct (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif)
 
void changePflName (const std::string &oldName, const std::string &newName)
 
void changePflsNames (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif)
 
void changePflsNamesInStruct (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif)
 
void checkGlobsCoherency () const
 
void checkGlobsLocsPartCoherency () const
 
void checkGlobsPflsPartCoherency () const
 
std::string createNewNameOfLoc () const
 
std::string createNewNameOfPfl () const
 
void deepCpyGlobs (const MEDFileFieldGlobsReal &other)
 
void deepCpyOnlyUsedGlobs (const MEDFileFieldGlobsReal &other)
 
bool existsLoc (const std::string &locName) const
 
bool existsPfl (const std::string &pflName) const
 
std::vector< const
BigMemoryObject * > 
getDirectChildrenWithNull () const
 
std::string getFileName () const
 
std::size_t getHeapMemorySizeWithoutChildren () const
 
const MEDFileFieldLocgetLocalization (const std::string &locName) const
 
MEDFileFieldLocgetLocalization (const std::string &locName)
 
const MEDFileFieldLocgetLocalizationFromId (int locId) const
 
MEDFileFieldLocgetLocalizationFromId (int locId)
 
int getLocalizationId (const std::string &loc) const
 
std::vector< std::string > getLocs () const
 
int getNbOfGaussPtPerCell (int locId) const
 
std::vector< std::string > getPfls () const
 
const DataArrayIntgetProfile (const std::string &pflName) const
 
DataArrayIntgetProfile (const std::string &pflName)
 
const DataArrayIntgetProfileFromId (int pflId) const
 
DataArrayIntgetProfileFromId (int pflId)
 
void killLocalizationIds (const std::vector< int > &locIds)
 
void killProfileIds (const std::vector< int > &pflIds)
 
void killStructureElementsInGlobs ()
 
void loadAllGlobals (med_idt fid, const MEDFileEntities *entities=0)
 
void loadGlobals (med_idt fid)
 
void loadProfileInFile (med_idt fid, int id, const std::string &pflName)
 
void loadProfileInFile (med_idt fid, int id)
 
 MEDFileFieldGlobsReal (med_idt fid)
 
 MEDFileFieldGlobsReal ()
 
void resetContent ()
 
void setFileName (const std::string &fileName)
 
void shallowCpyGlobs (const MEDFileFieldGlobsReal &other)
 
void shallowCpyOnlyUsedGlobs (const MEDFileFieldGlobsReal &other)
 
void simpleReprGlobs (std::ostream &oss) const
 
std::vector< std::vector< int > > whichAreEqualLocs (double eps) const
 
std::vector< std::vector< int > > whichAreEqualProfiles () const
 
void writeGlobals (med_idt fid, const MEDFileWritable &opt) const
 
std::vector< std::pair
< std::vector< std::string >
, std::string > > 
zipLocsNames (double eps)
 
std::vector< std::pair
< std::vector< std::string >
, std::string > > 
zipPflsNames ()
 
virtual ~MEDFileFieldGlobsReal ()
 

Static Public Member Functions

static int LocateField (med_idt fid, const std::string &fieldName, int &posCFormat, med_field_type &typcha, std::vector< std::string > &infos, std::string &dtunitOut, std::string &meshName)
 
static int LocateField2 (med_idt fid, int fieldIdCFormat, bool checkFieldId, std::string &fieldName, med_field_type &typcha, std::vector< std::string > &infos, std::string &dtunitOut, std::string &meshName)
 
static MEDFileAnyTypeField1TSNew (const std::string &fileName, bool loadAll=true)
 
static MEDFileAnyTypeField1TSNew (med_idt fid, bool loadAll=true)
 
static MEDFileAnyTypeField1TSNew (const std::string &fileName, const std::string &fieldName, bool loadAll=true)
 
static MEDFileAnyTypeField1TSNew (med_idt fid, const std::string &fieldName, bool loadAll=true)
 
static MEDFileAnyTypeField1TSNew (const std::string &fileName, const std::string &fieldName, int iteration, int order, bool loadAll=true)
 
static MEDFileAnyTypeField1TSNew (med_idt fid, const std::string &fieldName, int iteration, int order, bool loadAll=true)
 
static MEDFileAnyTypeField1TSNewAdv (const std::string &fileName, const std::string &fieldName, int iteration, int order, bool loadAll, const MEDFileEntities *entities)
 
static MEDFileAnyTypeField1TSNewAdv (med_idt fid, const std::string &fieldName, int iteration, int order, bool loadAll, const MEDFileEntities *entities)
 

Protected Member Functions

 MEDFileAnyTypeField1TS ()
 
 MEDFileAnyTypeField1TS (med_idt fid, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities=0)
 
 MEDFileAnyTypeField1TS (med_idt fid, const std::string &fieldName, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities=0)
 
 MEDFileAnyTypeField1TS (med_idt fid, const std::string &fieldName, int iteration, int order, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities=0)
 
 MEDFileAnyTypeField1TS (const MEDFileAnyTypeField1TSWithoutSDA &other, bool shallowCopyOfContent)
 
void writeLL (med_idt fid) const
 
- Protected Member Functions inherited from MEDCoupling::RefCountObject
 RefCountObject ()
 
 RefCountObject (const RefCountObject &other)
 
virtual ~RefCountObject ()
 
- Protected Member Functions inherited from MEDCoupling::RefCountObjectOnly
 RefCountObjectOnly ()
 
 RefCountObjectOnly (const RefCountObjectOnly &other)
 
virtual ~RefCountObjectOnly ()
 
- Protected Member Functions inherited from MEDCoupling::MEDFileFieldGlobsReal
MEDFileFieldGlobs * contentNotNull ()
 
const MEDFileFieldGlobs * contentNotNull () const
 

Static Protected Member Functions

static
MEDFileAnyTypeField1TSWithoutSDA
BuildContentFrom (med_idt fid, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities)
 
static
MEDFileAnyTypeField1TSWithoutSDA
BuildContentFrom (med_idt fid, const std::string &fieldName, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities)
 
static
MEDFileAnyTypeField1TSWithoutSDA
BuildContentFrom (med_idt fid, const std::string &fieldName, int iteration, int order, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities)
 
static MEDFileAnyTypeField1TSBuildNewInstanceFromContent (MEDFileAnyTypeField1TSWithoutSDA *c)
 
static MEDFileAnyTypeField1TSBuildNewInstanceFromContent (MEDFileAnyTypeField1TSWithoutSDA *c, med_idt fid)
 

Protected Attributes

MCAuto
< MEDFileAnyTypeField1TSWithoutSDA
_content
 
- Protected Attributes inherited from MEDCoupling::MEDFileFieldGlobsReal
MCAuto< MEDFileFieldGlobs > _globals
 

Detailed Description

User class.

Constructor & Destructor Documentation

MEDFileAnyTypeField1TS::MEDFileAnyTypeField1TS ( )
protected
MEDFileAnyTypeField1TS::MEDFileAnyTypeField1TS ( med_idt  fid,
bool  loadAll,
const MEDFileMeshes ms,
const MEDFileEntities *  entities = 0 
)
protected
MEDFileAnyTypeField1TS::MEDFileAnyTypeField1TS ( med_idt  fid,
const std::string &  fieldName,
bool  loadAll,
const MEDFileMeshes ms,
const MEDFileEntities *  entities = 0 
)
protected
MEDFileAnyTypeField1TS::MEDFileAnyTypeField1TS ( med_idt  fid,
const std::string &  fieldName,
int  iteration,
int  order,
bool  loadAll,
const MEDFileMeshes ms,
const MEDFileEntities *  entities = 0 
)
protected
MEDFileAnyTypeField1TS::MEDFileAnyTypeField1TS ( const MEDFileAnyTypeField1TSWithoutSDA other,
bool  shallowCopyOfContent 
)
protected

This constructor is a shallow copy constructor. If shallowCopyOfContent is true the content of other is shallow copied. If shallowCopyOfContent is false, other is taken to be the content of this.

Warning
this is a shallow copy constructor

References _content, MEDCoupling::RefCountObjectOnly::incrRef(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::shallowCpy().

Member Function Documentation

MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::BuildNewInstanceFromContent ( MEDFileAnyTypeField1TSWithoutSDA c,
med_idt  fid 
)
staticprotected
MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::New ( const std::string &  fileName,
bool  loadAll = true 
)
static

Referenced by New().

MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::New ( med_idt  fid,
bool  loadAll = true 
)
static
MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::New ( const std::string &  fileName,
const std::string &  fieldName,
bool  loadAll = true 
)
static

References New().

MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::New ( med_idt  fid,
const std::string &  fieldName,
bool  loadAll = true 
)
static
MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::New ( const std::string &  fileName,
const std::string &  fieldName,
int  iteration,
int  order,
bool  loadAll = true 
)
static

References New().

MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::New ( med_idt  fid,
const std::string &  fieldName,
int  iteration,
int  order,
bool  loadAll = true 
)
static
MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::NewAdv ( const std::string &  fileName,
const std::string &  fieldName,
int  iteration,
int  order,
bool  loadAll,
const MEDFileEntities *  entities 
)
static
MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::NewAdv ( med_idt  fid,
const std::string &  fieldName,
int  iteration,
int  order,
bool  loadAll,
const MEDFileEntities *  entities 
)
static
int MEDFileAnyTypeField1TS::getDimension ( ) const
double MEDFileAnyTypeField1TS::getTime ( int &  iteration,
int &  order 
) const
void MEDFileAnyTypeField1TS::setTime ( int  iteration,
int  order,
double  val 
)
std::string MEDFileAnyTypeField1TS::getName ( ) const
void MEDFileAnyTypeField1TS::setName ( const std::string &  name)
std::string MEDFileAnyTypeField1TS::simpleRepr ( ) const

Returns a string describing this field. This string is outputted by print Python command.

References contentNotNullBase(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::simpleRepr(), and MEDCoupling::MEDFileFieldGlobsReal::simpleReprGlobs().

void MEDFileAnyTypeField1TS::simpleRepr ( int  bkOffset,
std::ostream &  oss,
int  f1tsId 
) const
std::string MEDFileAnyTypeField1TS::getDtUnit ( ) const
void MEDFileAnyTypeField1TS::setDtUnit ( const std::string &  dtUnit)
std::string MEDFileAnyTypeField1TS::getMeshName ( ) const
void MEDFileAnyTypeField1TS::setMeshName ( const std::string &  newMeshName)
bool MEDFileAnyTypeField1TS::changeMeshNames ( const std::vector< std::pair< std::string, std::string > > &  modifTab)
int MEDFileAnyTypeField1TS::getNumberOfComponents ( ) const
bool MEDFileAnyTypeField1TS::isDealingTS ( int  iteration,
int  order 
) const
std::pair< int, int > MEDFileAnyTypeField1TS::getDtIt ( ) const
void MEDFileAnyTypeField1TS::fillIteration ( std::pair< int, int > &  p) const
void MEDFileAnyTypeField1TS::fillTypesOfFieldAvailable ( std::vector< TypeOfField > &  types) const
void MEDFileAnyTypeField1TS::setInfo ( const std::vector< std::string > &  infos)
const std::vector< std::string > & MEDFileAnyTypeField1TS::getInfo ( ) const
std::vector< std::string > & MEDFileAnyTypeField1TS::getInfo ( )
bool MEDFileAnyTypeField1TS::presenceOfMultiDiscPerGeoType ( ) const
std::vector< std::vector< std::pair< int, int > > > MEDFileAnyTypeField1TS::getFieldSplitedByType ( const std::string &  mname,
std::vector< INTERP_KERNEL::NormalizedCellType > &  types,
std::vector< std::vector< TypeOfField > > &  typesF,
std::vector< std::vector< std::string > > &  pfls,
std::vector< std::vector< std::string > > &  locs 
) const
MEDFileFieldPerMeshPerTypePerDisc * MEDFileAnyTypeField1TS::getLeafGivenMeshAndTypeAndLocId ( const std::string &  mName,
INTERP_KERNEL::NormalizedCellType  typ,
int  locId 
)
const MEDFileFieldPerMeshPerTypePerDisc * MEDFileAnyTypeField1TS::getLeafGivenMeshAndTypeAndLocId ( const std::string &  mName,
INTERP_KERNEL::NormalizedCellType  typ,
int  locId 
) const
int MEDFileAnyTypeField1TS::getNonEmptyLevels ( const std::string &  mname,
std::vector< int > &  levs 
) const
void MEDFileAnyTypeField1TS::convertMedBallIntoClassic ( )
void MEDFileAnyTypeField1TS::makeReduction ( INTERP_KERNEL::NormalizedCellType  ct,
TypeOfField  tof,
const DataArrayInt pfl 
)
void MEDFileAnyTypeField1TS::loadArrays ( )

This method alloc the arrays and load potentially huge arrays contained in this field. This method should be called when a MEDFileAnyTypeField1TS::New constructor has been with false as the last parameter. This method can be also called to refresh or reinit values from a file.

Exceptions
Ifthe fileName is not set or points to a non readable MED file.
See Also
MEDFileAnyTypeField1TS::loadArraysIfNecessary

References contentNotNullBase(), MEDCoupling::MEDFileFieldGlobsReal::getFileName(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::loadBigArraysRecursively().

void MEDFileAnyTypeField1TS::loadArraysIfNecessary ( )

This method behaves as MEDFileAnyTypeField1TS::loadArrays does, the first call, if this was built using a file without loading big arrays. But once data loaded once, this method does nothing. Contrary to MEDFileAnyTypeField1TS::loadArrays and MEDFileAnyTypeField1TS::unloadArrays this method does not throw if this does not come from file read.

See Also
MEDFileAnyTypeField1TS::loadArrays, MEDFileAnyTypeField1TS::unloadArrays

References contentNotNullBase(), MEDCoupling::MEDFileFieldGlobsReal::getFileName(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::loadBigArraysRecursivelyIfNecessary().

void MEDFileAnyTypeField1TS::unloadArrays ( )

This method releases potentially big data arrays and so returns to the same heap memory than status loaded with 'loadAll' parameter set to false. WARNING, this method does release arrays even if this does not come from a load of a MED file. So this method can lead to a loss of data. If you want to unload arrays safely call MEDFileAnyTypeField1TS::unloadArraysWithoutDataLoss instead.

See Also
MEDFileAnyTypeField1TS::loadArrays, MEDFileAnyTypeField1TS::loadArraysIfNecessary, MEDFileAnyTypeField1TS::unloadArraysWithoutDataLoss

References contentNotNullBase(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::unloadArrays().

void MEDFileAnyTypeField1TS::unloadArraysWithoutDataLoss ( )

This method potentially releases big data arrays if this is coming from a file. If this has been built from scratch this method will have no effect. This method is the symetrical method of MEDFileAnyTypeField1TS::loadArraysIfNecessary. This method is useful to reduce safely amount of heap memory necessary for this by using MED file as database.

See Also
MEDFileAnyTypeField1TS::loadArraysIfNecessary

References contentNotNullBase(), MEDCoupling::MEDFileFieldGlobsReal::getFileName(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::unloadArrays().

std::vector< MCAuto< MEDFileAnyTypeField1TS > > MEDFileAnyTypeField1TS::splitComponents ( ) const

This method returns as MEDFileAnyTypeField1TS new instances as number of components in this. The returned instances are deep copy of this except that for globals that are share with those contained in this. ** WARNING ** do no forget to rename the ouput instances to avoid to write n-times in the same MED file field !

References _content, shallowCpy(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::splitComponents().

std::vector< MCAuto< MEDFileAnyTypeField1TS > > MEDFileAnyTypeField1TS::splitDiscretizations ( ) const

This method returns as MEDFileAnyTypeField1TS new instances as number of spatial discretizations in this. The returned instances are shallowed copied of this except that for globals that are share with those contained in this.

References _content, shallowCpy(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::splitDiscretizations().

std::vector< MCAuto< MEDFileAnyTypeField1TS > > MEDFileAnyTypeField1TS::splitMultiDiscrPerGeoTypes ( ) const

This method returns as MEDFileAnyTypeField1TS new instances as number of maximal number of discretization in this. The returned instances are shallowed copied of this except that for globals that are share with those contained in this.

References _content, shallowCpy(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::splitMultiDiscrPerGeoTypes().

int MEDFileAnyTypeField1TS::copyTinyInfoFrom ( const MEDCouplingFieldDouble field,
const DataArray arr 
)
virtual MEDFileAnyTypeField1TS* MEDCoupling::MEDFileAnyTypeField1TS::shallowCpy ( ) const
pure virtual
void MEDFileAnyTypeField1TS::setProfileNameOnLeaf ( const std::string &  mName,
INTERP_KERNEL::NormalizedCellType  typ,
int  locId,
const std::string &  newPflName,
bool  forceRenameOnGlob = false 
)

underground method see MEDFileField1TSWithoutSDA::setProfileNameOnLeaf

This method as MEDFileField1TSW::setLocNameOnLeaf, is dedicated for advanced user that a want a very fine control on their data structure without overhead. This method can be called only regarding information returned by MEDFileField1TSWithoutSDA::getFieldSplitedByType or MEDFileField1TSWithoutSDA::getFieldSplitedByType2. This method changes the attribute (here it's profile name) of the leaf datastructure (MEDFileFieldPerMeshPerTypePerDisc instance). It is the responsability of the caller to invoke MEDFileFieldGlobs::appendProfile or MEDFileFieldGlobs::getProfile to keep a valid instance. If this do not have any leaf that correspond to the request of the input parameter (mName, typ, locId) an INTERP_KERNEL::Exception will be thrown. If newPflName profile name does not already exist the profile with old name will be renamed with name newPflName. If newPflName already exists and that forceRenameOnGlob is false (the default) an INTERP_KERNEL::Exception will be thrown to avoid big confusion. In this case the called should rename before the profile name with name newPflName.

Parameters
[in]mNamespecifies the underlying mesh name. This value can be pointer 0 for users that do not deal with fields on multi mesh.
[in]typis for the geometric cell type (or INTERP_KERNEL::NORM_ERROR for node field) entry to find the right MEDFileFieldPerMeshPerTypePerDisc instance to set.
[in]locIdis the localization id to find the right MEDFileFieldPerMeshPerTypePerDisc instance to set. It corresponds to the position of pfls[std::distance(types.begin(),std::find(types.begin(),typ)] vector in MEDFileField1TSWithoutSDA::getFieldSplitedByType. For non gausspoints field users, the value is 0.
[in]newLocNameis the new localization name.
[in]forceRenameOnGlobspecifies the behaviour in case of profile newPflName already exists. If true, the renaming is done without check. It can lead to major bug. If false, an exception will be thrown to force user to change previously the name of the profile with name newPflName

References MEDCoupling::MEDFileFieldGlobsReal::existsPfl(), getLeafGivenMeshAndTypeAndLocId(), getPflsReallyUsedMulti(), MEDCoupling::MEDFileFieldGlobsReal::getProfile(), and MEDCoupling::DataArray::setName().

void MEDFileAnyTypeField1TS::setLocNameOnLeaf ( const std::string &  mName,
INTERP_KERNEL::NormalizedCellType  typ,
int  locId,
const std::string &  newLocName,
bool  forceRenameOnGlob = false 
)

underground method see MEDFileField1TSWithoutSDA::setLocNameOnLeaf

This method as MEDFileField1TSW::setProfileNameOnLeaf, is dedicated for advanced user that a want a very fine control on their data structure without overhead. This method can be called only regarding information returned by MEDFileField1TSWithoutSDA::getFieldSplitedByType or MEDFileField1TSWithoutSDA::getFieldSplitedByType2. This method changes the attribute (here it's localization name) of the leaf datastructure (MEDFileFieldPerMeshPerTypePerDisc instance). It is the responsability of the caller to invoke MEDFileFieldGlobs::appendProfile or MEDFileFieldGlobs::getProfile to keep a valid instance. If this do not have any leaf that correspond to the request of the input parameter (mName, typ, locId) an INTERP_KERNEL::Exception will be thrown. This method is an extension of MEDFileField1TSWithoutSDA::setProfileNameOnLeafExt method because it performs a modification of global info. If newLocName profile name does not already exist the localization with old name will be renamed with name newLocName. If newLocName already exists an INTERP_KERNEL::Exception will be thrown to avoid big confusion. In this case the called should rename before the profile name with name newLocName.

Parameters
[in]mNamespecifies the underlying mesh name. This value can be pointer 0 for users that do not deal with fields on multi mesh.
[in]typis for the geometric cell type (or INTERP_KERNEL::NORM_ERROR for node field) entry to find the right MEDFileFieldPerMeshPerTypePerDisc instance to set.
[in]locIdis the localization id to find the right MEDFileFieldPerMeshPerTypePerDisc instance to set. It corresponds to the position of pfls[std::distance(types.begin(),std::find(types.begin(),typ)] vector in MEDFileField1TSWithoutSDA::getFieldSplitedByType. For non gausspoints field users, the value is 0.
[in]newLocNameis the new localization name.
[in]forceRenameOnGlobspecifies the behaviour in case of profile newLocName already exists. If true, the renaming is done without check. It can lead to major bug. If false, an exception will be thrown to force user to change previously the name of the profile with name newLocName

References MEDCoupling::MEDFileFieldGlobsReal::existsLoc(), getLeafGivenMeshAndTypeAndLocId(), MEDCoupling::MEDFileFieldGlobsReal::getLocalization(), getLocsReallyUsedMulti(), and MEDCoupling::MEDFileFieldLoc::setName().

std::size_t MEDFileAnyTypeField1TS::getHeapMemorySizeWithoutChildren ( ) const
virtual
std::vector< const BigMemoryObject * > MEDFileAnyTypeField1TS::getDirectChildrenWithNull ( ) const
virtual
std::vector< std::string > MEDFileAnyTypeField1TS::getPflsReallyUsed ( ) const
virtual

This method returns all profiles whose name is non empty used. WARNING If profile is used several times it will be reported only once. To get non empty name profiles as time as they appear in this call MEDFileField1TS::getPflsReallyUsedMulti instead.

Implements MEDCoupling::MEDFileFieldGlobsReal.

References contentNotNullBase(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getPflsReallyUsed2().

Referenced by MEDCoupling::ReadFieldNode().

std::vector< std::string > MEDFileAnyTypeField1TS::getLocsReallyUsed ( ) const
virtual

This method returns all localizations whose name is non empty used. WARNING If localization is used several times it will be reported only once.

Implements MEDCoupling::MEDFileFieldGlobsReal.

References contentNotNullBase(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getLocsReallyUsed2().

std::vector< std::string > MEDFileAnyTypeField1TS::getPflsReallyUsedMulti ( ) const
virtual

This method returns all profiles whose name is non empty used. WARNING contrary to MEDFileField1TS::getPflsReallyUsed, if profile is used several times it will be reported as time as it appears.

Implements MEDCoupling::MEDFileFieldGlobsReal.

References contentNotNullBase(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getPflsReallyUsedMulti2().

Referenced by setProfileNameOnLeaf().

std::vector< std::string > MEDFileAnyTypeField1TS::getLocsReallyUsedMulti ( ) const
virtual

This method returns all localizations whose name is non empty used. WARNING contrary to MEDFileField1TS::getLocsReallyUsed if localization is used several times it will be reported as time as it appears.

Implements MEDCoupling::MEDFileFieldGlobsReal.

References contentNotNullBase(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getLocsReallyUsedMulti2().

Referenced by setLocNameOnLeaf().

void MEDFileAnyTypeField1TS::changePflsRefsNamesGen ( const std::vector< std::pair< std::vector< std::string >, std::string > > &  mapOfModif)
virtual
void MEDFileAnyTypeField1TS::changeLocsRefsNamesGen ( const std::vector< std::pair< std::vector< std::string >, std::string > > &  mapOfModif)
virtual
int MEDFileAnyTypeField1TS::LocateField2 ( med_idt  fid,
int  fieldIdCFormat,
bool  checkFieldId,
std::string &  fieldName,
med_field_type &  typcha,
std::vector< std::string > &  infos,
std::string &  dtunitOut,
std::string &  meshName 
)
static
int MEDFileAnyTypeField1TS::LocateField ( med_idt  fid,
const std::string &  fieldName,
int &  posCFormat,
med_field_type &  typcha,
std::vector< std::string > &  infos,
std::string &  dtunitOut,
std::string &  meshName 
)
static

This method throws an INTERP_KERNEL::Exception if fieldName field is not in file pointed by fid and with name fileName.

Parameters
[out]\returnin case of success the number of time steps available for the field with name fieldName.

References LocateField2().

Referenced by BuildContentFrom(), and MEDCoupling::MEDFileAnyTypeFieldMultiTS::BuildContentFrom().

virtual MEDFileAnyTypeField1TS* MEDCoupling::MEDFileAnyTypeField1TS::extractPart ( const std::map< int, MCAuto< DataArrayInt > > &  extractDef,
MEDFileMesh mm 
) const
pure virtual
virtual med_field_type MEDCoupling::MEDFileAnyTypeField1TS::getMEDFileFieldType ( ) const
pure virtual

Referenced by writeLL().

const MEDFileAnyTypeField1TSWithoutSDA * MEDFileAnyTypeField1TS::contentNotNullBase ( ) const

References _content.

Member Data Documentation