Public Member Functions | |
virtual MCAuto< MEDFileAnyTypeField1TS > | buildNewEmpty () 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) |
MEDFileAnyTypeField1TSWithoutSDA * | contentNotNullBase () |
const MEDFileAnyTypeField1TSWithoutSDA * | contentNotNullBase () const |
void | convertMedBallIntoClassic () |
mcIdType | copyTinyInfoFrom (const MEDCouplingFieldDouble *field, const DataArray *arr) |
mcIdType | copyTinyInfoFrom (const TimeHolder *th, const MEDCouplingFieldTemplate *field, const DataArray *arr) |
MEDFileAnyTypeField1TS * | deepCopy () const |
virtual MEDFileAnyTypeField1TS * | extractPart (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< TypeOfField > | getTypesOfFieldAvailable () 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 MEDFileAnyTypeField1TS * | shallowCpy () 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 |
RefCountObjectOnly & | operator= (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 MEDFileAnyTypeField1TS * | New (const std::string &fileName, bool loadAll=true) |
static MEDFileAnyTypeField1TS * | New (const std::string &fileName, const std::string &fieldName, bool loadAll=true) |
static MEDFileAnyTypeField1TS * | New (const std::string &fileName, const std::string &fieldName, int iteration, int order, bool loadAll=true) |
static MEDFileAnyTypeField1TS * | New (med_idt fid, bool loadAll=true) |
static MEDFileAnyTypeField1TS * | New (med_idt fid, const std::string &fieldName, bool loadAll=true) |
static MEDFileAnyTypeField1TS * | New (med_idt fid, const std::string &fieldName, int iteration, int order, bool loadAll=true) |
static MEDFileAnyTypeField1TS * | NewAdv (const std::string &fileName, const std::string &fieldName, int iteration, int order, bool loadAll, const MEDFileEntities *entities) |
static MEDFileAnyTypeField1TS * | NewAdv (med_idt fid, const std::string &fieldName, int iteration, int order, bool loadAll, const MEDFileEntities *entities) |
static MEDFileAnyTypeField1TS * | NewAdv (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 | |
MEDFileFieldGlobs * | contentNotNull () |
const MEDFileFieldGlobs * | contentNotNull () const |
Static Protected Member Functions | |
static MEDFileAnyTypeField1TSWithoutSDA * | AllocateContentFrom (med_idt fid, const std::string &fieldName, int iteration=-1, int order=-1) |
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 MEDFileAnyTypeField1TSWithoutSDA * | BuildContentFrom (med_idt fid, const std::string &fieldName, int iteration, int order, const PartDefinition *pd, const MEDFileEntities *entities) |
static MEDFileAnyTypeField1TS * | BuildNewInstanceFromContent (MEDFileAnyTypeField1TSWithoutSDA *c) |
static MEDFileAnyTypeField1TS * | BuildNewInstanceFromContent (MEDFileAnyTypeField1TSWithoutSDA *c, med_idt fid) |
Protected Attributes | |
MCAuto< MEDFileAnyTypeField1TSWithoutSDA > | _content |
Protected Attributes inherited from MEDCoupling::MEDFileFieldGlobsReal | |
MCAuto< MEDFileFieldGlobs > | _globals |
User class.
|
protected |
|
protected |
References _content, BuildContentFrom(), and MEDCoupling::MEDFileFieldGlobsReal::loadGlobals().
|
protected |
References _content, BuildContentFrom(), and MEDCoupling::MEDFileFieldGlobsReal::loadGlobals().
|
protected |
References _content, BuildContentFrom(), and MEDCoupling::MEDFileFieldGlobsReal::loadGlobals().
|
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.
References _content, MEDCoupling::RefCountObjectOnly::incrRef(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::shallowCpy().
|
overrideprotectedvirtual |
Reimplemented from MEDCoupling::BigMemoryObject.
Reimplemented in MEDCoupling::MEDFileInt64Field1TS, MEDCoupling::MEDFileInt32Field1TS, and MEDCoupling::MEDFileField1TS.
|
staticprotected |
References MEDCoupling::RefCountObjectOnly::incrRef(), MEDCoupling::MEDFileTemplateField1TS< T >::New(), and MEDCoupling::MEDFileTemplateField1TS< double >::New().
Referenced by BuildNewInstanceFromContent(), MEDCoupling::MEDFileField1TS::convertToInt(), MEDCoupling::MEDFileField1TS::convertToInt64(), New(), and NewAdv().
|
staticprotected |
|
staticprotected |
References AllocateContentFrom().
Referenced by MEDFileAnyTypeField1TS(), New(), and NewAdv().
|
staticprotected |
References AllocateContentFrom().
|
staticprotected |
References AllocateContentFrom().
|
staticprotected |
References AllocateContentFrom().
|
staticprotected |
|
protected |
|
static |
Referenced by New(), MEDCoupling::ReadField(), MEDCoupling::ReadFieldCellLike(), and MEDCoupling::ReadFieldNode().
|
static |
References BuildContentFrom(), and BuildNewInstanceFromContent().
|
static |
References New().
|
static |
References BuildContentFrom(), and BuildNewInstanceFromContent().
|
static |
References New().
|
static |
References BuildContentFrom(), and BuildNewInstanceFromContent().
|
static |
|
static |
References BuildContentFrom(), and BuildNewInstanceFromContent().
|
static |
References BuildContentFrom(), BuildNewInstanceFromContent(), and MEDCoupling::C_DEALLOC.
|
pure virtual |
Implemented in MEDCoupling::MEDFileInt64Field1TS, MEDCoupling::MEDFileInt32Field1TS, and MEDCoupling::MEDFileField1TS.
int MEDFileAnyTypeField1TS::getDimension | ( | ) | const |
int MEDFileAnyTypeField1TS::getIteration | ( | ) | const |
int MEDFileAnyTypeField1TS::getOrder | ( | ) | const |
double MEDFileAnyTypeField1TS::getTime | ( | int & | iteration, |
int & | order | ||
) | const |
void MEDFileAnyTypeField1TS::setTime | ( | int | iteration, |
int | order, | ||
double | val | ||
) |
std::string MEDFileAnyTypeField1TS::getName | ( | ) | const |
References contentNotNullBase(), and MEDCoupling::MEDFileFieldNameScope::getName().
Referenced by writeLL().
void MEDFileAnyTypeField1TS::setName | ( | const std::string & | name | ) |
References contentNotNullBase(), and MEDCoupling::MEDFileFieldNameScope::setName().
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 |
References contentNotNullBase(), and MEDCoupling::MEDFileFieldNameScope::getDtUnit().
Referenced by writeLL().
void MEDFileAnyTypeField1TS::setDtUnit | ( | const std::string & | dtUnit | ) |
References contentNotNullBase(), and MEDCoupling::MEDFileFieldNameScope::setDtUnit().
std::string MEDFileAnyTypeField1TS::getMeshName | ( | ) | const |
References contentNotNullBase(), and MEDCoupling::MEDFileFieldNameScope::getMeshName().
Referenced by writeLL().
void MEDFileAnyTypeField1TS::setMeshName | ( | const std::string & | newMeshName | ) |
References contentNotNullBase(), and MEDCoupling::MEDFileFieldNameScope::setMeshName().
bool MEDFileAnyTypeField1TS::changeMeshNames | ( | const std::vector< std::pair< std::string, std::string > > & | modifTab | ) |
int MEDFileAnyTypeField1TS::getMeshIteration | ( | ) | const |
int MEDFileAnyTypeField1TS::getMeshOrder | ( | ) | const |
std::size_t MEDFileAnyTypeField1TS::getNumberOfComponents | ( | ) | const |
References contentNotNullBase(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getNumberOfComponents().
Referenced by writeLL().
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 |
References contentNotNullBase(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getInfo().
Referenced by writeLL().
std::vector< std::string > & MEDFileAnyTypeField1TS::getInfo | ( | ) |
bool MEDFileAnyTypeField1TS::presenceOfMultiDiscPerGeoType | ( | ) | const |
std::vector< TypeOfField > MEDFileAnyTypeField1TS::getTypesOfFieldAvailable | ( | ) | const |
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 |
MEDFileFieldPerMeshPerTypePerDisc * MEDFileAnyTypeField1TS::getLeafGivenMeshAndTypeAndLocId | ( | const std::string & | mName, |
INTERP_KERNEL::NormalizedCellType | typ, | ||
int | locId | ||
) |
References contentNotNullBase(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getLeafGivenMeshAndTypeAndLocId().
Referenced by setLocNameOnLeaf(), and setProfileNameOnLeaf().
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 DataArrayIdType * | pfl | ||
) |
|
pure virtual |
Implemented in MEDCoupling::MEDFileTemplateField1TS< T >, and MEDCoupling::MEDFileTemplateField1TS< double >.
|
pure virtual |
Implemented in MEDCoupling::MEDFileInt64Field1TS, MEDCoupling::MEDFileInt32Field1TS, and MEDCoupling::MEDFileField1TS.
Referenced by deepCopy(), splitComponents(), splitDiscretizations(), and splitMultiDiscrPerGeoTypes().
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.
If | the fileName is not set or points to a non readable MED file. |
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.
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.
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 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.
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 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().
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().
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().
MEDFileAnyTypeField1TS * MEDFileAnyTypeField1TS::deepCopy | ( | ) | const |
References _content, and shallowCpy().
mcIdType MEDFileAnyTypeField1TS::copyTinyInfoFrom | ( | const MEDCouplingFieldDouble * | field, |
const DataArray * | arr | ||
) |
mcIdType MEDFileAnyTypeField1TS::copyTinyInfoFrom | ( | const TimeHolder * | th, |
const MEDCouplingFieldTemplate * | field, | ||
const DataArray * | arr | ||
) |
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.
[in] | mName | specifies the underlying mesh name. This value can be pointer 0 for users that do not deal with fields on multi mesh. |
[in] | typ | is for the geometric cell type (or INTERP_KERNEL::NORM_ERROR for node field) entry to find the right MEDFileFieldPerMeshPerTypePerDisc instance to set. |
[in] | locId | is 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] | newLocName | is the new localization name. |
[in] | forceRenameOnGlob | specifies 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().
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.
[in] | mName | specifies the underlying mesh name. This value can be pointer 0 for users that do not deal with fields on multi mesh. |
[in] | typ | is for the geometric cell type (or INTERP_KERNEL::NORM_ERROR for node field) entry to find the right MEDFileFieldPerMeshPerTypePerDisc instance to set. |
[in] | locId | is 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] | newLocName | is the new localization name. |
[in] | forceRenameOnGlob | specifies 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().
|
virtual |
Implements MEDCoupling::BigMemoryObject.
References MEDCoupling::MEDFileFieldGlobsReal::getHeapMemorySizeWithoutChildren().
|
virtual |
Implements MEDCoupling::BigMemoryObject.
References _content, and MEDCoupling::MEDFileFieldGlobsReal::getDirectChildrenWithNull().
|
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().
|
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().
|
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().
|
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().
|
virtual |
|
virtual |
|
static |
|
static |
This method throws an INTERP_KERNEL::Exception if fieldName field is not in file pointed by fid and with name fileName.
References LocateField2().
Referenced by AllocateContentFrom(), and MEDCoupling::MEDFileAnyTypeFieldMultiTS::BuildContentFrom().
|
pure virtual |
Referenced by writeLL().
MEDFileAnyTypeField1TSWithoutSDA * MEDFileAnyTypeField1TS::contentNotNullBase | ( | ) |
References _content.
Referenced by changeLocsRefsNamesGen(), changeMeshNames(), changePflsRefsNamesGen(), convertMedBallIntoClassic(), copyTinyInfoFrom(), fillIteration(), fillTypesOfFieldAvailable(), getDimension(), getDtIt(), getDtUnit(), getFieldSplitedByType(), getInfo(), getIteration(), getLeafGivenMeshAndTypeAndLocId(), getLocsReallyUsed(), getLocsReallyUsedMulti(), getMeshIteration(), getMeshName(), getMeshOrder(), getName(), getNonEmptyLevels(), getNumberOfComponents(), getOrder(), getPflsReallyUsed(), getPflsReallyUsedMulti(), getTime(), getTypesOfFieldAvailable(), isDealingTS(), loadArrays(), loadArraysIfNecessary(), makeReduction(), presenceOfMultiDiscPerGeoType(), MEDCoupling::MEDFileAnyTypeFieldMultiTS::pushBackTimeStep(), setDtUnit(), setInfo(), setMeshName(), setName(), setTime(), simpleRepr(), unloadArrays(), unloadArraysWithoutDataLoss(), and writeLL().
const MEDFileAnyTypeField1TSWithoutSDA * MEDFileAnyTypeField1TS::contentNotNullBase | ( | ) | const |
References _content.
|
protected |