aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/mapuser.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsample/mapuser.h')
-rw-r--r--sources/shiboken6/tests/libsample/mapuser.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/mapuser.h b/sources/shiboken6/tests/libsample/mapuser.h
new file mode 100644
index 000000000..1677a4bfb
--- /dev/null
+++ b/sources/shiboken6/tests/libsample/mapuser.h
@@ -0,0 +1,45 @@
+// 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 "libsamplemacros.h"
+
+#include "complex.h"
+#include "bytearray.h"
+
+#include <map>
+#include <list>
+#include <utility>
+#include <string>
+
+class LIBSAMPLE_API MapUser
+{
+public:
+ LIBMINIMAL_DEFAULT_COPY_MOVE(MapUser)
+
+ MapUser() noexcept = default;
+ virtual ~MapUser() = default;
+
+ 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