OLD | NEW |
---|---|
1 {% import 'fields/base.tmpl' as base %} | 1 {% import 'fields/base.tmpl' as base %} |
2 {% from 'fields/field.tmpl' import decode %} | 2 {% from 'fields/field.tmpl' import decode %} |
3 {% macro decl_methods(field) %} | 3 {% macro decl_public_methods(field) %} |
4 {{base.decl_methods(field)}} | 4 {{base.decl_public_methods(field)}} |
5 void {{field.setter_method_name}}({{field.type_name}}&& v) { | 5 void {{field.setter_method_name}}({{field.type_name}}&& v) { |
6 {{field.name}} = std::move({{decode(field, "v")}}); | 6 {{field.name}} = std::move({{decode(field, "v")}}); |
7 } | 7 } |
8 {% endmacro %} | 8 {% endmacro %} |
9 | |
10 {% macro decl_protected_methods(field) -%} | |
11 {{field.type_name}}& {{field.internal_mutable_method_name}}() { | |
suzyh_UTC10 (ex-contributor)
2017/04/20 00:12:18
return_type?
nainar
2017/04/20 02:53:04
Done.
suzyh_UTC10 (ex-contributor)
2017/04/20 03:48:02
Er, isn't it a function call? return_type(field)?
nainar
2017/04/20 05:15:58
Fixed. Scratches head about how this built.
| |
12 return {{decode(field, field.name)}}; | |
13 } | |
14 {%- endmacro %} | |
OLD | NEW |