aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/valueandvirtual.h
blob: d5a9be6b5cbf9b96d9aa942e86d602629011c72a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef VALUEANDVIRTUAL_H
#define VALUEANDVIRTUAL_H

class ValueAndVirtual
{
public:
    ValueAndVirtual(int id) : m_id(id) {}
    ValueAndVirtual(const ValueAndVirtual &other) { m_id = other.m_id; }

    bool operator()(int id, int id2) { return id == id2; }

    inline int id() { return m_id; }
    virtual ~ValueAndVirtual() {};
private:
    int m_id;
};

#endif // VALUEANDVIRTUAL_H