diff options
Diffstat (limited to 'sources/shiboken6/tests/libsample/pairuser.h')
-rw-r--r-- | sources/shiboken6/tests/libsample/pairuser.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/pairuser.h b/sources/shiboken6/tests/libsample/pairuser.h new file mode 100644 index 000000000..ee51d818e --- /dev/null +++ b/sources/shiboken6/tests/libsample/pairuser.h @@ -0,0 +1,32 @@ +// 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 PAIRUSER_H +#define PAIRUSER_H + +#include "libsamplemacros.h" +#include "complex.h" + +#include <utility> + +class LIBSAMPLE_API PairUser +{ +public: + LIBMINIMAL_DEFAULT_COPY_MOVE(PairUser) + + PairUser() noexcept = default; + virtual ~PairUser() = default; + + virtual std::pair<int, int> createPair(); + std::pair<int, int> callCreatePair(); + static std::pair<Complex, Complex> createComplexPair(Complex cpx0, Complex cpx1); + double sumPair(std::pair<int, double> pair); + + inline void setPair(std::pair<int, int> pair) { m_pair = pair; } + inline std::pair<int, int> getPair() { return m_pair; } + +private: + std::pair<int, int> m_pair; +}; + +#endif // PAIRUSER_H |