OpenLexocad
28.0
|
Opaque pointers to instances of any type. More...
#include <entt.hpp>
Public Member Functions | |
meta_handle () ENTT_NOEXCEPT | |
Default constructor. More... | |
meta_handle (meta_any &any) ENTT_NOEXCEPT | |
Constructs a meta handle from a meta any object. More... | |
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 &obj) ENTT_NOEXCEPT | |
Constructs a meta handle from a given instance. More... | |
meta_type | type () const ENTT_NOEXCEPT |
Returns the meta type of the underlying object. More... | |
const void * | data () const ENTT_NOEXCEPT |
Returns an opaque pointer to the contained instance. More... | |
void * | data () ENTT_NOEXCEPT |
Returns an opaque pointer to the contained instance. More... | |
operator bool () const ENTT_NOEXCEPT | |
Returns false if a handle is empty, true otherwise. More... | |
Friends | |
class | meta_any |
A meta any is allowed to inherit from a meta handle. 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. Users are responsible for ensuring that the target object remains alive for the entire interval of use of the handle.
|
inline |
Default constructor.
|
inline |
Constructs a meta handle from a meta any object.
any | A reference to an object to use to initialize the handle. |
|
inline |
Constructs a meta handle from a given instance.
Type | Type of object to use to initialize the handle. |
obj | A reference to an object to use to initialize the handle. |
|
inline |
Returns an opaque pointer to the contained instance.
|
inline |
Returns an opaque pointer to the contained instance.
|
inlineexplicit |
Returns false if a handle is empty, true otherwise.
|
inline |
Returns the meta type of the underlying object.
|
friend |
A meta any is allowed to inherit from a meta handle.