|
|
@@ -678,20 +678,6 @@ struct meta_ctor {
|
|
|
return node->prop;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @brief Iterates all meta properties assigned to a meta constructor.
|
|
|
- * @tparam Op Type of the function object to invoke.
|
|
|
- * @param op A valid function object.
|
|
|
- */
|
|
|
- template<typename Op>
|
|
|
- [[deprecated("use prop() and entt::meta_range<meta_prop> instead")]]
|
|
|
- std::enable_if_t<std::is_invocable_v<Op, meta_prop>>
|
|
|
- prop(Op op) const {
|
|
|
- for(auto curr: prop()) {
|
|
|
- op(curr);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @brief Returns the property associated with a given key.
|
|
|
* @param key The key to use to search for a property.
|
|
|
@@ -789,20 +775,6 @@ struct meta_data {
|
|
|
return node->prop;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @brief Iterates all meta properties assigned to a meta data.
|
|
|
- * @tparam Op Type of the function object to invoke.
|
|
|
- * @param op A valid function object.
|
|
|
- */
|
|
|
- template<typename Op>
|
|
|
- [[deprecated("use prop() and entt::meta_range<meta_prop> instead")]]
|
|
|
- std::enable_if_t<std::is_invocable_v<Op, meta_prop>>
|
|
|
- prop(Op op) const {
|
|
|
- for(auto curr: prop()) {
|
|
|
- op(curr);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @brief Returns the property associated with a given key.
|
|
|
* @param key The key to use to search for a property.
|
|
|
@@ -913,20 +885,6 @@ struct meta_func {
|
|
|
return node->prop;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @brief Iterates all meta properties assigned to a meta function.
|
|
|
- * @tparam Op Type of the function object to invoke.
|
|
|
- * @param op A valid function object.
|
|
|
- */
|
|
|
- template<typename Op>
|
|
|
- [[deprecated("use prop() and entt::meta_range<meta_prop> instead")]]
|
|
|
- std::enable_if_t<std::is_invocable_v<Op, meta_prop>>
|
|
|
- prop(Op op) const {
|
|
|
- for(auto curr: prop()) {
|
|
|
- op(curr);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @brief Returns the property associated with a given key.
|
|
|
* @param key The key to use to search for a property.
|
|
|
@@ -1159,20 +1117,6 @@ public:
|
|
|
return node->base;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @brief Iterates all top-level meta bases of a meta type.
|
|
|
- * @tparam Op Type of the function object to invoke.
|
|
|
- * @param op A valid function object.
|
|
|
- */
|
|
|
- template<typename Op>
|
|
|
- [[deprecated("use base() and entt::meta_range<meta_base> instead")]]
|
|
|
- std::enable_if_t<std::is_invocable_v<Op, meta_base>>
|
|
|
- base(Op op) const {
|
|
|
- for(auto curr: base()) {
|
|
|
- op(curr);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @brief Returns the meta base associated with a given identifier.
|
|
|
* @param id Unique identifier.
|
|
|
@@ -1194,19 +1138,6 @@ public:
|
|
|
return node->conv;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @brief Iterates all top-level meta conversion functions of a meta type.
|
|
|
- * @tparam Op Type of the function object to invoke.
|
|
|
- * @param op A valid function object.
|
|
|
- */
|
|
|
- template<typename Op>
|
|
|
- [[deprecated("use conv() and entt::meta_range<meta_conv> instead")]]
|
|
|
- void conv(Op op) const {
|
|
|
- for(auto curr: conv()) {
|
|
|
- op(curr);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @brief Returns the meta conversion function associated with a given type.
|
|
|
* @tparam Type The type to use to search for a meta conversion function.
|
|
|
@@ -1228,19 +1159,6 @@ public:
|
|
|
return node->ctor;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @brief Iterates all top-level meta constructors of a meta type.
|
|
|
- * @tparam Op Type of the function object to invoke.
|
|
|
- * @param op A valid function object.
|
|
|
- */
|
|
|
- template<typename Op>
|
|
|
- [[deprecated("use ctor() and entt::meta_range<meta_ctor> instead")]]
|
|
|
- void ctor(Op op) const {
|
|
|
- for(auto curr: ctor()) {
|
|
|
- op(curr);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @brief Returns the meta constructor that accepts a given list of types of
|
|
|
* arguments.
|
|
|
@@ -1259,20 +1177,6 @@ public:
|
|
|
return node->data;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @brief Iterates all top-level meta data of a meta type.
|
|
|
- * @tparam Op Type of the function object to invoke.
|
|
|
- * @param op A valid function object.
|
|
|
- */
|
|
|
- template<typename Op>
|
|
|
- [[deprecated("use ctor() and entt::meta_range<meta_ctor> instead")]]
|
|
|
- std::enable_if_t<std::is_invocable_v<Op, meta_data>>
|
|
|
- data(Op op) const {
|
|
|
- for(auto curr: data()) {
|
|
|
- op(curr);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @brief Returns the meta data associated with a given identifier.
|
|
|
*
|
|
|
@@ -1295,20 +1199,6 @@ public:
|
|
|
return node->func;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @brief Iterates all top-level meta functions of a meta type.
|
|
|
- * @tparam Op Type of the function object to invoke.
|
|
|
- * @param op A valid function object.
|
|
|
- */
|
|
|
- template<typename Op>
|
|
|
- [[deprecated("use ctor() and entt::meta_range<meta_ctor> instead")]]
|
|
|
- std::enable_if_t<std::is_invocable_v<Op, meta_func>>
|
|
|
- func(Op op) const {
|
|
|
- for(auto curr: func()) {
|
|
|
- op(curr);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @brief Returns the meta function associated with a given identifier.
|
|
|
*
|
|
|
@@ -1354,20 +1244,6 @@ public:
|
|
|
return node->prop;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @brief Iterates all top-level meta properties assigned to a meta type.
|
|
|
- * @tparam Op Type of the function object to invoke.
|
|
|
- * @param op A valid function object.
|
|
|
- */
|
|
|
- template<typename Op>
|
|
|
- [[deprecated("use prop() and entt::meta_range<meta_prop> instead")]]
|
|
|
- std::enable_if_t<std::is_invocable_v<Op, meta_prop>>
|
|
|
- prop(Op op) const {
|
|
|
- for(auto curr: prop()) {
|
|
|
- op(curr);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @brief Returns the property associated with a given key.
|
|
|
*
|