relation completer progress
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user