#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 |
|
private |
|
private |
| StudyContext::StudyContext | ( | ) |
| int StudyContext::addObject | ( | const std::string & | theIOR | ) |
References getNextId(), and mapIdToIOR.
Referenced by SMESH_Gen_i::RegisterObject().
| void StudyContext::Clear | ( | ) |
References mapIdToId, and mapIdToIOR.
Referenced by SMESH_Gen_i::Close().
| int StudyContext::findId | ( | const std::string & | theIOR | ) |
References mapIdToIOR.
Referenced by SMESH_Gen_i::GetObjectId(), SMESH_Gen_i::IORToLocalPersistentID(), SMESH_Gen_i::Load(), and SMESH_Gen_i::Save().
| std::string StudyContext::getIORbyId | ( | const int | theId | ) |
References mapIdToIOR.
Referenced by getIORbyOldId().
| std::string StudyContext::getIORbyOldId | ( | const int | theOldId | ) |
References getIORbyId(), and mapIdToId.
Referenced by SMESH_Gen_i::Load(), and SMESH_Gen_i::LocalPersistentIDToIOR().
|
private |
Referenced by addObject().
| int StudyContext::getOldId | ( | const int | newId | ) |
References mapIdToId.
Referenced by SMESH_Gen_i::Load().
| void StudyContext::mapOldToNew | ( | const int | oldId, |
| const int | newId | ||
| ) |
References mapIdToId.
Referenced by SMESH_Gen_i::Load().
|
private |
Referenced by Clear(), getIORbyOldId(), getOldId(), and mapOldToNew().
|
private |
Referenced by addObject(), Clear(), findId(), and getIORbyId().