aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/MapperRegistry.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/mapper/MapperRegistry.hpp')
-rw-r--r--include/cru/ui/mapper/MapperRegistry.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cru/ui/mapper/MapperRegistry.hpp b/include/cru/ui/mapper/MapperRegistry.hpp
index 55051ba9..c3e5b4c4 100644
--- a/include/cru/ui/mapper/MapperRegistry.hpp
+++ b/include/cru/ui/mapper/MapperRegistry.hpp
@@ -34,6 +34,11 @@ class CRU_UI_API MapperRegistry {
return GetMapper<std::shared_ptr<T>>();
}
+ template <typename T>
+ BasicPtrMapper<T>* GetPtrMapper() const {
+ return GetMapper<ClonablePtr<T>>();
+ }
+
void RegisterMapper(MapperBase* mapper);
void UnregisterMapper(MapperBase* mapper);