diff options
Diffstat (limited to 'odb/qt/smart-ptr/lazy-ptr.ixx')
-rw-r--r-- | odb/qt/smart-ptr/lazy-ptr.ixx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/odb/qt/smart-ptr/lazy-ptr.ixx b/odb/qt/smart-ptr/lazy-ptr.ixx index 091d729..a78e52c 100644 --- a/odb/qt/smart-ptr/lazy-ptr.ixx +++ b/odb/qt/smart-ptr/lazy-ptr.ixx @@ -221,6 +221,13 @@ unload () const } template <class T> +inline QSharedPointer<T> QLazySharedPointer<T>:: +getEager () const +{ + return p_; +} + +template <class T> template <class DB, class ID> inline QLazySharedPointer<T>:: QLazySharedPointer (DB& db, const ID& id): i_ (db, id) {} @@ -480,6 +487,13 @@ unload () const } template <class T> +inline QWeakPointer<T> QLazyWeakPointer<T>:: +getEager () const +{ + return p_; +} + +template <class T> template <class DB, class ID> inline QLazyWeakPointer<T>:: QLazyWeakPointer (DB& db, const ID& id): i_ (db, id) {} |