|
GlobalObjects
|
Class to access the CallBack objects of a database in memory. More...
#include <GloCallBackSpy.h>
Public Member Functions | |
| CallBack * | getCallBack (EnSeekMode eMode) |
| CallBack * | getCallBack (NUM_PTR ipAddress) |
Static Public Member Functions | |
| static void | create (CallBackSpy *&prInstance) |
| static int | destroy () |
Protected Member Functions | |
| CallBackSpy () | |
| virtual | ~CallBackSpy () |
| int | insertCallBack (const CallBack *pCallBack) |
| int | removeCallBack (const CallBack *pCallBack) |
Static Protected Attributes | |
| static int | ms_iReferenceCounter |
| static CallBackSpy * | ms_pInstance |
Private Member Functions | |
| CallBackSpy (const CallBackSpy &) | |
| CallBackSpy & | operator= (const CallBackSpy &) |
Private Attributes | |
| eut::CriticalSection | m_CallBackListCriticalSection |
| std::unordered_map< NUM_PTR, CallBack * > | m_List |
| std::unordered_map< NUM_PTR, CallBack * >::iterator | m_ListIterator |
Friends | |
| class | CallBack |
Class to access the CallBack objects of a database in memory.
All CallBack objects log on automatically here.
There may only be one object of this class (Singleton Class).
|
protected |
The standard constructor is not available. You can get an instance via CallBackSpy::create(CallBackSpy*&) .
Referenced by CallBackSpy(), create(), and operator=().
|
protectedvirtual |
The destructor is not available. An DebugClassSpy object may only be removed from memory with CallBackSpy::destroy().
|
private |
The copy constructor is not available.
References CallBackSpy().
|
static |
Instantiation function. Since CallBackSpy is a singleton class, this method instantiates it once and then only returns the pointer to the instance.
| [in,out] | prInstance | The only instance of this class. |
References CallBackSpy().
|
static |
If the calling instance is the last one with a reference to the only instance of CallBackSpy, this instance is removed from memory.
| CallBack * glo::CallBackSpy::getCallBack | ( | EnSeekMode | eMode | ) |
Returns a CallBack object from the list of CallBack objects related to eMode
| [in] | eMode | The seek mode. |
Parameter examples:
References CallBack.
| CallBack * glo::CallBackSpy::getCallBack | ( | NUM_PTR | ipAddress | ) |
Returns a pointer to a CallBack object from the list of CallBack objects, which has the passed address in memory.
| [in] | ipAddress | The memory address. |
References CallBack.
|
protected |
|
private |
The assignment operator is not available.
References CallBackSpy().
|
protected |
|
friend |
References CallBack, and m_CallBackListCriticalSection.
Referenced by CallBack, getCallBack(), getCallBack(), insertCallBack(), and removeCallBack().
|
private |
|
private |
The list of CallBack objects. The index is the address, cast to NUM_PTR, of the individual objects.
|
private |
An internal iterator to the CallBack object list.
|
staticprotected |
The reference counter to the only instance of this class.
|
staticprotected |
The only instance of this class.