summaryrefslogtreecommitdiff
path: root/builtin/qtcpp/templates/struct.cpp
blob: 5b132ec5bead910dd53397f4a2c2cbb1aa3c0596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{# Copyright (c) Pelagicore AB 2016 #}
{% set class = 'Qml{0}'.format(struct) %}
{% set ampersand = joiner(" &&") %}
/****************************************************************************
** This is an auto-generated file.
** Do not edit! All changes made to it will be lost.
****************************************************************************/

#include "{{class|lower}}.h"


{{struct.comment}}

bool {{class}}::operator==(const {{class}} &other) const
{
    return (
        {%- for field in struct.fields %}{{ ampersand() }}
        m_{{field}} == other.m_{{field}}
        {%- endfor %} );
}