EnTT 3.13.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 constructor.
 
 meta_prop (const meta_ctx &area, const 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 773 of file meta.hpp.

Constructor & Destructor Documentation

◆ meta_prop() [1/2]

entt::meta_prop::meta_prop ( )
inlinenoexcept

Default constructor.

Definition at line 775 of file meta.hpp.

◆ meta_prop() [2/2]

entt::meta_prop::meta_prop ( const meta_ctx area,
const 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 784 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 808 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 817 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 800 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 792 of file meta.hpp.


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