Version: 9.12.0
MEDCoupling::MEDFileAnyTypeField1TS Class Referenceabstract
Inheritance diagram for MEDCoupling::MEDFileAnyTypeField1TS:
Collaboration diagram for MEDCoupling::MEDFileAnyTypeField1TS:

Public Member Functions

virtual MCAuto< MEDFileAnyTypeField1TSbuildNewEmpty () const =0
 
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 MEDFileAnyTypeField1TSWithoutSDAcontentNotNullBase () const
 
void convertMedBallIntoClassic ()
 
mcIdType copyTinyInfoFrom (const MEDCouplingFieldDouble *field, const DataArray *arr)
 
mcIdType copyTinyInfoFrom (const TimeHolder *th, const MEDCouplingFieldTemplate *field, const DataArray *arr)
 
MEDFileAnyTypeField1TSdeepCopy () const
 
virtual MEDFileAnyTypeField1TSextractPart (const std::map< int, MCAuto< DataArrayIdType > > &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< mcIdType, mcIdType > > > 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
 
std::vector< std::string > & getInfo ()
 
const std::vector< std::string > & getInfo () const
 
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
 
std::size_t 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 DataArrayIdType *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::RefCountObjectOnly
bool decrRef () const
 
int getRCValue () const
 
void incrRef () const
 
RefCountObjectOnlyoperator= (const RefCountObjectOnly &other)
 
- Public Member Functions inherited from MEDCoupling::BigMemoryObject
std::string debugHeapMemorySize () const
 
std::vector< const BigMemoryObject * > getAllTheProgeny () const
 
std::vector< const BigMemoryObject * > getDirectChildren () const
 
std::size_t getHeapMemorySize () const
 
std::string getHeapMemorySizeStr () const
 
bool isObjectInTheProgeny (const BigMemoryObject *obj) const
 
virtual ~BigMemoryObject ()
 
- 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 (DataArrayIdType *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
 
MEDFileFieldLoc & getLocalization (const std::string &locName)
 
const MEDFileFieldLoc & getLocalization (const std::string &locName) const
 
MEDFileFieldLoc & getLocalizationFromId (int locId)
 
const MEDFileFieldLoc & getLocalizationFromId (int locId) const
 
int getLocalizationId (const std::string &loc) const
 
std::vector< std::string > getLocs () const
 
int getNbOfGaussPtPerCell (int locId) const
 
std::vector< std::string > getPfls () const
 
DataArrayIdType * getProfile (const std::string &pflName)
 
const DataArrayIdType * getProfile (const std::string &pflName) const
 
DataArrayIdType * getProfileFromId (int pflId)
 
const DataArrayIdType * getProfileFromId (int pflId) const
 
int getProfileId (const std::string &pfl) const
 
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)
 
void loadProfileInFile (med_idt fid, int id, const std::string &pflName)
 
 MEDFileFieldGlobsReal ()
 
 MEDFileFieldGlobsReal (med_idt fid)
 
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 (const std::string &fileName, 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, bool loadAll=true)
 
static MEDFileAnyTypeField1TSNew (med_idt fid, const std::string &fieldName, 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)
 
static MEDFileAnyTypeField1TSNewAdv (med_idt fid, const std::string &fieldName, int iteration, int order, const MEDFileEntities *entities, const std::vector< mcIdType > &distrib)
 
- Static Public Member Functions inherited from MEDCoupling::BigMemoryObject
static std::size_t GetHeapMemorySizeOfObjs (const std::vector< const BigMemoryObject * > &objs)
 

Protected Member Functions

std::string getClassName () const override
 
 MEDFileAnyTypeField1TS ()
 
 MEDFileAnyTypeField1TS (const MEDFileAnyTypeField1TSWithoutSDA &other, bool shallowCopyOfContent)
 
 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)
 
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
MEDFileFieldGlobscontentNotNull ()
 
const MEDFileFieldGlobscontentNotNull () const
 

Static Protected Member Functions

static MEDFileAnyTypeField1TSWithoutSDAAllocateContentFrom (med_idt fid, const std::string &fieldName, int iteration=-1, int order=-1)
 
static MEDFileAnyTypeField1TSWithoutSDABuildContentFrom (med_idt fid, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities)
 
static MEDFileAnyTypeField1TSWithoutSDABuildContentFrom (med_idt fid, const std::string &fieldName, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities)
 
static MEDFileAnyTypeField1TSWithoutSDABuildContentFrom (med_idt fid, const std::string &fieldName, int iteration, int order, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities)
 
static MEDFileAnyTypeField1TSWithoutSDABuildContentFrom (med_idt fid, const std::string &fieldName, int iteration, int order, const PartDefinition *pd, 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() [1/5]

MEDFileAnyTypeField1TS::MEDFileAnyTypeField1TS ( )
protected

◆ MEDFileAnyTypeField1TS() [2/5]

MEDFileAnyTypeField1TS::MEDFileAnyTypeField1TS ( med_idt  fid,
bool  loadAll,
const MEDFileMeshes ms,
const MEDFileEntities *  entities = 0 
)
protected

◆ MEDFileAnyTypeField1TS() [3/5]

MEDFileAnyTypeField1TS::MEDFileAnyTypeField1TS ( med_idt  fid,
const std::string &  fieldName,
bool  loadAll,
const MEDFileMeshes ms,
const MEDFileEntities *  entities = 0 
)
protected

◆ MEDFileAnyTypeField1TS() [4/5]

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

◆ MEDFileAnyTypeField1TS() [5/5]

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

◆ getClassName()

std::string MEDCoupling::MEDFileAnyTypeField1TS::getClassName ( ) const
overrideprotectedvirtual

◆ BuildNewInstanceFromContent() [1/2]

◆ BuildNewInstanceFromContent() [2/2]

MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::BuildNewInstanceFromContent ( MEDFileAnyTypeField1TSWithoutSDA c,
med_idt  fid 
)
staticprotected

◆ BuildContentFrom() [1/4]

MEDFileAnyTypeField1TSWithoutSDA * MEDFileAnyTypeField1TS::BuildContentFrom ( med_idt  fid,
bool  loadAll,
const MEDFileMeshes ms,
const MEDFileEntities *  entities 
)
staticprotected

◆ BuildContentFrom() [2/4]

MEDFileAnyTypeField1TSWithoutSDA * MEDFileAnyTypeField1TS::BuildContentFrom ( med_idt  fid,
const std::string &  fieldName,
bool  loadAll,
const MEDFileMeshes ms,
const MEDFileEntities *  entities 
)
staticprotected

References AllocateContentFrom().

◆ BuildContentFrom() [3/4]

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

References AllocateContentFrom().

◆ BuildContentFrom() [4/4]

MEDFileAnyTypeField1TSWithoutSDA * MEDFileAnyTypeField1TS::BuildContentFrom ( med_idt  fid,
const std::string &  fieldName,
int  iteration,
int  order,
const PartDefinition *  pd,
const MEDFileEntities *  entities 
)
staticprotected

References AllocateContentFrom().

◆ AllocateContentFrom()

MEDFileAnyTypeField1TSWithoutSDA * MEDFileAnyTypeField1TS::AllocateContentFrom ( med_idt  fid,
const std::string &  fieldName,
int  iteration = -1,
int  order = -1 
)
staticprotected

◆ writeLL()

◆ New() [1/6]

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

◆ New() [2/6]

MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::New ( med_idt  fid,
bool  loadAll = true 
)
static

◆ New() [3/6]

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

References New().

◆ New() [4/6]

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

◆ New() [5/6]

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

References New().

◆ New() [6/6]

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

◆ NewAdv() [1/3]

MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::NewAdv ( const std::string &  fileName,
const std::string &  fieldName,
int  iteration,
int  order,
bool  loadAll,
const MEDFileEntities *  entities 
)
static

◆ NewAdv() [2/3]

MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::NewAdv ( med_idt  fid,
const std::string &  fieldName,
int  iteration,
int  order,
bool  loadAll,
const MEDFileEntities *  entities 
)
static

◆ NewAdv() [3/3]

MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::NewAdv ( med_idt  fid,
const std::string &  fieldName,
int  iteration,
int  order,
const MEDFileEntities *  entities,
const std::vector< mcIdType > &  distrib 
)
static

◆ buildNewEmpty()

virtual MCAuto<MEDFileAnyTypeField1TS> MEDCoupling::MEDFileAnyTypeField1TS::buildNewEmpty ( ) const
pure virtual

◆ getDimension()

int MEDFileAnyTypeField1TS::getDimension ( ) const

◆ getIteration()

int MEDFileAnyTypeField1TS::getIteration ( ) const

◆ getOrder()

int MEDFileAnyTypeField1TS::getOrder ( ) const

◆ getTime()

double MEDFileAnyTypeField1TS::getTime ( int &  iteration,
int &  order 
) const

◆ setTime()

void MEDFileAnyTypeField1TS::setTime ( int  iteration,
int  order,
double  val 
)

◆ getName()

std::string MEDFileAnyTypeField1TS::getName ( ) const

◆ setName()

void MEDFileAnyTypeField1TS::setName ( const std::string &  name)

◆ simpleRepr() [1/2]

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().

◆ simpleRepr() [2/2]

void MEDFileAnyTypeField1TS::simpleRepr ( int  bkOffset,
std::ostream &  oss,
int  f1tsId 
) const

◆ getDtUnit()

std::string MEDFileAnyTypeField1TS::getDtUnit ( ) const

◆ setDtUnit()

void MEDFileAnyTypeField1TS::setDtUnit ( const std::string &  dtUnit)

◆ getMeshName()

std::string MEDFileAnyTypeField1TS::getMeshName ( ) const

◆ setMeshName()

void MEDFileAnyTypeField1TS::setMeshName ( const std::string &  newMeshName)

◆ changeMeshNames()

bool MEDFileAnyTypeField1TS::changeMeshNames ( const std::vector< std::pair< std::string, std::string > > &  modifTab)

◆ getMeshIteration()

int MEDFileAnyTypeField1TS::getMeshIteration ( ) const

◆ getMeshOrder()

int MEDFileAnyTypeField1TS::getMeshOrder ( ) const

◆ getNumberOfComponents()

std::size_t MEDFileAnyTypeField1TS::getNumberOfComponents ( ) const

◆ isDealingTS()

bool MEDFileAnyTypeField1TS::isDealingTS ( int  iteration,
int  order 
) const

◆ getDtIt()

std::pair< int, int > MEDFileAnyTypeField1TS::getDtIt ( ) const

◆ fillIteration()

void MEDFileAnyTypeField1TS::fillIteration ( std::pair< int, int > &  p) const

◆ fillTypesOfFieldAvailable()

void MEDFileAnyTypeField1TS::fillTypesOfFieldAvailable ( std::vector< TypeOfField > &  types) const

◆ setInfo()

void MEDFileAnyTypeField1TS::setInfo ( const std::vector< std::string > &  infos)

◆ getInfo() [1/2]

const std::vector< std::string > & MEDFileAnyTypeField1TS::getInfo ( ) const

◆ getInfo() [2/2]

std::vector< std::string > & MEDFileAnyTypeField1TS::getInfo ( )

◆ presenceOfMultiDiscPerGeoType()

bool MEDFileAnyTypeField1TS::presenceOfMultiDiscPerGeoType ( ) const

◆ getTypesOfFieldAvailable()

std::vector< TypeOfField > MEDFileAnyTypeField1TS::getTypesOfFieldAvailable ( ) const

◆ getFieldSplitedByType()

std::vector< std::vector< std::pair< mcIdType, mcIdType > > > 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

◆ getLeafGivenMeshAndTypeAndLocId() [1/2]

MEDFileFieldPerMeshPerTypePerDisc * MEDFileAnyTypeField1TS::getLeafGivenMeshAndTypeAndLocId ( const std::string &  mName,
INTERP_KERNEL::NormalizedCellType  typ,
int  locId 
)

◆ getLeafGivenMeshAndTypeAndLocId() [2/2]

const MEDFileFieldPerMeshPerTypePerDisc * MEDFileAnyTypeField1TS::getLeafGivenMeshAndTypeAndLocId ( const std::string &  mName,
INTERP_KERNEL::NormalizedCellType  typ,
int  locId 
) const

◆ getNonEmptyLevels()

int MEDFileAnyTypeField1TS::getNonEmptyLevels ( const std::string &  mname,
std::vector< int > &  levs 
) const

◆ convertMedBallIntoClassic()

void MEDFileAnyTypeField1TS::convertMedBallIntoClassic ( )

◆ makeReduction()

void MEDFileAnyTypeField1TS::makeReduction ( INTERP_KERNEL::NormalizedCellType  ct,
TypeOfField  tof,
const DataArrayIdType *  pfl 
)

◆ extractPart()

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

◆ shallowCpy()

virtual MEDFileAnyTypeField1TS* MEDCoupling::MEDFileAnyTypeField1TS::shallowCpy ( ) const
pure virtual

◆ loadArrays()

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().

◆ loadArraysIfNecessary()

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().

◆ unloadArrays()

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().

◆ unloadArraysWithoutDataLoss()

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 symmetrical 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().

◆ splitComponents()

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 shared with those contained in this. ** WARNING ** do no forget to rename the output instances to avoid to write n-times in the same MED file field !

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

◆ splitDiscretizations()

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 shared with those contained in this.

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

◆ splitMultiDiscrPerGeoTypes()

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 shared with those contained in this.

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

◆ deepCopy()

MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::deepCopy ( ) const

References _content, and shallowCpy().

◆ copyTinyInfoFrom() [1/2]

mcIdType MEDFileAnyTypeField1TS::copyTinyInfoFrom ( const MEDCouplingFieldDouble field,
const DataArray arr 
)

◆ copyTinyInfoFrom() [2/2]

mcIdType MEDFileAnyTypeField1TS::copyTinyInfoFrom ( const TimeHolder th,
const MEDCouplingFieldTemplate field,
const DataArray arr 
)

◆ setProfileNameOnLeaf()

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 responsibility 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(), and MEDCoupling::MEDFileFieldGlobsReal::getProfile().

◆ setLocNameOnLeaf()

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 responsibility 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(), and getLocsReallyUsedMulti().

◆ getHeapMemorySizeWithoutChildren()

std::size_t MEDFileAnyTypeField1TS::getHeapMemorySizeWithoutChildren ( ) const
virtual

◆ getDirectChildrenWithNull()

std::vector< const BigMemoryObject * > MEDFileAnyTypeField1TS::getDirectChildrenWithNull ( ) const
virtual

◆ getPflsReallyUsed()

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().

◆ getLocsReallyUsed()

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().

◆ getPflsReallyUsedMulti()

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().

◆ getLocsReallyUsedMulti()

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().

◆ changePflsRefsNamesGen()

void MEDFileAnyTypeField1TS::changePflsRefsNamesGen ( const std::vector< std::pair< std::vector< std::string >, std::string > > &  mapOfModif)
virtual

◆ changeLocsRefsNamesGen()

void MEDFileAnyTypeField1TS::changeLocsRefsNamesGen ( const std::vector< std::pair< std::vector< std::string >, std::string > > &  mapOfModif)
virtual

◆ LocateField2()

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

◆ LocateField()

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.

Returns
in case of success the number of time steps available for the field with name fieldName.

References LocateField2().

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

◆ getMEDFileFieldType()

virtual med_field_type MEDCoupling::MEDFileAnyTypeField1TS::getMEDFileFieldType ( ) const
pure virtual

Referenced by writeLL().

◆ contentNotNullBase() [1/2]

◆ contentNotNullBase() [2/2]

const MEDFileAnyTypeField1TSWithoutSDA * MEDFileAnyTypeField1TS::contentNotNullBase ( ) const

References _content.

Member Data Documentation

◆ _content