Phongo Clap RT
1.0
Simple Raytracing Renderer
|
Makes sure that no object is instanciated twice. More...
#include <Singleton.h>
Static Public Member Functions | |
static T * | Instance () |
If the instance is null it creates one, otherwise just returns the current one. More... | |
static void | destroyInstance () |
Destroys the instance thus freeing memory from the heap. More... | |
Static Private Attributes | |
static T * | m_Instance = NULL |
The instance of an object as an address. More... | |
Makes sure that no object is instanciated twice.
Definition at line 10 of file Singleton.h.
|
inlinestatic |
Destroys the instance thus freeing memory from the heap.
Definition at line 27 of file Singleton.h.
References Singleton< T >::m_Instance.
|
inlinestatic |
If the instance is null it creates one, otherwise just returns the current one.
Definition at line 16 of file Singleton.h.
References Singleton< T >::m_Instance.
|
staticprivate |
The instance of an object as an address.
Definition at line 36 of file Singleton.h.