From 53a30dbef3bb9d60946e96adc88c4a6c1073f566 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 18 Apr 2011 11:16:30 +0200 Subject: Fix loaded() function in lazy_ptr to conform to documentation --- odb/boost/smart-ptr/lazy-ptr.hxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'odb/boost/smart-ptr/lazy-ptr.hxx') diff --git a/odb/boost/smart-ptr/lazy-ptr.hxx b/odb/boost/smart-ptr/lazy-ptr.hxx index 4dbf9bf..d04edcd 100644 --- a/odb/boost/smart-ptr/lazy-ptr.hxx +++ b/odb/boost/smart-ptr/lazy-ptr.hxx @@ -82,7 +82,15 @@ namespace odb public: typedef odb::database database_type; + // NULL loaded() + // + // true true NULL pointer to transient object + // false true valid pointer to persistent object + // true false unloaded pointer to persistent object + // false false valid pointer to transient object + // bool loaded () const; + ::boost::shared_ptr load () const; // Unload the pointer. For transient objects this function is @@ -184,7 +192,7 @@ namespace odb // true true expired pointer to transient object // false true valid pointer to persistent object // true false expired pointer to persistent object - // false false valid pointer to transiend object + // false false valid pointer to transient object // bool loaded () const; -- cgit v1.1