blob: 49318743c2753e6af21d3f86ef2141b7882b4a4d (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// 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 MAPUSER_H
#define MAPUSER_H
#include <map>
#include <list>
#include <utility>
#include <string>
#include "complex.h"
#include "bytearray.h"
#include "libsamplemacros.h"
class LIBSAMPLE_API MapUser
{
public:
MapUser() {}
virtual ~MapUser() {}
virtual std::map<std::string, std::pair<Complex, int> > createMap();
std::map<std::string, std::pair<Complex, int> > callCreateMap();
void showMap(std::map<std::string, int> mapping);
inline void setMap(std::map<std::string, std::list<int> > map) { m_map = map; }
inline std::map<std::string, std::list<int> > getMap() { return m_map; }
// Compile test
static void pointerToMap(std::map<std::string, std::string> *arg);
static void referenceToMap(std::map<std::string, std::string> &arg);
inline const std::map<int, ByteArray>& passMapIntValueType(const std::map<int, ByteArray>& arg) { return arg; }
std::map<int, std::list<std::list<double> > > foo() const;
private:
std::map<std::string, std::list<int> > m_map;
};
#endif // MAPUSER_H
|