|
| | BaseObject (const BaseObject &other) |
| | Copy constructor. More...
|
| |
| void | info (const std::string &functionName, const std::string &message) const |
| | Print info message into logger. More...
|
| |
| void | debug (const std::string &functionName, const std::string &message) const |
| | Print debug message into logger. More...
|
| |
| void | warn (const std::string &functionName, const std::string &message) const |
| | Print warning message into logger. More...
|
| |
| void | errorMissingParameter (const std::string ¶meterName) const |
| | Use in automation process to throw exception when a parameter is missing from the XML scenario file. More...
|
| |
◆ ModuleObjectReference() [1/2]
| PARTONS::ModuleObjectReference::ModuleObjectReference |
( |
ModuleObject * |
pModuleObjectPointer | ) |
|
◆ ModuleObjectReference() [2/2]
Copy constructor.
- Parameters
-
◆ ~ModuleObjectReference()
| PARTONS::ModuleObjectReference::~ModuleObjectReference |
( |
| ) |
|
|
virtual |
Default destructor.
In the ModuleObjectFactory when test is done on the m_numberOfReference member, if it reached 0 (zero) then it means that there is no longer reference to the m_pModuleObjectPointer member. So the current ModuleObjectReference in the ModuleFactory map is deleted and the destructor of ModuleObjectReference is called. And object pointed by m_pModuleObjectPointer is removed from the memory (see destructor implementation).
◆ decCounter()
| void PARTONS::ModuleObjectReference::decCounter |
( |
| ) |
|
Decrement by one the number of reference to the pointed object m_pModuleObjectPointer;.
◆ getModuleObjectPointer()
| const ModuleObject * PARTONS::ModuleObjectReference::getModuleObjectPointer |
( |
| ) |
const |
◆ getNumberOfReference()
| unsigned int PARTONS::ModuleObjectReference::getNumberOfReference |
( |
| ) |
const |
◆ incCounter()
| void PARTONS::ModuleObjectReference::incCounter |
( |
| ) |
|
Increment by one the number of reference to the pointed object m_pModuleObjectPointer;.
◆ setNumberOfReference()
| void PARTONS::ModuleObjectReference::setNumberOfReference |
( |
unsigned int |
numberOfReference | ) |
|
◆ toString()
| std::string PARTONS::ModuleObjectReference::toString |
( |
| ) |
const |
|
virtual |
Return a pre-formatted characters string for output visualization of class member's values.
- Returns
- a pre-formatted characters string.
Reimplemented from PARTONS::BaseObject.
◆ m_numberOfReference
| unsigned int PARTONS::ModuleObjectReference::m_numberOfReference |
|
private |
Count the number of reference to the pointer member in the all running program.
◆ m_pModuleObjectPointer
| ModuleObject* PARTONS::ModuleObjectReference::m_pModuleObjectPointer |
|
private |
Keep pointer to the module object in memory.
The documentation for this class was generated from the following files: