aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/object-statements.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-04-23 16:48:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-04-23 16:48:02 +0200
commit40267e1f40de8ea216688886ab1df1c7ec50e2b2 (patch)
tree046030dabdd352808c71cf1f2a9bfed706e86c2a /odb/pgsql/object-statements.ixx
parent3405fff26a02b5bee51686c5d22200be320b87d8 (diff)
Polymorphic inheritance support
Diffstat (limited to 'odb/pgsql/object-statements.ixx')
-rw-r--r--odb/pgsql/object-statements.ixx69
1 files changed, 0 insertions, 69 deletions
diff --git a/odb/pgsql/object-statements.ixx b/odb/pgsql/object-statements.ixx
deleted file mode 100644
index 5a82b42..0000000
--- a/odb/pgsql/object-statements.ixx
+++ /dev/null
@@ -1,69 +0,0 @@
-// file : odb/pgsql/object-statements.ixx
-// copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC
-// license : GNU GPL v2; see accompanying LICENSE file
-
-namespace odb
-{
- namespace pgsql
- {
- //
- // 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;
- }
- }
-}