#include <currenton.hpp>
Static Public Member Functions | |
static C * | current () |
Protected Member Functions | |
Currenton () | |
virtual | ~Currenton () |
Static Private Attributes | |
static C * | s_current |
It is kind of like a singleton, but without handling the object construction itself or in other words its a glorified global variable that points to the current instance of a class.
Definition at line 32 of file currenton.hpp.
Definition at line 38 of file currenton.hpp.
00039 { 00040 // FIXME: temporarly disabled, as Sector() for the main menu, 00041 // doesn't get cleaned up before a real Sector() starts 00042 // assert(!s_current); 00043 s_current = static_cast<C*>(this); 00044 }
static C* Currenton< C >::current | ( | ) | [inline, static] |
Definition at line 35 of file currenton.hpp.
Referenced by Currenton< GameSession >::current(), Currenton< GameSession >::Currenton(), and Currenton< GameSession >::~Currenton().