diff options
Diffstat (limited to 'odb/qt/containers/qmap-traits.hxx')
-rw-r--r-- | odb/qt/containers/qmap-traits.hxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/odb/qt/containers/qmap-traits.hxx b/odb/qt/containers/qmap-traits.hxx index e9c422c..db81715 100644 --- a/odb/qt/containers/qmap-traits.hxx +++ b/odb/qt/containers/qmap-traits.hxx @@ -19,6 +19,7 @@ namespace odb { public: static const container_kind kind = ck_map; + static const bool smart = false; typedef QMap<Key, T> container_type; @@ -33,7 +34,7 @@ namespace odb { for (typename container_type::const_iterator i (c.begin ()), e (c.end ()); i != e; ++i) - f.insert_one (i.key (), i.value ()); + f.insert (i.key (), i.value ()); } static void @@ -45,7 +46,7 @@ namespace odb { key_type k; value_type v; - more = f.load_all (k, v); + more = f.select (k, v); c.insert (k, v); //@@ Use std::move in C++11. } } @@ -53,17 +54,17 @@ namespace odb static void update (const container_type& c, const functions& f) { - f.delete_all (); + f.delete_ (); for (typename container_type::const_iterator i (c.begin ()), e (c.end ()); i != e; ++i) - f.insert_one (i.key (), i.value ()); + f.insert (i.key (), i.value ()); } static void erase (const functions& f) { - f.delete_all (); + f.delete_ (); } }; // @@ QMultiMap guarantees elements to be stored in reverse order of @@ -75,6 +76,7 @@ namespace odb { public: static const container_kind kind = ck_multimap; + static const bool smart = false; typedef QMultiMap<Key, T> container_type; @@ -89,7 +91,7 @@ namespace odb { for (typename container_type::const_iterator i (c.begin ()), e (c.end ()); i != e; ++i) - f.insert_one (i.key (), i.value ()); + f.insert (i.key (), i.value ()); } static void @@ -101,7 +103,7 @@ namespace odb { key_type k; value_type v; - more = f.load_all (k, v); + more = f.select (k, v); c.insert (k, v); //@@ Use std::move in C++11. } } @@ -109,17 +111,17 @@ namespace odb static void update (const container_type& c, const functions& f) { - f.delete_all (); + f.delete_ (); for (typename container_type::const_iterator i (c.begin ()), e (c.end ()); i != e; ++i) - f.insert_one (i.key (), i.value ()); + f.insert (i.key (), i.value ()); } static void erase (const functions& f) { - f.delete_all (); + f.delete_ (); } }; } |