Opaque wrapper for member functions.
More...
#include <meta.hpp>
|
| using | size_type = typename internal::meta_func_node::size_type |
| | Unsigned integer type.
|
| |
|
|
| meta_func () noexcept=default |
| | Default constructor.
|
| |
| | meta_func (const meta_ctx &area, internal::meta_func_node curr) noexcept |
| | Context aware constructor for meta objects.
|
| |
| size_type | arity () const noexcept |
| | Returns the number of arguments accepted by a member function.
|
| |
| bool | is_const () const noexcept |
| | Indicates whether a member function is constant or not.
|
| |
| bool | is_static () const noexcept |
| | Indicates whether a member function is static or not.
|
| |
| meta_type | ret () const noexcept |
| | Returns the return type of a member function.
|
| |
| meta_type | arg (size_type index) const noexcept |
| | Returns the type of the i-th argument of a member function.
|
| |
| meta_any | invoke (meta_handle instance, meta_any *const args, const size_type sz) const |
| | Invokes the underlying function, if possible.
|
| |
| template<typename... Args> |
| meta_any | invoke (meta_handle instance, Args &&...args) const |
| | Invokes the underlying function, if possible.
|
| |
| template<typename Type> |
| Type | traits () const noexcept |
| | Returns all meta traits for a given meta object.
|
| |
| meta_custom | custom () const noexcept |
| | Returns user defined data for a given meta object.
|
| |
| meta_func | next () const |
| | Returns the next overload of a given function, if any.
|
| |
| | operator bool () const noexcept |
| | Returns true if an object is valid, false otherwise.
|
| |
| bool | operator== (const meta_func &other) const noexcept |
| | Checks if two objects refer to the same type.
|
| |
Opaque wrapper for member functions.
Definition at line 963 of file meta.hpp.
◆ size_type
Unsigned integer type.
Definition at line 965 of file meta.hpp.
◆ meta_func()
| entt::meta_func::meta_func |
( |
const meta_ctx & | area, |
|
|
internal::meta_func_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 975 of file meta.hpp.
◆ arg()
Returns the type of the i-th argument of a member function.
- Parameters
-
| index | Index of the argument of which to return the type. |
- Returns
- The type of the i-th argument of a member function.
Definition at line 1611 of file meta.hpp.
◆ arity()
Returns the number of arguments accepted by a member function.
- Returns
- The number of arguments accepted by the member function.
Definition at line 983 of file meta.hpp.
◆ custom()
Returns user defined data for a given meta object.
- Returns
- User defined arbitrary data.
Definition at line 1047 of file meta.hpp.
◆ invoke() [1/2]
template<typename... Args>
Invokes the underlying function, if possible.
- Template Parameters
-
| Args | Types of arguments to use to invoke the function. |
- Parameters
-
| instance | An opaque instance of the underlying type. |
| args | Parameters to use to invoke the function. |
- Returns
- A wrapper containing the returned value, if any.
Definition at line 1036 of file meta.hpp.
◆ invoke() [2/2]
Invokes the underlying function, if possible.
- Parameters
-
| instance | An opaque instance of the underlying type. |
| args | Parameters to use to invoke the function. |
| sz | Number of parameters to use to invoke the function. |
- Returns
- A wrapper containing the returned value, if any.
Definition at line 1023 of file meta.hpp.
◆ is_const()
| bool entt::meta_func::is_const |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Indicates whether a member function is constant or not.
- Returns
- True if the member function is constant, false otherwise.
Definition at line 991 of file meta.hpp.
◆ is_static()
| bool entt::meta_func::is_static |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Indicates whether a member function is static or not.
- Returns
- True if the member function is static, false otherwise.
Definition at line 999 of file meta.hpp.
◆ next()
Returns the next overload of a given function, if any.
- Returns
- The next overload of the given function, if any.
Definition at line 1055 of file meta.hpp.
◆ operator bool()
| entt::meta_func::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 1063 of file meta.hpp.
◆ operator==()
| bool entt::meta_func::operator== |
( |
const meta_func & | 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 1068 of file meta.hpp.
◆ ret()
Returns the return type of a member function.
- Returns
- The return type of the member function.
Definition at line 1607 of file meta.hpp.
◆ traits()
template<typename Type>
| Type entt::meta_func::traits |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Returns all meta traits for a given meta object.
- Template Parameters
-
| Type | The type to convert the meta traits to. |
- Returns
- The registered meta traits, if any.
Definition at line 1042 of file meta.hpp.
The documentation for this struct was generated from the following file: