C++ mpi module for stochmagnet_main Package
Public Member Functions | List of all members
CORE_MemoryStack< T > Class Template Reference

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
 
virtual ~CORE_MemoryStack ()
 destroy the instance of object
 
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...
 

Detailed Description

template<class T>
class CORE_MemoryStack< T >

CORE_MemoryStack is the class to register all the created classes to detect not destroyed classes.

Member Function Documentation

◆ getContentsMemorySize()

template<class T >
tMemSize CORE_MemoryStack< T >::getContentsMemorySize ( ) const
inline

return the memory size of the included associations

Returns
the memory size of the storage in bytes 1 Kb = 1024 bytes 1 Mb = 1024 Kb 1 Gb = 1024 Mb 1 Tb = 1024 Gb 1 Hb = 1024 Tb

◆ getMemorySize()

template<class T >
tMemSize CORE_MemoryStack< T >::getMemorySize ( ) const
inline

return the memory size in byte

Returns
the memory size of the storage in bytes 1 Kb = 1024 bytes 1 Mb = 1024 Kb 1 Gb = 1024 Mb 1 Tb = 1024 Gb 1 Hb = 1024 Tb

◆ getRegistredClassesNumber()

template<class T >
tIndex CORE_MemoryStack< T >::getRegistredClassesNumber ( ) const
inline

retunr the number of registred elements

Returns
the number of object classes created

◆ registerClass()

template<class T >
void CORE_MemoryStack< T >::registerClass ( const T *  obj)
inline

register the object

Parameters
[in]objobject to register

◆ toString()

template<class T >
std::string CORE_MemoryStack< T >::toString ( ) const
inline

print all the registred classes

Returns
the string with all the registered classes

◆ unregisterClass()

template<class T >
void CORE_MemoryStack< T >::unregisterClass ( const T *  obj)
inline

unregister the object

Parameters
[in]objobject to unregister

The documentation for this class was generated from the following file: