EnTT 3.14.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
entt::meta_prop Struct Reference

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

#include <meta.hpp>

Public Member Functions

 meta_prop () noexcept=default
 Default constructor.
 
 meta_prop (const meta_ctx &area, internal::meta_prop_node curr) noexcept
 Context aware constructor for meta objects.
 
meta_any value () const
 Returns the stored value by const reference.
 
meta_any value ()
 Returns the stored value by reference.
 
 operator bool () const noexcept
 Returns true if an object is valid, false otherwise.
 
bool operator== (const meta_prop &other) const noexcept
 Checks if two objects refer to the same type.
 

Detailed Description

Opaque wrapper for properties of any type.

Definition at line 768 of file meta.hpp.

Constructor & Destructor Documentation

◆ meta_prop()

entt::meta_prop::meta_prop ( const meta_ctx & area,
internal::meta_prop_node curr )
inlinenoexcept

Context aware constructor for meta objects.

Parameters
areaThe context from which to search for meta types.
currThe underlying node with which to construct the instance.

Definition at line 777 of file meta.hpp.

Member Function Documentation

◆ operator bool()

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

Returns true if an object is valid, false otherwise.

Returns
True if the object is valid, false otherwise.

Definition at line 801 of file meta.hpp.

◆ operator==()

bool entt::meta_prop::operator== ( const meta_prop & other) const
inlinenoexcept

Checks if two objects refer to the same type.

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

Definition at line 810 of file meta.hpp.

◆ value() [1/2]

meta_any entt::meta_prop::value ( )
inline

Returns the stored value by reference.

Returns
A wrapper containing the value stored with the property.

Definition at line 793 of file meta.hpp.

◆ value() [2/2]

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

Returns the stored value by const reference.

Returns
A wrapper containing the value stored with the property.

Definition at line 785 of file meta.hpp.


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