OLD | NEW |
1 class {{struct.name}} { | 1 class {{struct.name}} { |
2 public: | 2 public: |
3 typedef internal::{{struct.name}}_Data Data; | 3 typedef internal::{{struct.name}}_Data Data; |
4 | 4 |
5 {#--- Enums #} | 5 {#--- Enums #} |
6 {%- for enum in struct.enums -%} | 6 {%- for enum in struct.enums -%} |
7 {% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %} | 7 {% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %} |
8 {{enum_def()|indent(2)}} | 8 {{enum_def()|indent(2)}} |
9 {%- endfor %} | 9 {%- endfor %} |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 }; | 78 }; |
79 | 79 |
80 private: | 80 private: |
81 friend class mojo::internal::WrapperHelper<{{struct.name}}>; | 81 friend class mojo::internal::WrapperHelper<{{struct.name}}>; |
82 | 82 |
83 struct Wrap {}; | 83 struct Wrap {}; |
84 {{struct.name}}(Wrap, const Data* data) : data_(data) {} | 84 {{struct.name}}(Wrap, const Data* data) : data_(data) {} |
85 | 85 |
86 const Data* data_; | 86 const Data* data_; |
87 }; | 87 }; |
OLD | NEW |