relation completer progress

This commit is contained in:
2025-07-06 20:06:26 +02:00
parent 5c1e0ae0d8
commit c974628bee
11 changed files with 358 additions and 163 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ class relation_endpoint;
class basic_object_info {
public:
using t_endpoint_map = std::unordered_map<std::type_index, relation_endpoint>;
using t_endpoint_map = std::unordered_map<std::type_index, std::shared_ptr<relation_endpoint>>;
using endpoint_iterator = t_endpoint_map::iterator;
using const_endpoint_iterator = t_endpoint_map::const_iterator;
@@ -30,7 +30,7 @@ public:
[[nodiscard]] bool has_primary_key() const;
[[nodiscard]] const utils::identifier& primary_key() const;
void register_relation_endpoint(const std::type_index &type, const relation_endpoint &endpoint);
void register_relation_endpoint(const std::type_index &type, const std::shared_ptr<relation_endpoint> &endpoint);
void unregister_relation_endpoint(const std::type_index &type);
[[nodiscard]] const_endpoint_iterator find_relation_endpoint(const std::type_index &type) const;