7auto get_derived(
const entt::meta_type& base) -> std::vector<entt::meta_type>
9 std::vector<entt::meta_type> result;
11 auto types = entt::resolve();
14 for (
auto b : mt.second.base())
18 result.push_back(mt.second);
34 const entt::meta_type mt = src.type();
37 if (
auto owned = mt.construct(); owned)
39 if (owned.assign(src))
50 return get_derived(t);
55 auto type = obj.type();
67 auto type = obj.type();
75 auto func =
type.func(
"get_meta_type"_hs);
78 auto result = func.invoke(obj);
79 return result.cast<meta_type>();
90 auto it = attrs->find(
name);
91 if(it != attrs->end())
97 static const meta_any any;
126 return std::string(t.info().name());
147 return std::string();
169 return std::move(predicate);
auto get_derived_types(const meta_type &t) -> std::vector< meta_type >
auto get_pretty_name(const meta_type &t) -> std::string
auto as_derived(meta_any &obj) -> bool
auto get_attribute_as< std::string >(const meta_custom &custom, const char *name) -> std::string
auto copy_meta_any(const entt::meta_any &src) -> entt::meta_any
auto get_attribute(const meta_custom &custom, const char *name) -> const meta_any &
std::map< std::string, meta_any > attributes
auto property_predicate(property_predicate_t predicate) -> property_predicate_t
std::function< bool(const meta_any &)> property_predicate_t
auto get_derived_type(meta_any &obj) -> meta_type
auto get_name(const meta_type &t) -> std::string
auto register_type_helper(const char *name) -> int