![]() |
XII Release 0.1.0
|
A typed handle to a component. More...
#include <Declarations.h>
Public Member Functions | |
| xiiTypedComponentHandle (const xiiComponentHandle &hUntyped) | |
| template<typename T, std::enable_if_t< std::is_convertible_v< T *, TYPE * >, bool > = true> | |
| xiiTypedComponentHandle (const xiiTypedComponentHandle< T > &other) | |
| template<typename T, std::enable_if_t< std::is_convertible_v< T *, TYPE * >, bool > = true> | |
| XII_ALWAYS_INLINE void | operator= (const xiiTypedComponentHandle< T > &other) |
Public Member Functions inherited from xiiComponentHandle | |
| XII_DECLARE_HANDLE_TYPE (xiiComponentHandle, xiiComponentId) | |
A typed handle to a component.
This should be preferred if the component type to be stored inside the handle is known, as it provides compile time checks against wrong usages (e.g. assigning unrelated types) and more clearly conveys intent.
See struct