Version: 9.14.0
MEDCoupling::MEDFileCurveLinearMesh Class Reference
Inheritance diagram for MEDCoupling::MEDFileCurveLinearMesh:
Collaboration diagram for MEDCoupling::MEDFileCurveLinearMesh:

Public Member Functions

std::string advancedRepr () const
 
MEDFileMeshcartesianize () const
 
void clearNonDiscrAttributes () const
 
MEDFileMeshcreateNewEmpty () const
 
MEDFileCurveLinearMeshdeepCopy () const
 
std::string getClassName () const override
 
std::vector< const BigMemoryObject * > getDirectChildrenWithNull () const
 
std::size_t getHeapMemorySizeWithoutChildren () const
 
const MEDCouplingCurveLinearMeshgetMesh () const
 
int getMeshDimension () const
 
int getSpaceDimension () const
 
bool isEqual (const MEDFileMesh *other, double eps, std::string &what) const
 
void setMesh (MEDCouplingCurveLinearMesh *m)
 
MEDFileCurveLinearMeshshallowCpy () const
 
std::string simpleRepr () const
 
- Public Member Functions inherited from MEDCoupling::MEDFileStructuredMesh
void addGroup (int meshDimRelToMaxExt, const DataArrayIdType *ids)
 
void addNodeGroup (const DataArrayIdType *ids)
 
mcIdType buildImplicitPartIfAny (INTERP_KERNEL::NormalizedCellType gt) const
 
std::vector< int > getFamArrNonEmptyLevelsExt () const
 
DataArrayIdType * getFamiliesArr (int meshDimRelToMaxExt, const std::vector< std::string > &fams, bool renum=false) const
 
DataArrayIdType * getFamilyFieldAtLevel (int meshDimRelToMaxExt)
 
const DataArrayIdType * getFamilyFieldAtLevel (int meshDimRelToMaxExt) const
 
std::vector< mcIdType > getFamsNonEmptyLevels (const std::vector< std::string > &fams) const
 
std::vector< mcIdType > getFamsNonEmptyLevelsExt (const std::vector< std::string > &fams) const
 
std::vector< INTERP_KERNEL::NormalizedCellType > getGeoTypesAtLevel (int meshDimRelToMax) const
 
MCAuto< DataArrayIdType > getGlobalNumFieldAtLevel (int meshDimRelToMaxExt) const
 
MEDCoupling1SGTUMeshgetImplicitFaceMesh () const
 
mcIdType getMaxAbsFamilyIdInArrays () const
 
mcIdType getMaxFamilyIdInArrays () const
 
MEDCouplingMeshgetMeshAtLevel (int meshDimRelToMax, bool renum=false) const
 
mcIdType getMinFamilyIdInArrays () const
 
std::vector< int > getNameArrNonEmptyLevelsExt () const
 
const DataArrayAsciiChargetNameFieldAtLevel (int meshDimRelToMaxExt) const
 
std::vector< int > getNonEmptyLevels () const
 
std::vector< int > getNonEmptyLevelsExt () const
 
std::vector< int > getNumArrNonEmptyLevelsExt () const
 
const DataArrayIdType * getNumberFieldAtLevel (int meshDimRelToMaxExt) const
 
mcIdType getNumberOfCellsAtLevel (int meshDimRelToMaxExt) const
 
mcIdType getNumberOfCellsWithType (INTERP_KERNEL::NormalizedCellType ct) const
 
mcIdType getNumberOfNodes () const
 
const DataArrayIdType * getRevNumberFieldAtLevel (int meshDimRelToMaxExt) const
 
mcIdType getSizeAtLevel (int meshDimRelToMaxExt) const
 
bool hasImplicitPart () const
 
bool presenceOfStructureElements () const
 
void releaseImplicitPartIfAny () const
 
void setFamilyFieldArr (int meshDimRelToMaxExt, DataArrayIdType *famArr)
 
void setGlobalNumFieldAtLevel (int meshDimRelToMaxExt, DataArrayIdType *globalNumArr)
 
void setNameFieldAtLevel (int meshDimRelToMaxExt, DataArrayAsciiChar *nameArr)
 
void setRenumFieldArr (int meshDimRelToMaxExt, DataArrayIdType *renumArr)
 
bool unPolyze (std::vector< mcIdType > &oldCode, std::vector< mcIdType > &newCode, DataArrayIdType *&o2nRenumCell)
 
void whichAreNodesFetched (const MEDFileField1TSStructItem &st, const MEDFileFieldGlobsReal *globs, std::vector< bool > &nodesFetched) const
 
- Public Member Functions inherited from MEDCoupling::MEDFileMesh
virtual void addFamily (const std::string &familyName, mcIdType id)
 
void addFamilyOnGrp (const std::string &grpName, const std::string &famName)
 
void addGroupsAtLevel (int meshDimRelToMaxExt, const std::vector< const DataArrayIdType * > &grps)
 
bool areFamsEqual (const MEDFileMesh *other, std::string &what) const
 
bool areGrpsEqual (const MEDFileMesh *other, std::string &what) const
 
void assignFamilyNameWithGroupName ()
 
void changeAllGroupsContainingFamily (const std::string &familyNameToChange, const std::vector< std::string > &newFamiliesNames)
 
void changeFamilyId (mcIdType oldId, mcIdType newId)
 
void changeFamilyName (const std::string &oldName, const std::string &newName)
 
void changeGroupName (const std::string &oldName, const std::string &newName)
 
bool changeNames (const std::vector< std::pair< std::string, std::string >> &modifTab)
 
void checkOrphanFamilyZero () const
 
void clearFamGrpMaps ()
 
void clearFamMap ()
 
void clearGrpMap ()
 
DataArrayIdType * computeAllFamilyIdsInUse () const
 
void copyFamGrpMapsFrom (const MEDFileMesh &other)
 
virtual void createGroupOnAll (int meshDimRelToMaxExt, const std::string &groupName)
 
bool ensureDifferentFamIdsPerLevel ()
 
bool existsFamily (const std::string &familyName) const
 
bool existsFamily (mcIdType famId) const
 
bool existsGroup (const std::string &groupName) const
 
std::string findOrCreateAndGiveFamilyWithId (mcIdType id, bool &created)
 
DataArrayIdType * getAllFamiliesIdsReferenced () const
 
std::vector< INTERP_KERNEL::NormalizedCellType > getAllGeoTypes () const
 
MEDCouplingAxisType getAxisType () const
 
std::string getDescription () const
 
virtual std::vector< mcIdType > getDistributionOfTypes (int meshDimRelToMax) const
 
MEDFileEquivalences * getEquivalences ()
 
const MEDFileEquivalences * getEquivalences () const
 
std::vector< mcIdType > getFamiliesIds (const std::vector< std::string > &famNames) const
 
std::vector< mcIdType > getFamiliesIdsOnGroup (const std::string &name) const
 
std::vector< std::string > getFamiliesNames () const
 
std::vector< std::string > getFamiliesNamesWithFilePointOfView () const
 
std::vector< std::string > getFamiliesOnGroup (const std::string &name) const
 
std::vector< std::string > getFamiliesOnGroups (const std::vector< std::string > &grps) const
 
virtual DataArrayIdType * getFamilyArr (int meshDimRelToMaxExt, const std::string &fam, bool renum=false) const
 
mcIdType getFamilyId (const std::string &name) const
 
const std::map< std::string, mcIdType > & getFamilyInfo () const
 
std::string getFamilyNameGivenId (mcIdType id) const
 
std::vector< mcIdType > getFamNonEmptyLevels (const std::string &fam) const
 
std::vector< mcIdType > getFamNonEmptyLevelsExt (const std::string &fam) const
 
virtual DataArrayIdType * getGroupArr (int meshDimRelToMaxExt, const std::string &grp, bool renum=false) const
 
const std::map< std::string, std::vector< std::string > > & getGroupInfo () const
 
virtual DataArrayIdType * getGroupsArr (int meshDimRelToMaxExt, const std::vector< std::string > &grps, bool renum=false) const
 
std::vector< std::string > getGroupsNames () const
 
std::vector< std::string > getGroupsOnFamily (const std::string &name) const
 
std::vector< std::string > getGroupsOnSpecifiedLev (int meshDimRelToMaxExt) const
 
std::vector< mcIdType > getGrpNonEmptyLevels (const std::string &grp) const
 
std::vector< mcIdType > getGrpNonEmptyLevelsExt (const std::string &grp) const
 
std::vector< mcIdType > getGrpsNonEmptyLevels (const std::vector< std::string > &grps) const
 
std::vector< mcIdType > getGrpsNonEmptyLevelsExt (const std::vector< std::string > &grps) const
 
int getIteration () const
 
MEDFileJoints * getJoints () const
 
mcIdType getMaxAbsFamilyId () const
 
mcIdType getMaxFamilyId () const
 
mcIdType getMinFamilyId () const
 
std::string getName () const
 
virtual DataArrayIdType * getNodeFamiliesArr (const std::vector< std::string > &fams, bool renum=false) const
 
virtual DataArrayIdType * getNodeFamilyArr (const std::string &fam, bool renum=false) const
 
virtual DataArrayIdType * getNodeGroupArr (const std::string &grp, bool renum=false) const
 
virtual DataArrayIdType * getNodeGroupsArr (const std::vector< std::string > &grps, bool renum=false) const
 
int getNumberOfJoints () const
 
DataArrayIdType * getOrCreateAndGetFamilyFieldAtLevel (int meshDimRelToMaxExt)
 
int getOrder () const
 
mcIdType getTheMaxAbsFamilyId () const
 
mcIdType getTheMaxFamilyId () const
 
mcIdType getTheMinFamilyId () const
 
double getTime (int &dt, int &it) const
 
std::string getTimeUnit () const
 
double getTimeValue () const
 
std::string getUnivName () const
 
bool getUnivNameWrStatus () const
 
void initializeEquivalences ()
 
virtual bool keepFamIdsOnlyOnLevs (const std::vector< mcIdType > &famIds, const std::vector< int > &levs)
 
void killEquivalences ()
 
virtual void killStructureElements ()
 
void normalizeFamIdsMEDFile ()
 
void normalizeFamIdsTrio ()
 
void rearrangeFamilies ()
 
std::vector< std::string > removeEmptyGroups ()
 
void removeFamiliesReferedByNoGroups ()
 
void removeFamily (const std::string &name)
 
void removeGroup (const std::string &name)
 
void removeGroupAtLevel (int meshDimRelToMaxExt, const std::string &name)
 
std::vector< std::string > removeOrphanFamilies ()
 
std::vector< std::string > removeOrphanGroups ()
 
void setAxisType (MEDCouplingAxisType at)
 
void setDescription (const std::string &name)
 
void setFamiliesIdsOnGroup (const std::string &name, const std::vector< mcIdType > &famIds)
 
void setFamiliesOnGroup (const std::string &name, const std::vector< std::string > &fams)
 
void setFamilyId (const std::string &familyName, mcIdType id)
 
void setFamilyIdUnique (const std::string &familyName, mcIdType id)
 
void setFamilyInfo (const std::map< std::string, mcIdType > &info)
 
void setGroupInfo (const std::map< std::string, std::vector< std::string >> &info)
 
virtual void setGroupsAtLevel (int meshDimRelToMaxExt, const std::vector< const DataArrayIdType * > &grps, bool renum=false)
 
void setGroupsOnFamily (const std::string &famName, const std::vector< std::string > &grps)
 
void setIteration (int it)
 
void setJoints (MEDFileJoints *joints)
 
virtual void setName (const std::string &name)
 
void setOrder (int order)
 
void setTime (int dt, int it, double time)
 
void setTimeUnit (const std::string &unit)
 
void setTimeValue (double time)
 
void setUnivNameWrStatus (bool newStatus)
 
void writeLL (med_idt fid) const
 
void zipFamilies ()
 
- 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 ()
 

Static Public Member Functions

static MEDFileCurveLinearMeshNew ()
 
static MEDFileCurveLinearMeshNew (const std::string &fileName, const std::string &mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0)
 
static MEDFileCurveLinearMeshNew (const std::string &fileName, MEDFileMeshReadSelector *mrs=0)
 
static MEDFileCurveLinearMeshNew (DataArrayByte *db)
 
static MEDFileCurveLinearMeshNew (med_idt fid, const std::string &mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0)
 
static MEDFileCurveLinearMeshNew (med_idt fid, MEDFileMeshReadSelector *mrs=0)
 
- Static Public Member Functions inherited from MEDCoupling::MEDFileMesh
static TypeOfField ConvertFromMEDFileEntity (med_entity_type etype)
 
static INTERP_KERNEL::NormalizedCellType ConvertFromMEDFileGeoType (med_geometry_type geoType)
 
static med_geometry_type ConvertToMEDFileGeoType (INTERP_KERNEL::NormalizedCellType geoType)
 
static std::string GetMagicFamilyStr ()
 
static MEDFileMeshNew (const std::string &fileName, const std::string &mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0, MEDFileJoints *joints=0)
 
static MEDFileMeshNew (const std::string &fileName, MEDFileMeshReadSelector *mrs=0)
 
static MEDFileMeshNew (DataArrayByte *db)
 
static MEDFileMeshNew (med_idt fid, const std::string &mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0, MEDFileJoints *joints=0)
 
static MEDFileMeshNew (med_idt fid, MEDFileMeshReadSelector *mrs=0)
 
- Static Public Member Functions inherited from MEDCoupling::BigMemoryObject
static std::size_t GetHeapMemorySizeOfObjs (const std::vector< const BigMemoryObject * > &objs)
 

Friends

class MEDFileMesh
 

Additional Inherited Members

- Static Public Attributes inherited from MEDCoupling::MEDFileMesh
static const char DFT_FAM_NAME [] = "FAMILLE_ZERO"
 
- Protected Member Functions inherited from MEDCoupling::MEDFileStructuredMesh
void buildImplicitPart () const
 
void buildMinusOneImplicitPartIfNeeded () const
 
void changeFamilyIdArr (mcIdType oldId, mcIdType newId)
 
void deepCpyAttributes ()
 
std::list< MCAuto< DataArrayIdType > > getAllNonNullFamilyIds () const
 
void loadStrMeshFromFile (MEDFileStrMeshL2 *strm, med_idt fid, const std::string &mName, int dt, int it, MEDFileMeshReadSelector *mrs)
 
void writeStructuredLL (med_idt fid, const std::string &maa) const
 
 ~MEDFileStructuredMesh ()
 
- Protected Member Functions inherited from MEDCoupling::MEDFileMesh
void addFamilyOnAllGroupsHaving (const std::string &famName, const std::string &otherFamName)
 
void addGroupUnderground (bool isNodeGroup, const DataArrayIdType *ids, DataArrayIdType *famArr)
 
virtual void appendFamilyEntries (const DataArrayIdType *famIds, const std::vector< std::vector< mcIdType >> &fidsOfGrps, const std::vector< std::string > &grpNames)
 
bool areEquivalencesEqual (const MEDFileMesh *other, std::string &what) const
 
void checkCartesian () const
 
void checkNoGroupClash (const DataArrayIdType *famArr, const std::string &grpName) const
 
void dealWithTinyInfo (const MEDCouplingMesh *m)
 
void deepCpyEquivalences (const MEDFileMesh &other)
 
void getEquivalencesRepr (std::ostream &oss) const
 
void getFamilyRepr (std::ostream &oss) const
 
void loadEquivalences (med_idt fid)
 
void loadJointsFromFile (med_idt fid, MEDFileJoints *toUseInstedOfReading=0)
 
void loadLLWithAdditionalItems (med_idt fid, const std::string &mName, int dt, int it, MEDFileMeshReadSelector *mrs)
 
 MEDFileMesh ()
 
void setUnivName (const std::string &name)
 
void writeJoints (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 ()
 
- Static Protected Member Functions inherited from MEDCoupling::MEDFileStructuredMesh
static med_geometry_type GetGeoTypeFromMeshDim (int meshDim)
 
- Static Protected Member Functions inherited from MEDCoupling::MEDFileMesh
static void ChangeAllGroupsContainingFamily (std::map< std::string, std::vector< std::string >> &groups, const std::string &familyNameToChange, const std::vector< std::string > &newFamiliesNames)
 
static std::string CreateNameNotIn (const std::string &nameTry, const std::vector< std::string > &namesToAvoid)
 
static std::string FindOrCreateAndGiveFamilyWithId (std::map< std::string, mcIdType > &families, mcIdType id, bool &created)
 
static mcIdType PutInThirdComponentOfCodeOffset (std::vector< mcIdType > &code, mcIdType strt)
 
static void TranslateFamilyIds (mcIdType offset, DataArrayIdType *famArr, std::vector< std::vector< mcIdType >> &famIdsPerGrp)
 
- Protected Attributes inherited from MEDCoupling::MEDFileMesh
MEDCouplingAxisType _axis_type
 
std::string _desc_name
 
std::string _dt_unit
 
MCAuto< MEDFileEquivalences > _equiv
 
std::map< std::string, mcIdType > _families
 
std::map< std::string, std::vector< std::string > > _groups
 
int _iteration
 
MCAuto< MEDFileJoints > _joints
 
std::string _name
 
int _order
 
double _time
 
std::string _univ_name
 
bool _univ_wr_status
 

Member Function Documentation

◆ New() [1/6]

◆ New() [2/6]

MEDFileCurveLinearMesh * MEDFileCurveLinearMesh::New ( const std::string &  fileName,
MEDFileMeshReadSelector *  mrs = 0 
)
static

References New().

◆ New() [3/6]

MEDFileCurveLinearMesh * MEDFileCurveLinearMesh::New ( med_idt  fid,
MEDFileMeshReadSelector *  mrs = 0 
)
static

◆ New() [4/6]

static MEDFileCurveLinearMesh* MEDCoupling::MEDFileCurveLinearMesh::New ( DataArrayByte db)
static

◆ New() [5/6]

MEDFileCurveLinearMesh * MEDFileCurveLinearMesh::New ( const std::string &  fileName,
const std::string &  mName,
int  dt = -1,
int  it = -1,
MEDFileMeshReadSelector *  mrs = 0 
)
static

References New().

◆ New() [6/6]

MEDFileCurveLinearMesh * MEDFileCurveLinearMesh::New ( med_idt  fid,
const std::string &  mName,
int  dt = -1,
int  it = -1,
MEDFileMeshReadSelector *  mrs = 0 
)
static

◆ getClassName()

std::string MEDCoupling::MEDFileCurveLinearMesh::getClassName ( ) const
overridevirtual

Reimplemented from MEDCoupling::BigMemoryObject.

◆ getHeapMemorySizeWithoutChildren()

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

◆ getDirectChildrenWithNull()

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

◆ createNewEmpty()

MEDFileMesh * MEDFileCurveLinearMesh::createNewEmpty ( ) const
virtual

◆ deepCopy()

MEDFileCurveLinearMesh * MEDFileCurveLinearMesh::deepCopy ( ) const
virtual

◆ shallowCpy()

MEDFileCurveLinearMesh * MEDFileCurveLinearMesh::shallowCpy ( ) const
virtual

◆ isEqual()

bool MEDFileCurveLinearMesh::isEqual ( const MEDFileMesh other,
double  eps,
std::string &  what 
) const
virtual

Checks if this and another mesh are equal.

Parameters
[in]other- the mesh to compare with.
[in]eps- a precision used to compare real values.
[in,out]what- the string returning description of unequal data.
Returns
bool - true if the meshes are equal, false, else.

Reimplemented from MEDCoupling::MEDFileStructuredMesh.

References clearNonDiscrAttributes(), MEDCoupling::MEDCouplingMesh::isEqual(), and MEDCoupling::MEDFileStructuredMesh::isEqual().

◆ getMeshDimension()

int MEDFileCurveLinearMesh::getMeshDimension ( ) const
virtual

◆ getSpaceDimension()

int MEDFileCurveLinearMesh::getSpaceDimension ( ) const
virtual

◆ simpleRepr()

std::string MEDFileCurveLinearMesh::simpleRepr ( ) const
virtual

Returns a string describing this mesh. This description includes the mesh name and the mesh description string.

Returns
std::string - the mesh information string.

Reimplemented from MEDCoupling::MEDFileMesh.

References MEDCoupling::MEDFileMesh::simpleRepr().

Referenced by advancedRepr().

◆ advancedRepr()

std::string MEDFileCurveLinearMesh::advancedRepr ( ) const
virtual

Implements MEDCoupling::MEDFileMesh.

References simpleRepr().

◆ clearNonDiscrAttributes()

void MEDFileCurveLinearMesh::clearNonDiscrAttributes ( ) const
virtual

Clears redundant attributes of incorporated data arrays.

Reimplemented from MEDCoupling::MEDFileStructuredMesh.

References MEDCoupling::MEDFileStructuredMesh::clearNonDiscrAttributes().

Referenced by isEqual().

◆ getMesh()

const MEDCouplingCurveLinearMesh * MEDFileCurveLinearMesh::getMesh ( ) const

◆ setMesh()

◆ cartesianize()

Friends And Related Function Documentation

◆ MEDFileMesh

friend class MEDFileMesh
friend