aboutsummaryrefslogtreecommitdiff
path: root/xsd/cxx/tree
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-12-01 11:05:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-12-01 11:05:10 +0200
commit899728d08993676b01e722a28f60efb2d076534d (patch)
treeb7ad14010ad75bdc08ed3b9e4e4fe6a5f6371b4f /xsd/cxx/tree
parent238774bc0a8a1c07d5fec89135a766a3e3d8494d (diff)
Make the list type a container for its elements
Diffstat (limited to 'xsd/cxx/tree')
-rw-r--r--xsd/cxx/tree/stream-extraction-source.cxx2
-rw-r--r--xsd/cxx/tree/tree-header.cxx2
-rw-r--r--xsd/cxx/tree/tree-inline.cxx7
-rw-r--r--xsd/cxx/tree/tree-source.cxx6
4 files changed, 9 insertions, 8 deletions
diff --git a/xsd/cxx/tree/stream-extraction-source.cxx b/xsd/cxx/tree/stream-extraction-source.cxx
index 8b92040..27b3ca7 100644
--- a/xsd/cxx/tree/stream-extraction-source.cxx
+++ b/xsd/cxx/tree/stream-extraction-source.cxx
@@ -55,7 +55,7 @@ namespace CXX
<< flags_type << " f," << endl
<< container << "* c)" << endl
<< ": " << any_simple_type << " (s, f, c)," << endl
- << " " << base << " (s, f, c)"
+ << " " << base << " (s, f, this)"
<< "{"
<< "}";
diff --git a/xsd/cxx/tree/tree-header.cxx b/xsd/cxx/tree/tree-header.cxx
index 6b1490c..a63dcbe 100644
--- a/xsd/cxx/tree/tree-header.cxx
+++ b/xsd/cxx/tree/tree-header.cxx
@@ -135,7 +135,7 @@ namespace CXX
os << "template < typename " << iter_type << " >" << endl
<< name << " (const " << iter_type << "& begin, const " <<
iter_type << "& end)" << endl
- << ": " << base_type << " (begin, end)"
+ << ": " << base_type << " (begin, end, this)"
<< "{"
<< "}";
diff --git a/xsd/cxx/tree/tree-inline.cxx b/xsd/cxx/tree/tree-inline.cxx
index 5bec713..0b834af 100644
--- a/xsd/cxx/tree/tree-inline.cxx
+++ b/xsd/cxx/tree/tree-inline.cxx
@@ -52,7 +52,8 @@ namespace CXX
//
os << inl
<< name << "::" << endl
- << name << " ()"
+ << name << " ()" << endl
+ << ": " << base_type << " (0, this)"
<< "{"
<< "}";
@@ -66,7 +67,7 @@ namespace CXX
<< name << "::" << endl
<< name << " (" << size_type << " n, const " << item_name <<
"& x)" << endl
- << ": " << base_type << " (n, x)"
+ << ": " << base_type << " (n, x, this)"
<< "{"
<< "}";
@@ -78,7 +79,7 @@ namespace CXX
<< flags_type << " f," << endl
<< container << "* c)" << endl
<< ": " << any_simple_type << " (o, f, c)," << endl
- << " " << base_type << " (o, f, c)"
+ << " " << base_type << " (o, f, this)"
<< "{"
<< "}";
}
diff --git a/xsd/cxx/tree/tree-source.cxx b/xsd/cxx/tree/tree-source.cxx
index 7952e38..4b4b301 100644
--- a/xsd/cxx/tree/tree-source.cxx
+++ b/xsd/cxx/tree/tree-source.cxx
@@ -62,7 +62,7 @@ namespace CXX
<< flags_type << " f," << endl
<< container << "* c)" << endl
<< ": " << any_simple_type << " (e, f, c)," << endl
- << " " << base << " (e, f, c)"
+ << " " << base << " (e, f, this)"
<< "{"
<< "}";
@@ -73,7 +73,7 @@ namespace CXX
<< flags_type << " f," << endl
<< container << "* c)" << endl
<< ": " << any_simple_type << " (a, f, c)," << endl
- << " " << base << " (a, f, c)"
+ << " " << base << " (a, f, this)"
<< "{"
<< "}";
@@ -85,7 +85,7 @@ namespace CXX
<< flags_type << " f," << endl
<< container << "* c)" << endl
<< ": " << any_simple_type << " (s, e, f, c)," << endl
- << " " << base << " (s, e, f, c)"
+ << " " << base << " (s, e, f, this)"
<< "{"
<< "}";
}