Nui Engine
A game engine framework
|
This class provides a handle to a component. More...
#include <Component.h>
Public Member Functions | |
ComponentHandle (T *component) | |
bool | IsValid () const noexcept |
Checks if the component is valid. | |
T & | Get () const noexcept |
Get the component. | |
T * | operator-> () const |
Get the component. | |
operator bool () const | |
Implicit conversion to bool to check if the component is valid. | |
This class provides a handle to a component.
T | The type of stored component data |
|
inlinenoexcept |
Get the component.
|
inlinenoexcept |
Checks if the component is valid.
|
inline |
Get the component.