C++ main module for stochmagnet Package
1.0
|
CORE_MemoryStack is the class to register all the created classes to detect not destroyed classes. More...
#include <CORE_MemoryStack.h>
Public Member Functions | |
CORE_MemoryStack () | |
build an instance of the object More... | |
virtual | ~CORE_MemoryStack () |
destroy the instance of object More... | |
tMemSize | getMemorySize () const |
return the memory size in byte More... | |
tMemSize | getContentsMemorySize () const |
return the memory size of the included associations More... | |
void | registerClass (const T *obj) |
register the object More... | |
void | unregisterClass (const T *obj) |
unregister the object More... | |
tIndex | getRegistredClassesNumber () const |
retunr the number of registred elements More... | |
std::string | toString () const |
print all the registred classes More... | |
Private Attributes | |
std::map< std::string, const T * > | mObjects |
CORE_MemoryStack is the class to register all the created classes to detect not destroyed classes.
|
inline |
build an instance of the object
|
inlinevirtual |
destroy the instance of object
|
inline |
return the memory size of the included associations
References CORE_MemoryStack< T >::mObjects, and tString.
Referenced by CORE_MemoryStack< T >::getMemorySize().
|
inline |
return the memory size in byte
References CORE_MemoryStack< T >::getContentsMemorySize().
|
inline |
retunr the number of registred elements
References CORE_MemoryStack< T >::mObjects.
|
inline |
register the object
[in] | obj | object to register |
References ASSERT_IN, CORE_MemoryStack< T >::mObjects, and core_functions::pointerToString().
|
inline |
print all the registred classes
References CORE_MemoryStack< T >::mObjects, and tInteger.
|
inline |
unregister the object
[in] | obj | object to unregister |
References ASSERT_IN, CORE_MemoryStack< T >::mObjects, and core_functions::pointerToString().
|
private |