aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/pairuser.h
blob: 109d721891b635bafd9e1bff1c8663c06f9fe11b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef PAIRUSER_H
#define PAIRUSER_H

#include <utility>
#include "complex.h"

class PairUser
{
public:
    PairUser() {}
    ~PairUser() {}

    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);

    void setPair(std::pair<int, int> pair) { m_pair = pair; }
    std::pair<int, int> getPair() { return m_pair; }

private:
    std::pair<int, int> m_pair;
};
#endif // PAIRUSER_H