Topaz 5.0
Topaz Game Engine
|
Represents a generic opaque handle.
To create your own opaque handle types, simply create a type alias for a handle<T>
where T
is any unique type identifier.
#include "handle.hpp"
Public Member Functions | |
std::underlying_type_t< hanval > | peek () const |
Disregard the concept of "opaqueness" of an opaque handle by peeking at the underlying value. You should avoid the use of this outside of debug tools. | |
handle & | operator= (hanval value) |
Assign a handle to the null handle, meaning it is now invalid. | |
bool | operator== (nullhand_t) const |
Compare a handle to the null handle. This comparison will return false if the handle is valid. | |
bool | operator!= (nullhand_t) const |
Compare a handle to the null handle. This comparison will return true if the handle is valid. | |
|
inline |
Disregard the concept of "opaqueness" of an opaque handle by peeking at the underlying value. You should avoid the use of this outside of debug tools.
|
inline |
Assign a handle to the null handle, meaning it is now invalid.
|
inline |
Compare a handle to the null handle. This comparison will return false if the handle is valid.
|
inline |
Compare a handle to the null handle. This comparison will return true if the handle is valid.