XII Release 0.1.0
Loading...
Searching...
No Matches
xiiTypedComponentHandle< TYPE > Struct Template Reference

A typed handle to a component. More...

#include <Declarations.h>

Inheritance diagram for xiiTypedComponentHandle< TYPE >:
[legend]

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)
 

Detailed Description

template<typename TYPE>
struct xiiTypedComponentHandle< TYPE >

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

See also
xiiComponentHandle for more information about general component handle usage.

The documentation for this struct was generated from the following file: