ezEngine  Release 25.03
ezTypedComponentHandle< TYPE > Struct Template Reference

A typed handle to a component. More...

#include <Declarations.h>

Inheritance diagram for ezTypedComponentHandle< TYPE >:

Public Member Functions

 ezTypedComponentHandle (const ezComponentHandle &hUntyped)
 
template<typename T , std::enable_if_t< std::is_convertible_v< T *, TYPE * >, bool > = true>
 ezTypedComponentHandle (const ezTypedComponentHandle< T > &other)
 
template<typename T , std::enable_if_t< std::is_convertible_v< T *, TYPE * >, bool > = true>
EZ_ALWAYS_INLINE void operator= (const ezTypedComponentHandle< T > &other)
 
- Public Member Functions inherited from ezComponentHandle
 EZ_DECLARE_HANDLE_TYPE (ezComponentHandle, ezComponentId)
 

Detailed Description

template<typename TYPE>
struct ezTypedComponentHandle< 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
ezComponentHandle for more information about general component handle usage.

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