Debian Codegraph @

odb/mysql/no-id-object-result.hxx

raw symbols SCIP
1 // file : odb/mysql/no-id-object-result.hxx
2 // copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
3 // license : GNU GPL v2; see accompanying LICENSE file
4
5 #ifndef ODB_MYSQL_NO_ID_OBJECT_RESULT_HXX
6 #define ODB_MYSQL_NO_ID_OBJECT_RESULT_HXX
7
8 #include <odb/pre.hxx>
9
10 #include <cstddef> // std::size_t
11
12 #include <odb/schema-version.hxx>
13 #include <odb/no-id-object-result.hxx>
14
15 #include <odb/details/shared-ptr.hxx>
16
17 #include <odb/mysql/version.hxx>
18 #include <odb/mysql/forward.hxx> // query_base
19 #include <odb/mysql/statement.hxx>
20 #include <odb/mysql/traits-calls.hxx>
21
22 namespace odb
23 {
24 namespace mysql
25 {
26 template <typename T>
27 class no_id_object_result_impl: public odb::no_id_object_result_impl<T>
28 {
29 public:
30 typedef odb::no_id_object_result_impl<T> base_type;
31
32 typedef typename base_type::object_type object_type;
33 typedef typename base_type::pointer_type pointer_type;
34
35 typedef object_traits_impl<object_type, id_mysql> object_traits;
36 typedef typename base_type::pointer_traits pointer_traits;
37
38 typedef typename object_traits::statements_type statements_type;
39
40 virtual
41 ~no_id_object_result_impl ();
42
43 no_id_object_result_impl (const query_base&,
44 details::shared_ptr<select_statement>,
45 statements_type&,
46 const schema_version_migration*);
47
48 virtual void
49 load (object_type&);
50
51 virtual void
52 next ();
53
54 virtual void
55 cache ();
56
57 virtual std::size_t
58 size ();
59
60 virtual void
61 invalidate ();
62
63 using base_type::current;
64
65 private:
66 void
67 fetch ();
68
69 private:
70 details::shared_ptr<select_statement> statement_;
71 statements_type& statements_;
72 object_traits_calls<object_type> tc_;
73 std::size_t count_;
74 };
75 }
76 }
77
78 #include <odb/mysql/no-id-object-result.txx>
79
80 #include <odb/post.hxx>
81
82 #endif // ODB_MYSQL_NO_ID_OBJECT_RESULT_HXX