1 {% load kdev_filters %}
2 {% include "license_header_cpp.txt" %}
3 
4 
5 #include "{{ output_file_header }}"
6 #include "{{ output_file_privateheader }}"
7 
8 
9 {% include "namespace_use_cpp.txt" %}
10 
11 
12 {{ private_class_name }}::{{ private_class_name }}({{ name }}* q) : q(q)
13 {
14 
15 }
16 
17 {{ private_class_name }}::~{{ private_class_name }}()
18 {
19 
20 }
21 
22 {% for method in private_functions %}
23 
24 {% with method.arguments as arguments %}
25 {{ method.returnType|default:"void" }} {{ name }}::{{ method.name }}({% include "arguments_types_names.txt" %}){% if method.isConst %} const{% endif %}
26 {% endwith %}
27 {
28 
29 
30 }
31 
32 {% endfor %}
33 
34 {% for method in public_functions %}
35 
36 {% include "method_definition_cpp.txt" %}
37 {% if method.isConstructor %} : {{ private_member_name}}(new {{ private_class_name }}(this)){% endif %}
38 {
39     {% if method.isDestructor %}
40     delete {{ private_member_name }};
41     {% endif %}
42 
43 
44 }
45 
46 {% endfor %}
47 
48 {% for method in protected_functions %}
49 
50 {% include "method_definition_cpp.txt" %}
51 {% if method.isConstructor %} : {{ private_member_name}}(new {{ private_class_name }}(this)){% endif %}
52 {
53     {% if method.isDestructor %}
54     delete d;
55     {% endif %}
56 
57 
58 }
59 
60 {% endfor %}
61