diff options
Diffstat (limited to 'odb/qt/smart-ptr/lazy-ptr.hxx')
-rw-r--r-- | odb/qt/smart-ptr/lazy-ptr.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/odb/qt/smart-ptr/lazy-ptr.hxx b/odb/qt/smart-ptr/lazy-ptr.hxx index 71c606c..d7a077d 100644 --- a/odb/qt/smart-ptr/lazy-ptr.hxx +++ b/odb/qt/smart-ptr/lazy-ptr.hxx @@ -153,6 +153,12 @@ public: // void unload () const; + // Get the underlying eager pointer. If this is an unloaded pointer + // to a persistent object, then the returned pointer will be NULL. + // + QSharedPointer<T> + getEager () const; + template <class DB, class ID> QLazySharedPointer (DB&, const ID&); @@ -328,6 +334,12 @@ public: void unload () const; + // Get the underlying eager pointer. If this is an unloaded pointer + // to a persistent object, then the returned pointer will be NULL. + // + QWeakPointer<T> + getEager () const; + template <class DB, class ID> QLazyWeakPointer (DB&, const ID&); |