Unravel Engine C++ Reference
Loading...
Searching...
No Matches
entt Namespace Reference

Typedefs

using attributes = std::map<std::string, meta_any>
 
using attribute = attributes::value_type
 
using property_predicate_t = std::function<bool(const meta_any&)>
 

Functions

auto copy_meta_any (const entt::meta_any &src) -> entt::meta_any
 
auto get_derived_types (const meta_type &t) -> std::vector< meta_type >
 
auto as_derived (meta_any &obj) -> bool
 
auto get_derived_type (meta_any &obj) -> meta_type
 
auto get_attribute (const meta_custom &custom, const char *name) -> const meta_any &
 
auto get_attribute (const meta_type &t, const char *name) -> const meta_any &
 
auto get_attribute (const meta_data &prop, const char *name) -> const meta_any &
 
auto get_pretty_name (const meta_type &t) -> std::string
 
auto get_name (const meta_type &t) -> std::string
 
auto get_pretty_name (const meta_custom &t) -> std::string
 
auto get_name (const meta_custom &t) -> std::string
 
auto get_name (const meta_data &prop) -> std::string
 
auto get_pretty_name (const meta_data &prop) -> std::string
 
auto property_predicate (property_predicate_t predicate) -> property_predicate_t
 
template<typename T >
auto get_attribute_as (const meta_custom &custom, const char *name) -> T
 
template<>
auto get_attribute_as< std::string > (const meta_custom &custom, const char *name) -> std::string
 
template<typename T >
auto get_attribute_as (const meta_type &t, const char *name) -> T
 
template<typename T >
auto get_attribute_as (const meta_data &prop, const char *name) -> T
 
template<typename Value , typename... Args>
auto make_custom (Args &&...args) -> entt::meta_custom
 

Typedef Documentation

◆ attribute

using entt::attribute = attributes::value_type

Definition at line 19 of file reflection.h.

◆ attributes

using entt::attributes = std::map<std::string, meta_any>

Definition at line 18 of file reflection.h.

◆ property_predicate_t

using entt::property_predicate_t = std::function<bool(const meta_any&)>

Definition at line 85 of file reflection.h.

Function Documentation

◆ as_derived()

REFLECTION_EXPORT auto entt::as_derived ( meta_any & obj) -> bool

Definition at line 53 of file reflection.cpp.

◆ copy_meta_any()

REFLECTION_EXPORT auto entt::copy_meta_any ( const entt::meta_any & src) -> entt::meta_any

Definition at line 27 of file reflection.cpp.

◆ get_attribute() [1/3]

REFLECTION_EXPORT auto entt::get_attribute ( const meta_custom & custom,
const char * name ) -> const meta_any &

Definition at line 84 of file reflection.cpp.

◆ get_attribute() [2/3]

REFLECTION_EXPORT auto entt::get_attribute ( const meta_data & prop,
const char * name ) -> const meta_any &

Definition at line 106 of file reflection.cpp.

◆ get_attribute() [3/3]

REFLECTION_EXPORT auto entt::get_attribute ( const meta_type & t,
const char * name ) -> const meta_any &

Definition at line 101 of file reflection.cpp.

◆ get_attribute_as() [1/3]

template<typename T >
auto entt::get_attribute_as ( const meta_custom & custom,
const char * name ) -> T

Definition at line 24 of file reflection.h.

◆ get_attribute_as() [2/3]

template<typename T >
auto entt::get_attribute_as ( const meta_data & prop,
const char * name ) -> T

Definition at line 61 of file reflection.h.

◆ get_attribute_as() [3/3]

template<typename T >
auto entt::get_attribute_as ( const meta_type & t,
const char * name ) -> T

Definition at line 53 of file reflection.h.

◆ get_attribute_as< std::string >()

template<>
auto entt::get_attribute_as< std::string > ( const meta_custom & custom,
const char * name ) -> std::string
inline

Definition at line 35 of file reflection.h.

◆ get_derived_type()

REFLECTION_EXPORT auto entt::get_derived_type ( meta_any & obj) -> meta_type

Definition at line 65 of file reflection.cpp.

◆ get_derived_types()

REFLECTION_EXPORT auto entt::get_derived_types ( const meta_type & t) -> std::vector< meta_type >

Definition at line 48 of file reflection.cpp.

◆ get_name() [1/3]

REFLECTION_EXPORT auto entt::get_name ( const meta_custom & t) -> std::string

Definition at line 142 of file reflection.cpp.

◆ get_name() [2/3]

REFLECTION_EXPORT auto entt::get_name ( const meta_data & prop) -> std::string

Definition at line 152 of file reflection.cpp.

◆ get_name() [3/3]

REFLECTION_EXPORT auto entt::get_name ( const meta_type & t) -> std::string

Definition at line 121 of file reflection.cpp.

◆ get_pretty_name() [1/3]

REFLECTION_EXPORT auto entt::get_pretty_name ( const meta_custom & t) -> std::string

Definition at line 132 of file reflection.cpp.

◆ get_pretty_name() [2/3]

REFLECTION_EXPORT auto entt::get_pretty_name ( const meta_data & prop) -> std::string

Definition at line 157 of file reflection.cpp.

◆ get_pretty_name() [3/3]

REFLECTION_EXPORT auto entt::get_pretty_name ( const meta_type & t) -> std::string

Definition at line 111 of file reflection.cpp.

◆ make_custom()

template<typename Value , typename... Args>
auto entt::make_custom ( Args &&... args) -> entt::meta_custom

Definition at line 91 of file reflection.h.

◆ property_predicate()

REFLECTION_EXPORT auto entt::property_predicate ( property_predicate_t predicate) -> property_predicate_t

Definition at line 167 of file reflection.cpp.