Common ODB Runtime Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
function-table.hxx
Go to the documentation of this file.
1 // file : odb/function-table.hxx
2 // copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
3 // license : GNU GPL v2; see accompanying LICENSE file
4 
5 #ifndef ODB_FUNCTION_TABLE_HXX
6 #define ODB_FUNCTION_TABLE_HXX
7 
8 #include <odb/pre.hxx>
9 
10 #include <odb/forward.hxx>
11 
12 namespace odb
13 {
14  template <typename T, database_id DB>
16  {
18 
20  const typename common_traits::function_table_type* t)
21  {
22  common_traits::function_table[DB] = t;
23  }
24 
26  {
27  common_traits::function_table[DB] = 0;
28  }
29  };
30 
31  template <typename T, database_id DB>
33  {
35 
37  const typename common_traits::function_table_type* t)
38  {
39  common_traits::function_table[DB] = t;
40  }
41 
43  {
44  common_traits::function_table[DB] = 0;
45  }
46  };
47 }
48 
49 #include <odb/post.hxx>
50 
51 #endif // ODB_FUNCTION_TABLE_HXX
Definition: function-table.hxx:15
~view_function_table_entry()
Definition: function-table.hxx:42
access::object_traits_impl< T, id_common > common_traits
Definition: function-table.hxx:17
~object_function_table_entry()
Definition: function-table.hxx:25
view_function_table_entry(const typename common_traits::function_table_type *t)
Definition: function-table.hxx:36
Definition: forward.hxx:107
Definition: function-table.hxx:32
Definition: forward.hxx:98
object_function_table_entry(const typename common_traits::function_table_type *t)
Definition: function-table.hxx:19
access::view_traits_impl< T, id_common > common_traits
Definition: function-table.hxx:34