|
sf::Mutex | m_mutex |
| Because NumA++ can be use in a multi-threading program we must ensure that only one object manipulates the registry at the same time to avoid memory access violation. More...
|
|
std::map< unsigned int, Integrator * > | m_baseObjectList |
| list of registered objects identified by their unique integer identifier More...
|
|
std::map< std::string, Integrator * > | m_translateList |
| list of registered objects identified by their class name. More...
|
|
◆ ~IntegratorRegistry()
NumA::IntegratorRegistry::~IntegratorRegistry |
( |
| ) |
|
|
virtual |
◆ IntegratorRegistry()
NumA::IntegratorRegistry::IntegratorRegistry |
( |
| ) |
|
|
private |
Private default constructor for a unique instance.
◆ get() [1/2]
Integrator * NumA::IntegratorRegistry::get |
( |
const std::string & |
className | ) |
const |
Try to find stored object identified by its class name.
- Parameters
-
- Returns
- reference to object in memory or throw an exception
◆ get() [2/2]
Integrator * NumA::IntegratorRegistry::get |
( |
unsigned int |
classId | ) |
const |
Try to find stored object identified by its unique class identifier.
- Parameters
-
- Returns
- reference to object in memory or throw an exception
◆ getInstance()
Static function to be able to retrieve a unique instance pointer of this class anywhere in the code.
- Returns
- a unique instance of this class
◆ registerIntegrator()
unsigned int NumA::IntegratorRegistry::registerIntegrator |
( |
Integrator * |
pIntegrator | ) |
|
◆ m_baseObjectList
std::map<unsigned int, Integrator*> NumA::IntegratorRegistry::m_baseObjectList |
|
private |
list of registered objects identified by their unique integer identifier
◆ m_mutex
sf::Mutex NumA::IntegratorRegistry::m_mutex |
|
mutableprivate |
Because NumA++ can be use in a multi-threading program we must ensure that only one object manipulates the registry at the same time to avoid memory access violation.
It's performed by a mechanism called mutex or semaphore.
◆ m_pInstance
Private pointer of this class for a unique instance.
◆ m_translateList
std::map<std::string, Integrator*> NumA::IntegratorRegistry::m_translateList |
|
private |
list of registered objects identified by their class name.
The documentation for this class was generated from the following files: