summaryrefslogtreecommitdiff
path: root/odb/relational/header.hxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-10-06 09:01:48 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-10-21 11:47:12 +0200
commit213a61a1d9b41e71c886f0ff6a4762522cf68e63 (patch)
tree77ea5cc6da4ce9d3c508be8aa3d8467b765195c1 /odb/relational/header.hxx
parent3d1aa62e7f6dfeba4b81ea4716598fe680f1fffb (diff)
Add flag to context indicating whether to generate grow code
Diffstat (limited to 'odb/relational/header.hxx')
-rw-r--r--odb/relational/header.hxx36
1 files changed, 24 insertions, 12 deletions
diff --git a/odb/relational/header.hxx b/odb/relational/header.hxx
index 1380c49..4c1421c 100644
--- a/odb/relational/header.hxx
+++ b/odb/relational/header.hxx
@@ -684,9 +684,12 @@ namespace relational
// grow ()
//
- os << "static void" << endl
- << "grow (data_image_type&, " << truncated_vector << ");"
- << endl;
+ if (generate_grow)
+ {
+ os << "static void" << endl
+ << "grow (data_image_type&, " << truncated_vector << ");"
+ << endl;
+ }
// init (data_image)
//
@@ -1015,9 +1018,12 @@ namespace relational
// grow ()
//
- os << "static bool" << endl
- << "grow (image_type&, " << truncated_vector << ");"
- << endl;
+ if (generate_grow)
+ {
+ os << "static bool" << endl
+ << "grow (image_type&, " << truncated_vector << ");"
+ << endl;
+ }
// bind (image_type)
//
@@ -1359,9 +1365,12 @@ namespace relational
// grow ()
//
- os << "static bool" << endl
- << "grow (image_type&, " << truncated_vector << ");"
- << endl;
+ if (generate_grow)
+ {
+ os << "static bool" << endl
+ << "grow (image_type&, " << truncated_vector << ");"
+ << endl;
+ }
// bind (image_type)
//
@@ -1450,9 +1459,12 @@ namespace relational
// grow ()
//
- os << "static bool" << endl
- << "grow (image_type&, " << truncated_vector << ");"
- << endl;
+ if (generate_grow)
+ {
+ os << "static bool" << endl
+ << "grow (image_type&, " << truncated_vector << ");"
+ << endl;
+ }
// bind (image_type)
//