summaryrefslogtreecommitdiff
path: root/cli/inline.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-06-21 10:25:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-06-21 10:25:57 +0200
commit80a611d355a31e0f11e3f69339ccacf378cb3bb3 (patch)
tree1093043381f631d57d3fd555bc88f2ce92b77748 /cli/inline.cxx
parent9465db62c36d98b40cfc1048dfdec571b93565e7 (diff)
Generate "direct access" modifier in addition to "setter"
Diffstat (limited to 'cli/inline.cxx')
-rw-r--r--cli/inline.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/inline.cxx b/cli/inline.cxx
index 0638f30..bb54962 100644
--- a/cli/inline.cxx
+++ b/cli/inline.cxx
@@ -27,11 +27,19 @@ namespace
<< "}";
if (modifier)
+ {
+ os << inl << type << "& " << scope << "::" << endl
+ << name << " ()"
+ << "{"
+ << "return this->" << emember (o) << ";"
+ << "}";
+
os << inl << "void " << scope << "::" << endl
<< name << "(const " << type << "& x)"
<< "{"
<< "this->" << emember (o) << " = x;"
<< "}";
+ }
if (specifier && type != "bool")
{