Code improvements

Enhanced data types for statistic's queries
This commit is contained in:
Valentino Orlandi 2023-01-27 02:15:47 +01:00
parent 6e8aa9749f
commit 21855fe1f6
Signed by: elB4RTO
GPG Key ID: 1719E976DB2D4E71
1 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@
#include <unordered_map>
#include <vector>
#include <tuple>
#include <map>
//! Result
@ -41,11 +42,11 @@ private:
// data types
typedef std::unordered_map<int, std::unordered_map<int, std::unordered_map<int, std::vector<int>>>> stats_dates_t;
typedef std::map<int, std::map<int, std::map<int, std::vector<int>>>> stats_dates_t;
typedef std::vector<std::vector<std::vector<std::vector<QString>>>> stats_warn_items_t;
typedef std::vector<std::tuple<long long, std::vector<QString>>> stats_speed_items_t;
typedef std::unordered_map<int, std::unordered_map<int, int>> stats_day_items_t;
typedef std::vector<std::tuple<long long, int>> stats_relat_items_t;
typedef std::vector<std::tuple<QString, int>> stats_count_items_t;
typedef std::map<unsigned, QString> stats_count_items_t;
#endif // RESULT_H