File indexing completed on 2024-05-05 04:37:27
0001 {% extends "cpp_implementation.cpp" %} 0002 0003 0004 {% block function_definitions %} 0005 0006 {% for method in public_functions %} 0007 {% with method.arguments as arguments %} 0008 0009 {% include "method_definition_cpp.txt" %} 0010 {% if method.isConstructor %} 0011 {% block public_constructor_init_list %} 0012 {% endblock public_constructor_init_list %} 0013 {% endif %} 0014 { 0015 {% block public_method_body %} 0016 {% if method.isConstructor %} 0017 {% block public_constructor_body %} 0018 {% endblock public_constructor_body %} 0019 {% elif method.isDestructor %} 0020 {% block public_destructor_body %} 0021 {% endblock public_destructor_body %} 0022 {% elif method.type %} 0023 return {{ method.default_return_value }}; 0024 {% endif %} 0025 {% endblock public_method_body %} 0026 } 0027 0028 {% endwith %} 0029 {% endfor %} 0030 0031 {% for property in members %} 0032 0033 0034 {% include "class_property_getter_definition_cpp.txt" %} 0035 { 0036 return m_{{ property.name }}; 0037 } 0038 0039 0040 {% include "class_property_setter_definition_cpp.txt" %} 0041 { 0042 if (m_{{ property.name }} == {{ property.name }}) { 0043 return; 0044 } 0045 0046 0047 m_{{ property.name }} = {{ property.name }}; 0048 emit {{ property.name }}Changed(m_{{ property.name }}); 0049 } 0050 0051 {% endfor %} 0052 0053 {% for method in protected_functions %} 0054 {% with method.arguments as arguments %} 0055 0056 {% include "method_definition_cpp.txt" %} 0057 {% if method.isConstructor %} 0058 {% block protected_constructor_init_list %} 0059 {% endblock protected_constructor_init_list %} 0060 {% endif %} 0061 { 0062 {% block protected_method_body %} 0063 {% if method.isConstructor %} 0064 {% block protected_constructor_body %} 0065 {% endblock protected_constructor_body %} 0066 {% elif method.isDestructor %} 0067 {% block protected_destructor_body %} 0068 {% endblock protected_destructor_body %} 0069 {% elif method.type %} 0070 return {{ method.default_return_value }}; 0071 {% endif %} 0072 {% endblock protected_method_body %} 0073 } 0074 0075 {% endwith %} 0076 {% endfor %} 0077 0078 {% for method in private_functions %} 0079 0080 {% include "method_definition_cpp.txt" %} 0081 { 0082 {% if method.type %} 0083 return {{ method.default_return_value }}; 0084 {% endif %} 0085 } 0086 0087 {% endfor %} 0088 {% endblock function_definitions %}