diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-23 16:48:01 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-23 16:48:01 +0200 |
commit | 851cbe3927b987ec992bbbb69bd62224bf4a0dc3 (patch) | |
tree | 278298c656c75b1625e9408a15e81736c35c194e /odb/sqlite/object-statements.ixx | |
parent | 7d52205f2b2fc9403b9ea46483e8a17746c6be35 (diff) |
Polymorphic inheritance support
Diffstat (limited to 'odb/sqlite/object-statements.ixx')
-rw-r--r-- | odb/sqlite/object-statements.ixx | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/odb/sqlite/object-statements.ixx b/odb/sqlite/object-statements.ixx deleted file mode 100644 index 399185a..0000000 --- a/odb/sqlite/object-statements.ixx +++ /dev/null @@ -1,69 +0,0 @@ -// file : odb/sqlite/object-statements.ixx -// copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC -// license : GNU GPL v2; see accompanying LICENSE file - -namespace odb -{ - namespace sqlite - { - // - // auto_unlock - // - inline object_statements_base::auto_unlock:: - auto_unlock (object_statements_base& s) - : s_ (s) - { - s_.unlock (); - } - - inline object_statements_base::auto_unlock:: - ~auto_unlock () - { - s_.lock (); - } - - // - // auto_lock - // - template <typename T> - inline object_statements<T>::auto_lock:: - auto_lock (object_statements& s) - : s_ (s) - { - if (!s_.locked ()) - { - s_.lock (); - locked_ = true; - } - else - locked_ = false; - } - - template <typename T> - inline object_statements<T>::auto_lock:: - ~auto_lock () - { - if (locked_) - { - s_.unlock (); - s_.clear_delayed (); - } - } - - template <typename T> - inline bool object_statements<T>::auto_lock:: - locked () const - { - return locked_; - } - - template <typename T> - inline void object_statements<T>::auto_lock:: - unlock () - { - assert (locked_); - s_.unlock (); - locked_ = false; - } - } -} |