Version: 9.12.0
MEDCoupling::MEDFileFieldGlobs Class Reference
Inheritance diagram for MEDCoupling::MEDFileFieldGlobs:
Collaboration diagram for MEDCoupling::MEDFileFieldGlobs:

Public Member Functions

void appendGlobs (const MEDFileFieldGlobs &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 changeLocsNamesInStruct (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 checkGlobsLocsPartCoherency (const std::vector< std::string > &locsUsed) const
 
void checkGlobsPflsPartCoherency (const std::vector< std::string > &pflsUsed) const
 
std::string createNewNameOfLoc () const
 
std::string createNewNameOfPfl () const
 
MEDFileFieldGlobsdeepCopy () const
 
MEDFileFieldGlobsdeepCpyPart (const std::vector< std::string > &pfls, const std::vector< std::string > &locs) const
 
bool existsLoc (const std::string &locName) const
 
bool existsPfl (const std::string &pflName) const
 
std::string getClassName () const override
 
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)
 
void loadGlobals (med_idt fid, const MEDFileFieldGlobsReal &real)
 
void loadProfileInFile (med_idt fid, int id)
 
void loadProfileInFile (med_idt fid, int id, const std::string &pflName)
 
void setFileName (const std::string &fileName)
 
MEDFileFieldGlobsshallowCpyPart (const std::vector< std::string > &pfls, const std::vector< std::string > &locs) const
 
void simpleRepr (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
 
- 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 std::string CreateNewNameNotIn (const std::string &prefix, const std::vector< std::string > &namesToAvoid)
 
static MEDFileFieldGlobsNew ()
 
static MEDFileFieldGlobsNew (med_idt fid)
 
- Static Public Member Functions inherited from MEDCoupling::BigMemoryObject
static std::size_t GetHeapMemorySizeOfObjs (const std::vector< const BigMemoryObject * > &objs)
 

Protected Member Functions

 MEDFileFieldGlobs ()
 
 MEDFileFieldGlobs (med_idt fid)
 
 ~MEDFileFieldGlobs ()
 
- 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 Attributes

std::string _file_name
 
std::vector< MCAuto< MEDFileFieldLoc > > _locs
 
std::vector< MCAuto< DataArrayIdType > > _pfls
 

Constructor & Destructor Documentation

◆ MEDFileFieldGlobs() [1/2]

MEDFileFieldGlobs::MEDFileFieldGlobs ( med_idt  fid)
protected

◆ MEDFileFieldGlobs() [2/2]

MEDFileFieldGlobs::MEDFileFieldGlobs ( )
protected

Referenced by deepCopy(), and New().

◆ ~MEDFileFieldGlobs()

MEDFileFieldGlobs::~MEDFileFieldGlobs ( )
protected

Member Function Documentation

◆ New() [1/2]

MEDFileFieldGlobs * MEDFileFieldGlobs::New ( med_idt  fid)
static

References MEDFileFieldGlobs().

◆ New() [2/2]

◆ getClassName()

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

Reimplemented from MEDCoupling::BigMemoryObject.

◆ getHeapMemorySizeWithoutChildren()

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

Implements MEDCoupling::BigMemoryObject.

References _file_name, _locs, and _pfls.

◆ getDirectChildrenWithNull()

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

Implements MEDCoupling::BigMemoryObject.

References _locs, and _pfls.

◆ deepCopy()

MEDFileFieldGlobs * MEDFileFieldGlobs::deepCopy ( ) const

References _locs, _pfls, and MEDFileFieldGlobs().

◆ shallowCpyPart()

MEDFileFieldGlobs * MEDFileFieldGlobs::shallowCpyPart ( const std::vector< std::string > &  pfls,
const std::vector< std::string > &  locs 
) const
Exceptions
ifa profile in pfls in not in this.
ifa localization in locs in not in this.
See also
MEDFileFieldGlobs::deepCpyPart

References getFileName(), getLocalization(), getProfile(), and New().

Referenced by MEDCoupling::MEDFileFieldGlobsReal::shallowCpyOnlyUsedGlobs().

◆ deepCpyPart()

MEDFileFieldGlobs * MEDFileFieldGlobs::deepCpyPart ( const std::vector< std::string > &  pfls,
const std::vector< std::string > &  locs 
) const
Exceptions
ifa profile in pfls in not in this.
ifa localization in locs in not in this.
See also
MEDFileFieldGlobs::shallowCpyPart

References getFileName(), getLocalization(), getProfile(), and New().

Referenced by MEDCoupling::MEDFileFieldGlobsReal::deepCpyOnlyUsedGlobs().

◆ simpleRepr()

void MEDFileFieldGlobs::simpleRepr ( std::ostream &  oss) const

◆ appendGlobs()

void MEDFileFieldGlobs::appendGlobs ( const MEDFileFieldGlobs other,
double  eps 
)

References _locs, _pfls, getLocs(), and getPfls().

◆ checkGlobsPflsPartCoherency()

void MEDFileFieldGlobs::checkGlobsPflsPartCoherency ( const std::vector< std::string > &  pflsUsed) const

◆ checkGlobsLocsPartCoherency()

void MEDFileFieldGlobs::checkGlobsLocsPartCoherency ( const std::vector< std::string > &  locsUsed) const

◆ loadProfileInFile() [1/2]

void MEDFileFieldGlobs::loadProfileInFile ( med_idt  fid,
int  id,
const std::string &  pflName 
)

◆ loadProfileInFile() [2/2]

void MEDFileFieldGlobs::loadProfileInFile ( med_idt  fid,
int  id 
)

References _pfls.

◆ loadGlobals()

◆ loadAllGlobals()

void MEDFileFieldGlobs::loadAllGlobals ( med_idt  fid,
const MEDFileEntities *  entities 
)

◆ writeGlobals()

void MEDFileFieldGlobs::writeGlobals ( med_idt  fid,
const MEDFileWritable &  opt 
) const

◆ getPfls()

std::vector< std::string > MEDFileFieldGlobs::getPfls ( ) const

◆ getLocs()

std::vector< std::string > MEDFileFieldGlobs::getLocs ( ) const

◆ existsPfl()

bool MEDFileFieldGlobs::existsPfl ( const std::string &  pflName) const

◆ existsLoc()

bool MEDFileFieldGlobs::existsLoc ( const std::string &  locName) const

◆ createNewNameOfPfl()

std::string MEDFileFieldGlobs::createNewNameOfPfl ( ) const

◆ createNewNameOfLoc()

std::string MEDFileFieldGlobs::createNewNameOfLoc ( ) const

◆ whichAreEqualProfiles()

std::vector< std::vector< int > > MEDFileFieldGlobs::whichAreEqualProfiles ( ) const

◆ whichAreEqualLocs()

std::vector< std::vector< int > > MEDFileFieldGlobs::whichAreEqualLocs ( double  eps) const

◆ setFileName()

void MEDCoupling::MEDFileFieldGlobs::setFileName ( const std::string &  fileName)

◆ changePflsNamesInStruct()

void MEDFileFieldGlobs::changePflsNamesInStruct ( const std::vector< std::pair< std::vector< std::string >, std::string > > &  mapOfModif)

◆ changeLocsNamesInStruct()

void MEDFileFieldGlobs::changeLocsNamesInStruct ( const std::vector< std::pair< std::vector< std::string >, std::string > > &  mapOfModif)

◆ getNbOfGaussPtPerCell()

int MEDFileFieldGlobs::getNbOfGaussPtPerCell ( int  locId) const

◆ getLocalizationId()

int MEDFileFieldGlobs::getLocalizationId ( const std::string &  loc) const

◆ getProfileId()

int MEDFileFieldGlobs::getProfileId ( const std::string &  pfl) const

◆ getFileName()

std::string MEDCoupling::MEDFileFieldGlobs::getFileName ( ) const

◆ getLocalizationFromId() [1/2]

const MEDFileFieldLoc & MEDFileFieldGlobs::getLocalizationFromId ( int  locId) const

◆ getLocalization() [1/2]

const MEDFileFieldLoc & MEDFileFieldGlobs::getLocalization ( const std::string &  locName) const

◆ getProfileFromId() [1/2]

const DataArrayIdType * MEDFileFieldGlobs::getProfileFromId ( int  pflId) const

◆ getProfile() [1/2]

const DataArrayIdType * MEDFileFieldGlobs::getProfile ( const std::string &  pflName) const

◆ getLocalizationFromId() [2/2]

MEDFileFieldLoc & MEDFileFieldGlobs::getLocalizationFromId ( int  locId)

References _locs.

◆ getLocalization() [2/2]

MEDFileFieldLoc & MEDFileFieldGlobs::getLocalization ( const std::string &  locName)

◆ getProfile() [2/2]

DataArrayIdType * MEDFileFieldGlobs::getProfile ( const std::string &  pflName)

The returned value is never null. Borrowed reference returned.

References _pfls.

◆ getProfileFromId() [2/2]

DataArrayIdType * MEDFileFieldGlobs::getProfileFromId ( int  pflId)

References _pfls.

◆ killProfileIds()

void MEDFileFieldGlobs::killProfileIds ( const std::vector< int > &  pflIds)

◆ killLocalizationIds()

void MEDFileFieldGlobs::killLocalizationIds ( const std::vector< int > &  locIds)

◆ killStructureElementsInGlobs()

void MEDFileFieldGlobs::killStructureElementsInGlobs ( )

◆ appendProfile()

void MEDFileFieldGlobs::appendProfile ( DataArrayIdType *  pfl)

◆ appendLoc()

void MEDFileFieldGlobs::appendLoc ( const std::string &  locName,
INTERP_KERNEL::NormalizedCellType  geoType,
const std::vector< double > &  refCoo,
const std::vector< double > &  gsCoo,
const std::vector< double > &  w 
)

◆ CreateNewNameNotIn()

std::string MEDFileFieldGlobs::CreateNewNameNotIn ( const std::string &  prefix,
const std::vector< std::string > &  namesToAvoid 
)
static

Member Data Documentation

◆ _pfls

◆ _locs

◆ _file_name

std::string MEDCoupling::MEDFileFieldGlobs::_file_name
protected