OLD | NEW |
1 {% import 'fields/base.tmpl' as base %} | 1 {% import 'fields/base.tmpl' as base %} |
2 {% from 'fields/field.tmpl' import decode %} | 2 |
3 {% macro decl_public_methods(field) %} | 3 {% macro decl_public_methods(field) %} |
4 {{base.decl_public_methods(field)}} | 4 {{base.decl_initial_method(field)}} |
| 5 {{base.decl_getter_method(field)}} |
| 6 {{base.decl_setter_method(field)}} |
5 void {{field.setter_method_name}}({{field.type_name}}&& v) { | 7 void {{field.setter_method_name}}({{field.type_name}}&& v) { |
6 {{field.name}} = std::move(v); | 8 {{field.name}} = std::move(v); |
7 } | 9 } |
| 10 {{base.decl_resetter_method(field)}} |
8 {% endmacro %} | 11 {% endmacro %} |
9 | 12 |
10 {% macro decl_protected_methods(field) -%} | 13 {% macro decl_protected_methods(field) -%} |
11 {{field.type_name}}& {{field.internal_mutable_method_name}}() { | 14 {{base.decl_mutable_getter_method(field)}} |
12 return {{decode(field, field.name)}}; | |
13 } | |
14 {%- endmacro %} | 15 {%- endmacro %} |
OLD | NEW |