Imposter class to wrap all global access to the nel context for backward compatibility Yoyo note: This was a template before, hence with inline. More...
#include <debug.h>
Public Member Functions | |
| CImposterLog (TAccessor accessor) | |
| CLog * | operator-> () |
| operator CLog * () | |
| CLog & | operator() () |
Private Types | |
| typedef CLog *(INelContext::* | TAccessor )() |
Private Attributes | |
| TAccessor | _Accessor |
Imposter class to wrap all global access to the nel context for backward compatibility Yoyo note: This was a template before, hence with inline.
We removed the inline because there was a hard compilation bug in plugin max under some compiler which caused operator-> to crash.... (don't understand why grrrr) Btw the method is optimized like this (1 call instead of 3 (and one with virtual)) because we added a local cache (_Log) Thus it is much better like this.
Definition at line 55 of file debug.h.
typedef CLog*(INelContext::* NLMISC::CImposterLog::TAccessor)() [private] |
| NLMISC::CImposterLog::operator CLog * | ( | ) |
Definition at line 122 of file debug.cpp.
References _Accessor, NLMISC::INelContext::getInstance(), and NLMISC::INelContext::isContextInitialised().
Referenced by operator()().
| CLog & NLMISC::CImposterLog::operator() | ( | ) |
Definition at line 131 of file debug.cpp.
References operator CLog *().
| CLog * NLMISC::CImposterLog::operator-> | ( | ) |
Definition at line 113 of file debug.cpp.
References _Accessor, NLMISC::INelContext::getInstance(), and NLMISC::INelContext::isContextInitialised().
TAccessor NLMISC::CImposterLog::_Accessor [private] |
Definition at line 61 of file debug.h.
Referenced by operator CLog *(), and operator->().
1.6.1