Clementine
Public Types | Public Member Functions | List of all members
entt::meta_prop Struct Reference

Opaque wrapper for meta properties of any type. More...

#include <entt.hpp>

Public Types

using node_type = internal::meta_prop_node
 Node type.
 

Public Member Functions

 meta_prop (const node_type *curr=nullptr) ENTT_NOEXCEPT
 Constructs an instance from a given node. More...
 
meta_any key () const
 Returns the stored key. More...
 
meta_any value () const
 Returns the stored value. More...
 
 operator bool () const ENTT_NOEXCEPT
 Returns true if a meta object is valid, false otherwise. More...
 

Detailed Description

Opaque wrapper for meta properties of any type.

Constructor & Destructor Documentation

◆ meta_prop()

entt::meta_prop::meta_prop ( const node_type curr = nullptr)
inline

Constructs an instance from a given node.

Parameters
currThe underlying node with which to construct the instance.

Member Function Documentation

◆ key()

meta_any entt::meta_prop::key ( ) const
inline

Returns the stored key.

Returns
A meta any containing the key stored with the property.

◆ operator bool()

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

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

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

◆ value()

meta_any entt::meta_prop::value ( ) const
inline

Returns the stored value.

Returns
A meta any containing the value stored with the property.

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