Opaque wrapper for properties of any type.
More...
#include <meta.hpp>
|
| 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.
|
|
Opaque wrapper for properties of any type.
Definition at line 768 of file meta.hpp.
◆ meta_prop()
entt::meta_prop::meta_prop |
( |
const meta_ctx & | area, |
|
|
internal::meta_prop_node | curr ) |
|
inlinenoexcept |
Context aware constructor for meta objects.
- Parameters
-
area | The context from which to search for meta types. |
curr | The underlying node with which to construct the instance. |
Definition at line 777 of file meta.hpp.
◆ operator bool()
entt::meta_prop::operator bool |
( |
| ) |
const |
|
inlineexplicitnodiscardnoexcept |
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 |
|
inlinenodiscardnoexcept |
Checks if two objects refer to the same type.
- Parameters
-
other | The 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]
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 |
|
inlinenodiscard |
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: