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

Classes

struct  uhandle
 

Typedefs

using attributes = std::map<std::string, meta_any>
 
using attribute = attributes::value_type
 
template<typename T >
using property_predicate_t = std::function<T(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 is_property_visible (const entt::meta_any &object, const entt::meta_data &prop) -> bool
 
auto is_property_readonly (const entt::meta_any &object, const entt::meta_data &prop) -> bool
 
auto is_property_flattable (const entt::meta_any &object, const entt::meta_data &prop) -> bool
 
auto is_property_visible (const entt::meta_any &object, const entt::meta_custom &custom) -> bool
 
auto is_property_readonly (const entt::meta_any &object, const entt::meta_custom &custom) -> bool
 
auto is_property_flattable (const entt::meta_any &object, const entt::meta_custom &custom) -> bool
 
auto get_property_hint (const entt::meta_any &object, const entt::meta_data &prop) -> std::string
 
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 T >
auto property_predicate (property_predicate_t< T > predicate) -> property_predicate_t< T >
 
template<typename Value , typename... Args>
auto make_custom (Args &&...args) -> entt::meta_custom
 
auto make_uhandle (entt::handle handle) -> uhandle
 

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

template<typename T >
using entt::property_predicate_t = std::function<T(const meta_any&)>

Definition at line 86 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.

◆ get_property_hint()

auto entt::get_property_hint ( const entt::meta_any & object,
const entt::meta_data & prop ) -> std::string

Definition at line 220 of file reflection.cpp.

◆ is_property_flattable() [1/2]

auto entt::is_property_flattable ( const entt::meta_any & object,
const entt::meta_custom & custom ) -> bool

Definition at line 208 of file reflection.cpp.

◆ is_property_flattable() [2/2]

auto entt::is_property_flattable ( const entt::meta_any & object,
const entt::meta_data & prop ) -> bool

Definition at line 178 of file reflection.cpp.

◆ is_property_readonly() [1/2]

auto entt::is_property_readonly ( const entt::meta_any & object,
const entt::meta_custom & custom ) -> bool

Definition at line 196 of file reflection.cpp.

◆ is_property_readonly() [2/2]

auto entt::is_property_readonly ( const entt::meta_any & object,
const entt::meta_data & prop ) -> bool

Definition at line 173 of file reflection.cpp.

◆ is_property_visible() [1/2]

auto entt::is_property_visible ( const entt::meta_any & object,
const entt::meta_custom & custom ) -> bool

Definition at line 184 of file reflection.cpp.

◆ is_property_visible() [2/2]

auto entt::is_property_visible ( const entt::meta_any & object,
const entt::meta_data & prop ) -> bool

Definition at line 168 of file reflection.cpp.

◆ make_custom()

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

Definition at line 97 of file reflection.h.

◆ make_uhandle()

auto entt::make_uhandle ( entt::handle handle) -> uhandle
inline

Definition at line 229 of file scene.h.

◆ property_predicate()

template<typename T >
auto entt::property_predicate ( property_predicate_t< T > predicate) -> property_predicate_t<T>

Definition at line 89 of file reflection.h.