OpenLexocad  27.1
entt::meta_conv Struct Reference

Opaque container for meta conversion functions. More...

#include <entt.hpp>

Public Member Functions

 meta_conv (const internal::meta_conv_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...
 
meta_type type () const ENTT_NOEXCEPT
 Returns the meta type of the underlying object. More...
 
meta_any convert (const void *instance) const ENTT_NOEXCEPT
 Converts an instance to a given type. More...
 
 operator bool () const ENTT_NOEXCEPT
 Returns true if a meta object is valid, false otherwise. More...
 
bool operator== (const meta_conv &other) const ENTT_NOEXCEPT
 Checks if two meta objects refer to the same node. More...
 

Detailed Description

Opaque container for meta conversion functions.

Constructor & Destructor Documentation

◆ meta_conv()

entt::meta_conv::meta_conv ( const internal::meta_conv_node *  curr = nullptr)
inline

Constructs an instance from a given node.

Parameters
currThe underlying node with which to construct the instance.

Member Function Documentation

◆ convert()

meta_any entt::meta_conv::convert ( const void *  instance) const
inline

Converts an instance to a given type.

Parameters
instanceThe instance to convert.
Returns
An opaque pointer to the instance to convert.

◆ operator bool()

entt::meta_conv::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_conv::operator== ( const meta_conv 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_conv::parent ( ) const
inline

Returns the meta type to which a meta object belongs.

Returns
The meta type to which the meta object belongs.

◆ type()

meta_type entt::meta_conv::type ( ) const
inline

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: