diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-04-18 11:16:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-04-18 11:16:30 +0200 |
commit | 53a30dbef3bb9d60946e96adc88c4a6c1073f566 (patch) | |
tree | b71c0aac9add219e61267f231970c682b705ef78 /odb/boost/smart-ptr/lazy-ptr.hxx | |
parent | 5906467062142e497487790f31287e5f243dc57e (diff) |
Fix loaded() function in lazy_ptr to conform to documentation
Diffstat (limited to 'odb/boost/smart-ptr/lazy-ptr.hxx')
-rw-r--r-- | odb/boost/smart-ptr/lazy-ptr.hxx | 10 |
1 files changed, 9 insertions, 1 deletions
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<T> 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; |