Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
|
#include <Handle.h>
Public Member Functions | |
Handle () | |
void | Initialize (const int index) |
void | Nullify () |
int | GetIndex () const |
bool | IsNull () const |
bool | operator== (const Handle< T > &handle) |
Static Public Attributes | |
static constexpr int | NULL_HANDLE = -1 |
Used to represent a reference handle for a type T. Wraps and index value to where the object instance is located.
|
inline |
Handle constructor.
|
inline |
Returns the object reference index.
|
inline |
Set the index of the referenced object.
|
inline |
Returns whether the index is NULL_HANDLE or not.
|
inline |
Set the index to NULL_HANDLE.
|
inline |
Checks if the two handle indexes are equal.
|
staticconstexpr |