NLMISC::CImposterLog Class Reference

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>

List of all members.

Public Member Functions

 CImposterLog (TAccessor accessor)
CLogoperator-> ()
 operator CLog * ()
CLogoperator() ()

Private Types

typedef CLog *(INelContext::* TAccessor )()

Private Attributes

TAccessor _Accessor

Detailed Description

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.


Member Typedef Documentation

typedef CLog*(INelContext::* NLMISC::CImposterLog::TAccessor)() [private]

Definition at line 58 of file debug.h.


Constructor & Destructor Documentation

NLMISC::CImposterLog::CImposterLog ( TAccessor  accessor  ) 

Definition at line 109 of file debug.cpp.


Member Function Documentation

NLMISC::CImposterLog::operator CLog * (  ) 
CLog & NLMISC::CImposterLog::operator() (  ) 

Definition at line 131 of file debug.cpp.

References operator CLog *().

CLog * NLMISC::CImposterLog::operator-> (  ) 

Member Data Documentation

Definition at line 61 of file debug.h.

Referenced by operator CLog *(), and operator->().


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

Generated on Thu Jan 7 08:30:17 2010 for NeL by  doxygen 1.6.1