|
| | meta_factory () noexcept |
| | Default constructor.
|
| | meta_factory (meta_ctx &area) noexcept |
| | Context aware constructor.
|
| meta_factory | type (const char *name) noexcept |
| | Assigns a custom unique identifier to a meta type.
|
| meta_factory | type (const id_type id, const char *name=nullptr) noexcept |
| | Assigns a custom unique identifier to a meta type.
|
| template<typename Base> |
| meta_factory | base () noexcept |
| | Assigns a meta base to a meta type.
|
| template<auto Candidate> |
| auto | conv () noexcept |
| | Assigns a meta conversion function to a meta type.
|
| template<typename To> |
| meta_factory | conv () noexcept |
| | Assigns a meta conversion function to a meta type.
|
| template<auto Candidate, typename Policy = as_value_t> |
| meta_factory | ctor () noexcept |
| | Assigns a meta constructor to a meta type.
|
| template<typename... Args> |
| meta_factory | ctor () noexcept |
| | Assigns a meta constructor to a meta type.
|
| template<auto Data, typename Policy = as_value_t> |
| meta_factory | data (const char *name) noexcept |
| | Assigns a meta data to a meta type.
|
| template<auto Data, typename Policy = as_value_t> |
| meta_factory | data (const id_type id, const char *name=nullptr) noexcept |
| | Assigns a meta data to a meta type.
|
| template<auto Setter, auto Getter, typename Policy = as_value_t> |
| meta_factory | data (const char *name) noexcept |
| | Assigns a meta data to a meta type by means of its setter and getter.
|
| template<auto Setter, auto Getter, typename Policy = as_value_t> |
| meta_factory | data (const id_type id, const char *name=nullptr) noexcept |
| | Assigns a meta data to a meta type by means of its setter and getter.
|
| template<auto Candidate, typename Policy = as_value_t> |
| meta_factory | func (const char *name) noexcept |
| | Assigns a meta function to a meta type.
|
| template<auto Candidate, typename Policy = as_value_t> |
| meta_factory | func (const id_type id, const char *name=nullptr) noexcept |
| | Assigns a meta function to a meta type.
|
| template<typename Value> |
| meta_factory | traits (const Value value, const bool unset=false) |
| | Sets traits on the last created meta object.
|
| template<typename Value, typename... Args> |
| meta_factory | custom (Args &&...args) |
| | Sets user defined data that will never be used by the library.
|
template<typename Type>
class entt::meta_factory< Type >
Meta factory to be used for reflection purposes.
- Template Parameters
-
| Type | Type for which the factory was created. |
Definition at line 158 of file factory.hpp.
template<typename Type>
template<auto Candidate>
Assigns a meta conversion function to a meta type.
Conversion functions can be either free functions or member functions.
In case of free functions, they must accept a const reference to an instance of the parent type as an argument. In case of member functions, they should have no arguments at all.
- Template Parameters
-
| Candidate | The actual function to use for the conversion. |
- Returns
- A meta factory for the parent type.
Definition at line 225 of file factory.hpp.
template<typename Type>
template<auto Candidate, typename Policy = as_value_t>
Assigns a meta constructor to a meta type.
Both member functions and free function can be assigned to meta types in the role of constructors. All that is required is that they return an instance of the underlying type.
From a client's point of view, nothing changes if a constructor of a meta type is a built-in one or not.
- Template Parameters
-
| Candidate | The actual function to use as a constructor. |
| Policy | Optional policy (no policy set by default). |
- Returns
- A meta factory for the parent type.
Definition at line 263 of file factory.hpp.
template<typename Type>
template<auto Setter, auto Getter, typename Policy = as_value_t>
Assigns a meta data to a meta type by means of its setter and getter.
Setters and getters can be either free functions, member functions or a mix of them.
In case of free functions, setters and getters must accept a reference to an instance of the parent type as their first argument. A setter has then an extra argument of a type convertible to that of the parameter to set.
In case of member functions, getters have no arguments at all, while setters has an argument of a type convertible to that of the parameter to set.
- Template Parameters
-
| Setter | The actual function to use as a setter. |
| Getter | The actual function to use as a getter. |
| Policy | Optional policy (no policy set by default). |
- Parameters
-
| id | Unique identifier. |
| name | An optional name for the meta data as a string literal. |
- Returns
- A meta factory for the parent type.
Definition at line 395 of file factory.hpp.
template<typename Type>
template<auto Data, typename Policy = as_value_t>
Assigns a meta data to a meta type.
Both data members and static and global variables, as well as constants of any kind, can be assigned to a meta type.
From a client's point of view, all the variables associated with the reflected object will appear as if they were part of the type itself.
- Template Parameters
-
| Data | The actual variable to attach to the meta type. |
| Policy | Optional policy (no policy set by default). |
- Parameters
-
| id | Unique identifier. |
| name | An optional name for the meta data as a string literal. |
- Returns
- A meta factory for the parent type.
Definition at line 319 of file factory.hpp.
template<typename Type>
template<auto Candidate, typename Policy = as_value_t>
Assigns a meta function to a meta type.
Both member functions and free functions can be assigned to a meta type.
From a client's point of view, all the functions associated with the reflected object will appear as if they were part of the type itself.
- Template Parameters
-
| Candidate | The actual function to attach to the meta type. |
| Policy | Optional policy (no policy set by default). |
- Parameters
-
| id | Unique identifier. |
| name | An optional name for the function as a string literal. |
- Returns
- A meta factory for the parent type.
Definition at line 457 of file factory.hpp.