Clementine
|
Opaque pointers to instances of any type. More...
#include <entt.hpp>
Public Member Functions | |
meta_handle ()=default | |
Default constructor. | |
template<typename Type , typename = std::enable_if_t<!std::is_same_v<std::remove_cv_t<std::remove_reference_t<Type>>, meta_handle>>> | |
meta_handle (Type &value) ENTT_NOEXCEPT | |
Creates a handle that points to an unmanaged object. More... | |
meta_any | operator* () const |
Dereference operator for accessing the contained opaque object. More... | |
meta_any * | operator-> () |
Access operator for accessing the contained opaque object. More... | |
const meta_any * | operator-> () const |
Access operator for accessing the contained opaque object. More... | |
Opaque pointers to instances of any type.
A handle doesn't perform copies and isn't responsible for the contained object. It doesn't prolong the lifetime of the pointed instance.
Handles are used to generate meta references to actual objects when needed.
|
inline |
Creates a handle that points to an unmanaged object.
Type | Type of object to use to initialize the handle. |
value | An instance of an object to use to initialize the handle. |
|
inline |
Dereference operator for accessing the contained opaque object.
|
inline |
Access operator for accessing the contained opaque object.
|
inline |
Access operator for accessing the contained opaque object.