OpenLexocad  27.1
entt::meta_prop Struct Reference

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

#include <entt.hpp>

Public Member Functions

 meta_prop (const internal::meta_prop_node *curr=nullptr) ENTT_NOEXCEPT
 Constructs an instance from a given node. More...
 
meta_any key () const ENTT_NOEXCEPT
 Returns the stored key. More...
 
meta_any value () const ENTT_NOEXCEPT
 Returns the stored value. More...
 
 operator bool () const ENTT_NOEXCEPT
 Returns true if a meta object is valid, false otherwise. More...
 
bool operator== (const meta_prop &other) const ENTT_NOEXCEPT
 Checks if two meta objects refer to the same node. More...
 

Detailed Description

Opaque container for meta properties of any type.

Constructor & Destructor Documentation

◆ meta_prop()

entt::meta_prop::meta_prop ( const internal::meta_prop_node *  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 given 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.

◆ operator==()

bool entt::meta_prop::operator== ( const meta_prop 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.

◆ value()

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

Returns the stored value.

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

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