diff options
author | crupest <crupest@outlook.com> | 2022-01-23 21:48:08 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-23 21:48:08 +0800 |
commit | 275fe302cd03adf59fff1a0e4a08f13c6cfcaf31 (patch) | |
tree | 542bd59bca9459b93813c9cae9e964b229efafd4 /include/cru/ui/mapper/MapperRegistry.hpp | |
parent | da9bdf2baced1ff51350c98047b7ade68fcae930 (diff) | |
download | cru-275fe302cd03adf59fff1a0e4a08f13c6cfcaf31.tar.gz cru-275fe302cd03adf59fff1a0e4a08f13c6cfcaf31.tar.bz2 cru-275fe302cd03adf59fff1a0e4a08f13c6cfcaf31.zip |
...
Diffstat (limited to 'include/cru/ui/mapper/MapperRegistry.hpp')
-rw-r--r-- | include/cru/ui/mapper/MapperRegistry.hpp | 5 |
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); |