Opaque wrapper for meta base classes.
More...
#include <entt.hpp>
|
using | node_type = internal::meta_base_node |
| Node type.
|
|
|
| meta_base (const node_type *curr=nullptr) ENTT_NOEXCEPT |
| Constructs an instance from a given node. More...
|
|
meta_type | parent () const ENTT_NOEXCEPT |
| Returns the meta type to which a meta object belongs. More...
|
|
meta_type | type () const ENTT_NOEXCEPT |
| Returns the meta type of the underlying object. More...
|
|
const void * | cast (const void *instance) const ENTT_NOEXCEPT |
| Casts an instance from a parent type to a base type. More...
|
|
| operator bool () const ENTT_NOEXCEPT |
| Returns true if a meta object is valid, false otherwise. More...
|
|
Opaque wrapper for meta base classes.
◆ meta_base()
entt::meta_base::meta_base |
( |
const node_type * |
curr = nullptr | ) |
|
|
inline |
Constructs an instance from a given node.
- Parameters
-
curr | The underlying node with which to construct the instance. |
◆ cast()
const void* entt::meta_base::cast |
( |
const void * |
instance | ) |
const |
|
inline |
Casts an instance from a parent type to a base type.
- Parameters
-
instance | The instance to cast. |
- Returns
- An opaque pointer to the base type.
◆ operator bool()
entt::meta_base::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Returns true if a meta object is valid, false otherwise.
- Returns
- True if the meta object is valid, false otherwise.
◆ parent()
Returns the meta type to which a meta object belongs.
- Returns
- The meta type to which the meta object belongs.
◆ type()
Returns the meta type of the underlying object.
- Returns
- The meta type of the underlying object, if any.
The documentation for this struct was generated from the following file: