aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/sqlite
diff options
context:
space:
mode:
Diffstat (limited to 'odb/relational/sqlite')
-rw-r--r--odb/relational/sqlite/common.cxx29
-rw-r--r--odb/relational/sqlite/common.hxx8
-rw-r--r--odb/relational/sqlite/context.cxx22
-rw-r--r--odb/relational/sqlite/context.hxx5
4 files changed, 40 insertions, 24 deletions
diff --git a/odb/relational/sqlite/common.cxx b/odb/relational/sqlite/common.cxx
index d64c252..36a0e86 100644
--- a/odb/relational/sqlite/common.cxx
+++ b/odb/relational/sqlite/common.cxx
@@ -62,17 +62,18 @@ namespace relational
member_image_type::
member_image_type (base const& x)
: member_base::base (x), // virtual base
- base (x)
- {
- }
+ base (x) {}
+
+ member_image_type::
+ member_image_type ()
+ : relational::member_base (0, 0, string (), string ()) {}
member_image_type::
member_image_type (semantics::type* type,
+ const custom_cxx_type* ct,
string const& fq_type,
string const& key_prefix)
- : relational::member_base (type, fq_type, key_prefix)
- {
- }
+ : relational::member_base (type, ct, fq_type, key_prefix) {}
string member_image_type::
image_type (semantics::data_member& m)
@@ -116,18 +117,20 @@ namespace relational
member_database_type_id::
member_database_type_id (base const& x)
: member_base::base (x), // virtual base
- base (x)
- {
- }
+ base (x) {}
+
+ member_database_type_id::
+ member_database_type_id ()
+ : member_base::base (0, 0, string (), string ()), // virtual base
+ base (0, 0, string (), string ()) {}
member_database_type_id::
member_database_type_id (semantics::type* type,
+ const custom_cxx_type* ct,
string const& fq_type,
string const& key_prefix)
- : member_base::base (type, fq_type, key_prefix), // virtual base
- base (type, fq_type, key_prefix)
- {
- }
+ : member_base::base (type, ct, fq_type, key_prefix), // virtual base
+ base (type, ct, fq_type, key_prefix) {}
string member_database_type_id::
database_type_id (type& m)
diff --git a/odb/relational/sqlite/common.hxx b/odb/relational/sqlite/common.hxx
index 808f489..bea0889 100644
--- a/odb/relational/sqlite/common.hxx
+++ b/odb/relational/sqlite/common.hxx
@@ -62,7 +62,9 @@ namespace relational
member_base
{
member_image_type (base const&);
- member_image_type (semantics::type* type = 0,
+ member_image_type ();
+ member_image_type (semantics::type* type,
+ const custom_cxx_type*,
string const& fq_type = string (),
string const& key_prefix = string ());
virtual string
@@ -88,7 +90,9 @@ namespace relational
member_base
{
member_database_type_id (base const&);
- member_database_type_id (semantics::type* type = 0,
+ member_database_type_id ();
+ member_database_type_id (semantics::type* type,
+ const custom_cxx_type*,
string const& fq_type = string (),
string const& key_prefix = string ());
diff --git a/odb/relational/sqlite/context.cxx b/odb/relational/sqlite/context.cxx
index 1b60945..007d67f 100644
--- a/odb/relational/sqlite/context.cxx
+++ b/odb/relational/sqlite/context.cxx
@@ -162,14 +162,17 @@ namespace relational
struct has_grow_member: member_base
{
+ has_grow_member (bool& r, user_section* section = 0)
+ : relational::member_base (0, 0, string (), string (), section),
+ r_ (r) {}
+
has_grow_member (bool& r,
- user_section* section = 0,
- semantics::type* type = 0,
+ user_section* section,
+ semantics::type* t,
+ const custom_cxx_type* ct,
string const& key_prefix = string ())
- : relational::member_base (type, string (), key_prefix, section),
- r_ (r)
- {
- }
+ : relational::member_base (t, ct, string (), key_prefix, section),
+ r_ (r) {}
virtual bool
pre (member_info& mi)
@@ -224,10 +227,13 @@ namespace relational
}
bool context::
- grow_impl (semantics::data_member& m, semantics::type& t, string const& kp)
+ grow_impl (semantics::data_member& m,
+ semantics::type& t,
+ const custom_cxx_type* ct,
+ string const& kp)
{
bool r (false);
- has_grow_member mt (r, 0, &t, kp);
+ has_grow_member mt (r, 0, &t, ct, kp);
mt.traverse (m);
return r;
}
diff --git a/odb/relational/sqlite/context.hxx b/odb/relational/sqlite/context.hxx
index 968767f..7c5107e 100644
--- a/odb/relational/sqlite/context.hxx
+++ b/odb/relational/sqlite/context.hxx
@@ -73,7 +73,10 @@ namespace relational
grow_impl (semantics::data_member&);
virtual bool
- grow_impl (semantics::data_member&, semantics::type&, string const&);
+ grow_impl (semantics::data_member&,
+ semantics::type&,
+ const custom_cxx_type*,
+ string const&);
protected:
virtual string