Version: 9.12.0
StudyContext Class Reference

#include <SMESH_Gen_i.hxx>

Public Member Functions

 StudyContext ()
 
int addObject (const std::string &theIOR)
 
int findId (const std::string &theIOR)
 
std::string getIORbyId (const int theId)
 
std::string getIORbyOldId (const int theOldId)
 
void mapOldToNew (const int oldId, const int newId)
 
int getOldId (const int newId)
 
void Clear ()
 

Private Types

typedef NCollection_DataMap< int, std::string > TInt2StringMap
 
typedef NCollection_DataMap< int, int > TInt2IntMap
 

Private Member Functions

int getNextId ()
 

Private Attributes

TInt2StringMap mapIdToIOR
 
TInt2IntMap mapIdToId
 

Member Typedef Documentation

◆ TInt2IntMap

typedef NCollection_DataMap< int, int > StudyContext::TInt2IntMap
private

◆ TInt2StringMap

typedef NCollection_DataMap< int, std::string > StudyContext::TInt2StringMap
private

Constructor & Destructor Documentation

◆ StudyContext()

StudyContext::StudyContext ( )

Member Function Documentation

◆ addObject()

int StudyContext::addObject ( const std::string &  theIOR)

◆ Clear()

void StudyContext::Clear ( )

Referenced by SMESH_Gen_i::Close().

◆ findId()

int StudyContext::findId ( const std::string &  theIOR)

◆ getIORbyId()

std::string StudyContext::getIORbyId ( const int  theId)

◆ getIORbyOldId()

std::string StudyContext::getIORbyOldId ( const int  theOldId)

◆ getNextId()

int StudyContext::getNextId ( )
private

◆ getOldId()

int StudyContext::getOldId ( const int  newId)

Referenced by SMESH_Gen_i::Load().

◆ mapOldToNew()

void StudyContext::mapOldToNew ( const int  oldId,
const int  newId 
)

Referenced by SMESH_Gen_i::Load().

Field Documentation

◆ mapIdToId

TInt2IntMap StudyContext::mapIdToId
private

◆ mapIdToIOR

TInt2StringMap StudyContext::mapIdToIOR
private