OpenLexocad  28.0
entt::extended_meta_factory< Type, Spec > Class Template Reference

Extended meta factory to be used for reflection purposes. More...

#include <entt.hpp>

Public Member Functions

 extended_meta_factory (entt::internal::meta_prop_node **target)
 Constructs an extended factory from a given node. More...
 
template<typename PropertyOrKey , typename... Value>
auto prop (PropertyOrKey &&property_or_key, Value &&... value) &&
 Assigns a property to the last meta object created. More...
 
template<typename... Property>
auto props (Property... property) &&
 Assigns properties to the last meta object created. More...
 

Detailed Description

template<typename Type, typename... Spec>
class entt::extended_meta_factory< Type, Spec >

Extended meta factory to be used for reflection purposes.

TURN_OFF_DOXYGEN

Template Parameters
TypeReflected type for which the factory was created.
SpecProperty specialization pack used to disambiguate overloads.

Constructor & Destructor Documentation

◆ extended_meta_factory()

template<typename Type , typename... Spec>
entt::extended_meta_factory< Type, Spec >::extended_meta_factory ( entt::internal::meta_prop_node **  target)
inline

Constructs an extended factory from a given node.

Parameters
targetThe underlying node to which to assign the properties.

Member Function Documentation

◆ prop()

template<typename Type , typename... Spec>
template<typename PropertyOrKey , typename... Value>
auto entt::extended_meta_factory< Type, Spec >::prop ( PropertyOrKey &&  property_or_key,
Value &&...  value 
) &&
inline

Assigns a property to the last meta object created.

Both the key and the value (if any) must be at least copy constructible.

Template Parameters
PropertyOrKeyType of the property or property key.
ValueOptional type of the property value.
Parameters
property_or_keyProperty or property key.
valueOptional property value.
Returns
A meta factory for the parent type.

◆ props()

template<typename Type , typename... Spec>
template<typename... Property>
auto entt::extended_meta_factory< Type, Spec >::props ( Property...  property) &&
inline

Assigns properties to the last meta object created.

Both the keys and the values (if any) must be at least copy constructible.

Template Parameters
PropertyTypes of the properties.
Parameters
propertyProperties to assign to the last meta object created.
Returns
A meta factory for the parent type.

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