OpenLexocad  27.1
entt::meta_dtor Struct Reference

Opaque container for meta destructors. More...

#include <entt.hpp>

Public Member Functions

 meta_dtor (const internal::meta_dtor_node *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...
 
bool invoke (meta_handle handle) const
 Destroys an instance of the underlying type. More...
 
 operator bool () const ENTT_NOEXCEPT
 Returns true if a meta object is valid, false otherwise. More...
 
bool operator== (const meta_dtor &other) const ENTT_NOEXCEPT
 Checks if two meta objects refer to the same node. More...
 

Detailed Description

Opaque container for meta destructors.

Constructor & Destructor Documentation

◆ meta_dtor()

entt::meta_dtor::meta_dtor ( const internal::meta_dtor_node *  curr = nullptr)
inline

Constructs an instance from a given node.

Parameters
currThe underlying node with which to construct the instance.

Member Function Documentation

◆ invoke()

bool entt::meta_dtor::invoke ( meta_handle  handle) const
inline

Destroys an instance of the underlying type.

It must be possible to cast the instance to the parent type of the meta destructor. Otherwise, invoking the meta destructor results in an undefined behavior.

Parameters
handleAn opaque pointer to an instance of the underlying type.
Returns
True in case of success, false otherwise.

◆ operator bool()

entt::meta_dtor::operator bool ( ) const
inlineexplicit

Returns true if a meta object is valid, false otherwise.

Returns
True if the meta object is valid, false otherwise.

◆ operator==()

bool entt::meta_dtor::operator== ( const meta_dtor other) const
inline

Checks if two meta objects refer to the same node.

Parameters
otherThe meta object with which to compare.
Returns
True if the two meta objects refer to the same node, false otherwise.

◆ parent()

meta_type entt::meta_dtor::parent ( ) const
inline

Returns the meta type to which a meta object belongs.

Returns
The meta type to which the meta object belongs.

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