|
|
@@ -65,14 +65,6 @@ protected:
|
|
|
mask = nullptr;
|
|
|
}
|
|
|
|
|
|
- void data(const id_type id) {
|
|
|
- ENTT_ASSERT(owner->details->data.contains(id), "Invalid id");
|
|
|
- auto &&elem = owner->details->data[id];
|
|
|
- bucket = &elem.prop;
|
|
|
- user = &elem.custom;
|
|
|
- mask = &elem.traits;
|
|
|
- }
|
|
|
-
|
|
|
void data(const id_type id, meta_data_node node) {
|
|
|
auto &&it = owner->details->data.insert_or_assign(id, std::move(node)).first;
|
|
|
bucket = &it->second.prop;
|
|
|
@@ -80,14 +72,6 @@ protected:
|
|
|
mask = &it->second.traits;
|
|
|
}
|
|
|
|
|
|
- void func(const id_type id) {
|
|
|
- ENTT_ASSERT(owner->details->func.contains(id), "Invalid id");
|
|
|
- auto &&elem = owner->details->func[id];
|
|
|
- bucket = &elem.prop;
|
|
|
- user = &elem.custom;
|
|
|
- mask = &elem.traits;
|
|
|
- }
|
|
|
-
|
|
|
void func(const id_type id, meta_func_node node) {
|
|
|
if(auto it = owner->details->func.find(id); it != owner->details->func.end()) {
|
|
|
for(auto *curr = &it->second; curr; curr = curr->next.get()) {
|
|
|
@@ -316,16 +300,6 @@ public:
|
|
|
return *this;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @brief Seeks an arbitrary meta data in a meta type.
|
|
|
- * @param id Unique identifier.
|
|
|
- * @return A meta factory for the parent type.
|
|
|
- */
|
|
|
- meta_factory data(const id_type id) noexcept {
|
|
|
- base_type::data(id);
|
|
|
- return *this;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @brief Assigns a meta data to a meta type.
|
|
|
*
|
|
|
@@ -455,16 +429,6 @@ public:
|
|
|
return *this;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @brief Seeks an arbitrary meta function in a meta type.
|
|
|
- * @param id Unique identifier.
|
|
|
- * @return A meta factory for the parent type.
|
|
|
- */
|
|
|
- meta_factory func(const id_type id) noexcept {
|
|
|
- base_type::func(id);
|
|
|
- return *this;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @brief Assigns a meta function to a meta type.
|
|
|
*
|