From dfc260adf46e79b039685d554797b403d76c6bfd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 22 Jun 2015 18:08:32 +0200 Subject: Implement member type mapping, more m.type() cleanups --- odb/context.hxx | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'odb/context.hxx') diff --git a/odb/context.hxx b/odb/context.hxx index e743a4a..e74aeb1 100644 --- a/odb/context.hxx +++ b/odb/context.hxx @@ -646,10 +646,14 @@ public: static bool const_type (semantics::type&); - // Form a reference type for a member type. If make_const is true, then - // add top-level const qualifier, unless it is already there. If it is - // false, then strip it if it is already there. If var is not empty, - // then embed the variable name into the type (e.g., char (*v)[3]). + static bool + const_member (semantics::data_member& m) {return const_type (m.type ());} + + // Form a reference type for a not mapped, actual member type. If + // make_const is true, then add top-level const qualifier, unless + // it is already there. If it is false, then strip it if it is + // already there. If var is not empty, then embed the variable + // name into the type (e.g., char (*v)[3]). // static string member_ref_type (semantics::data_member& m, @@ -665,10 +669,10 @@ public: bool make_const, string const& var = ""); - // Form a value type for a member type. If make_const is true, then add - // top-level const qualifier, unless it is already there. If it is false, - // then strip it if it is already there. If var is not empty, then embed - // the variable name into the type (e.g., char v[3]). + // Form a value type for a not mapped, actual member type. If make_const + // is true, then add top-level const qualifier, unless it is already + // there. If it is false, then strip it if it is already there. If var is + // not empty, then embed the variable name into the type (e.g., char v[3]). // static string member_val_type (semantics::data_member& m, @@ -1723,8 +1727,6 @@ public: regex_mapping const& accessor_regex; regex_mapping const& modifier_regex; - custom_cxx_type_map const& custom_type_map; - bool embedded_schema; bool separate_schema; -- cgit v1.1