diff options
Diffstat (limited to 'odb/session.ixx')
-rw-r--r-- | odb/session.ixx | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/odb/session.ixx b/odb/session.ixx index c6708b7..573deb2 100644 --- a/odb/session.ixx +++ b/odb/session.ixx @@ -15,51 +15,4 @@ namespace odb // p.map_->erase (p.pos_); } - - // - // object_pointers - // - template <typename T> - inline session::object_pointers<T>:: - object_pointers () : p_ (), cp_ () {} - - template <typename T> - inline void session::object_pointers<T>:: - set (const pointer_type& p) - { - p_ = p; - cp_ = const_pointer_type (); - } - - template <typename T> - inline void session::object_pointers<T>:: - set (const const_pointer_type& cp) - { - p_ = pointer_type (); - cp_ = cp; - } - - template <typename T> - inline void session::object_pointers<T>:: - get (pointer_type& p) const - { - if (!pointer_traits<pointer_type>::null_ptr (p_)) - p = p_; - else if (!pointer_traits<const_pointer_type>::null_ptr (cp_)) - throw const_object (); - else - p = pointer_type (); - } - - template <typename T> - inline void session::object_pointers<T>:: - get (const_pointer_type& cp) const - { - if (!pointer_traits<pointer_type>::null_ptr (p_)) - cp = const_pointer_type (p_); - else if (!pointer_traits<const_pointer_type>::null_ptr (cp_)) - cp = cp_; - else - cp = const_pointer_type (); - } } |