aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/MapperRegistry.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-22 22:37:24 +0800
committercrupest <crupest@outlook.com>2022-01-22 22:37:24 +0800
commit13860c88910c00478abe3001cc80125e76767381 (patch)
tree507f517467a4e3c851f87a1158f751c38d8644be /include/cru/ui/mapper/MapperRegistry.hpp
parent14d9efc39635dab2c6c0f791d6b0a63c92d941ee (diff)
downloadcru-13860c88910c00478abe3001cc80125e76767381.tar.gz
cru-13860c88910c00478abe3001cc80125e76767381.tar.bz2
cru-13860c88910c00478abe3001cc80125e76767381.zip
...
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 94643ce0..55051ba9 100644
--- a/include/cru/ui/mapper/MapperRegistry.hpp
+++ b/include/cru/ui/mapper/MapperRegistry.hpp
@@ -29,6 +29,11 @@ class CRU_UI_API MapperRegistry {
return nullptr;
}
+ template <typename T>
+ BasicRefMapper<T>* GetRefMapper() const {
+ return GetMapper<std::shared_ptr<T>>();
+ }
+
void RegisterMapper(MapperBase* mapper);
void UnregisterMapper(MapperBase* mapper);