From 64d0ceffaaf5f57a3d24a5210bf0ad2a8474a618 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 26 Aug 2011 12:13:18 +0200 Subject: Add wrapper support for composite values NULL semantics for composite values is not yet supported. --- odb/common.hxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'odb/common.hxx') diff --git a/odb/common.hxx b/odb/common.hxx index 548e2a2..86a39c7 100644 --- a/odb/common.hxx +++ b/odb/common.hxx @@ -30,6 +30,17 @@ struct object_members_base: traversal::class_, virtual context virtual void composite (semantics::data_member*, semantics::class_&); + // More general version of the above function that allows detection + // of wrapped composite value. By default this function calls + // composite (m, comp) ignoring the wrapper type. Note that this + // function is called for all composite value (wrapped or not). + // If it is not wrapped, the wrapper argument will be NULL. + // + virtual void + composite_wrapper (semantics::data_member*, + semantics::class_& comp, + semantics::type* wrapper); + // If you override this function, you can call the base to traverse // bases and members. // -- cgit v1.1