supertux
Static Public Member Functions | List of all members
Currenton< C > Class Template Reference

A 'Currenton' allows access to the currently active instance of a class via the static current() function. More...

#include <currenton.hpp>

Static Public Member Functions

static C * current ()
 

Detailed Description

template<class C>
class Currenton< C >

A 'Currenton' allows access to the currently active instance of a class via the static current() function.

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.


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