aboutsummaryrefslogtreecommitdiff
path: root/odb/result.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-10 17:04:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-10 17:04:40 +0200
commit0748ec6af7ca878d30e7bb20ae2792cd70c88cad (patch)
treee00adf3a8b636b57775345d44c967c50506eea4b /odb/result.hxx
parent9bafeadb554fd4dfc11ce5c2b036a937008455f9 (diff)
Add ability to load result into an existing object
Diffstat (limited to 'odb/result.hxx')
-rw-r--r--odb/result.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/odb/result.hxx b/odb/result.hxx
index 7356395..42939a9 100644
--- a/odb/result.hxx
+++ b/odb/result.hxx
@@ -72,6 +72,14 @@ namespace odb
return *this;
}
+ public:
+ void
+ load (T& x)
+ {
+ res_->current (x);
+ }
+
+ public:
bool
equal (const result_iterator& j)
{
@@ -116,6 +124,9 @@ namespace odb
current (bool release) = 0;
virtual void
+ current (T&) = 0;
+
+ virtual void
next () = 0;
};