diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-09-02 00:12:06 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-09-05 17:30:11 +0100 |
commit | 4d9b633c79ca86140af90c92b7a732dc0bbbe2bd (patch) | |
tree | 8ad3d57491255cc22c5ae10a7bcc234b87a6d9e2 /netfs/lib/entryResolver.h | |
parent | First cut extensible mapper (diff) | |
download | netfs-4d9b633c79ca86140af90c92b7a732dc0bbbe2bd.tar.bz2 netfs-4d9b633c79ca86140af90c92b7a732dc0bbbe2bd.tar.xz netfs-4d9b633c79ca86140af90c92b7a732dc0bbbe2bd.zip |
Tidy up of previous commit of extensible mapper
Diffstat (limited to 'netfs/lib/entryResolver.h')
-rw-r--r-- | netfs/lib/entryResolver.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/netfs/lib/entryResolver.h b/netfs/lib/entryResolver.h index 84eb6ed..86aaace 100644 --- a/netfs/lib/entryResolver.h +++ b/netfs/lib/entryResolver.h @@ -6,9 +6,12 @@ template<typename entry_t> class EntryResolver { public: virtual ~EntryResolver() noexcept = default; + using EntryPtr = std::shared_ptr<entry_t>; - virtual std::shared_ptr<entry_t> getEntry(const decltype(entry_t::id) &) const noexcept = 0; - virtual std::shared_ptr<entry_t> getEntry(const decltype(entry_t::name) &) const noexcept = 0; + virtual EntryPtr getEntry(const decltype(entry_t::id) &) const noexcept = 0; + virtual EntryPtr getEntry(const decltype(entry_t::name) &) const noexcept = 0; }; +template<typename entry_t> using EntryResolverPtr = std::shared_ptr<EntryResolver<entry_t>>; + #endif |