summaryrefslogtreecommitdiff
path: root/odb/common.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/common.hxx')
-rw-r--r--odb/common.hxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/odb/common.hxx b/odb/common.hxx
index 8bf7b8e..f0c2d5a 100644
--- a/odb/common.hxx
+++ b/odb/common.hxx
@@ -110,15 +110,22 @@ struct object_columns_base: traversal::class_, virtual context
virtual void
composite (semantics::data_member&, semantics::class_&);
+ // Called after the last column, provided at least one column hasn't
+ // been ignored.
+ //
+ virtual void
+ flush ();
+
public:
object_columns_base ()
- : member_ (*this)
+ : top_level_ (true), member_ (*this)
{
init ();
}
object_columns_base (object_columns_base const&)
: context (), //@@ -Wextra
+ top_level_ (true),
member_ (*this)
{
init ();
@@ -159,6 +166,8 @@ private:
bool first_;
};
+ bool top_level_;
+
member member_;
traversal::names names_;
traversal::inherits inherits_;