5 #ifndef ODB_SESSION_HXX
6 #define ODB_SESSION_HXX
16 #include <odb/details/shared-ptr.hxx>
17 #include <odb/details/type-info.hxx>
19 #include <odb/details/export.hxx>
32 session (
bool make_current =
true);
85 std::map<typename object_traits<T>::id_type,
86 typename object_traits<T>::pointer_type>
104 template <
typename T>
109 template <
typename T>
113 template <
typename T>
120 typedef std::map<
const std::type_info*,
121 details::shared_ptr<object_map_base>,
130 map ()
const {
return db_map_;}
140 template <
typename T>
141 struct cache_position
169 template <
typename T>
175 template <
typename T>
179 template <
typename T>
186 template <
typename T>
190 template <
typename T>
194 template <
typename T>
198 template <
typename T>
207 #include <odb/session.ixx>
208 #include <odb/session.txx>
212 #endif // ODB_SESSION_HXX
static void _cache_persist(const cache_position< T > &)
Definition: session.hxx:188
std::map< database_type *, type_map > database_map
Definition: session.hxx:124
static void _cache_update(database_type &, const T &)
Definition: session.hxx:196
const database_map & map() const
Definition: session.hxx:130
iterator pos_
Definition: session.hxx:161
static void current(session &s)
Definition: session.hxx:55
odb::database database_type
Definition: session.hxx:26
Definition: forward.hxx:123
Definition: session.hxx:96
object_map< T > map
Definition: session.hxx:143
static bool has_current()
Definition: session.hxx:45
Definition: session.hxx:23
std::map< const std::type_info *, details::shared_ptr< object_map_base >, details::type_info_comparator > type_map
Definition: session.hxx:122
Definition: database.hxx:38
cache_position()
Definition: session.hxx:146
map * map_
Definition: session.hxx:160
database_map db_map_
Definition: session.hxx:203
Definition: session.hxx:84
database_map & map()
Definition: session.hxx:127
Definition: session.hxx:77
static void _cache_load(const cache_position< T > &)
Definition: session.hxx:192
map::iterator iterator
Definition: session.hxx:144
cache_position(map &m, const iterator &p)
Definition: session.hxx:147
access::object_traits< T >::pointer_type pointer_type
Definition: traits.hxx:116
static void reset_current()
Definition: session.hxx:60