This is the documentation for Enlighten.
module Object Lifetime
Classes
Name | Description |
|---|---|
A type for freeing objects using GEO_ALIGNED_FREE. This is for use in GeoAutoPtr. | |
Given the lack of a template typedef, and how common it is to want a GeoAutoPtr with Array dtor, adding a new class to provide this destruction policy by default. | |
A value type to take ownership of a raw object allocated on the heap and bind its life-time to the scope of this class. | |
Given the lack of a template typedef, and how common it is to want a GeoAutoPtr with Release dtor, adding a new class to provide this destruction policy by default. | |
A type for deleting objects of type T using specific delete function. This is for use in GeoAutoPtr. | |
A type for deleting objects of type T using DeleteArray(). | |
A type for deleting objects of type T using GEO_DELETE. | |
A type for freeing objects using GEO_FREE. This is for use in GeoAutoPtr. | |
| |
A value type to take ownership of a raw object allocated on the heap and handle calling AddRef() and Release(). | |
A type for not destroying anything. | |
Given the lack of a template typedef, and how common it is to want a GeoRefPtr with Array dtor, adding a new class to provide this destruction policy by default. | |
Base class for reference counted resources. | |
A value type to take ownership of a raw object allocated on the heap and track a reference count between multiple instances of this class. | |
Given the lack of a template typedef, and how common it is to want a GeoRefPtr with Release dtor, adding a new class to provide this destruction policy by default. | |
A type for deleting objects of type T using Release(). This is for use in GeoAutoPtr. | |
Inherit from this class to add singleton behaviour to your class. |
Variables
Name | Description |
|---|---|
tClass * m_Singleton = NULL | Pointer to the singleton instance or NULL if not started. |
Functions
Name | Description |
|---|---|
Returns a pointer to the singleton instance. | |
Returns true if the singleton is available. | |
Setup the singleton instance. | |
Release the singleton instance. |
tClass * Geo::GeoSingleton< tClass >::Get
public: tClass * Get()
Returns a pointer to the singleton instance.
bool Geo::GeoSingleton< tClass >::IsAvailable
public: bool IsAvailable()
Returns true if the singleton is available.
bool Geo::GeoSingleton< tClass >::Start
public: bool Start()
Setup the singleton instance.
void Geo::GeoSingleton< tClass >::Stop
public: void Stop()
Release the singleton instance.