| OLD | NEW |
| 1 {% from "enum_macros.tmpl" import enum_decl -%} | 1 {% from "enum_macros.tmpl" import enum_decl -%} |
| 2 class {{struct.name}} { | 2 class {{struct.name}} { |
| 3 public: | 3 public: |
| 4 using Data_ = internal::{{struct.name}}_Data; | 4 using Data_ = internal::{{struct.name}}_Data; |
| 5 | 5 |
| 6 {#--- Enums #} | 6 {#--- Enums #} |
| 7 {%- for enum in struct.enums -%} | 7 {%- for enum in struct.enums -%} |
| 8 {{enum_decl(enum, is_static=true)|indent(2)}} | 8 {{enum_decl(enum, is_static=true)|indent(2)}} |
| 9 {%- endfor %} | 9 {%- endfor %} |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 {%- endif %} | 37 {%- endif %} |
| 38 bool Equals(const {{struct.name}}& other) const; | 38 bool Equals(const {{struct.name}}& other) const; |
| 39 | 39 |
| 40 {#--- Struct members #} | 40 {#--- Struct members #} |
| 41 {% for field in struct.fields %} | 41 {% for field in struct.fields %} |
| 42 {%- set type = field.kind|cpp_wrapper_type %} | 42 {%- set type = field.kind|cpp_wrapper_type %} |
| 43 {%- set name = field.name %} | 43 {%- set name = field.name %} |
| 44 {{type}} {{name}}; | 44 {{type}} {{name}}; |
| 45 {%- endfor %} | 45 {%- endfor %} |
| 46 }; | 46 }; |
| 47 |
| 48 {#--- Enum Operators #} |
| 49 {% from "enum_macros.tmpl" import global_enum_operators_decl -%} |
| 50 {%- for enum in struct.enums %} |
| 51 {{global_enum_operators_decl(enum, class_name=struct.name)}} |
| 52 {%- endfor %} |
| OLD | NEW |