• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ParadoxGameConverters / Vic3ToHoI4 / 4189923376

pending completion
4189923376

Pull #265

github

GitHub
Merge e4a325e0a into eb87403de
Pull Request #265: Convert technology

154 of 154 new or added lines in 16 files covered. (100.0%)

1607 of 1796 relevant lines covered (89.48%)

86692.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/hoi4_world/technology/technologies.h
1
#ifndef SRC_HOI4WORLD_TECHNOLOGY_TECHNOLOGIES_H_
2
#define SRC_HOI4WORLD_TECHNOLOGY_TECHNOLOGIES_H_
3

4

5

6
#include <map>
7
#include <set>
8
#include <string>
9
#include <vector>
10

11
#include "src/mappers/technology/tech_mapping.h"
12

13

14

15
namespace hoi4
16
{
17

18
class Technologies
19
{
20
  public:
21
   Technologies() = default;
22

23
   explicit Technologies(std::map<std::optional<std::string>, std::set<std::string>> technologies_by_limits):
×
24
       technologies_by_limits_(std::move(technologies_by_limits))
×
25
   {
26
   }
×
27

28
   [[nodiscard]] bool HasTechnology(const std::string& technology) const;
29

30
   [[nodiscard]] const std::map<std::optional<std::string>, std::set<std::string>>& GetTechnologies() const
×
31
   {
32
      return technologies_by_limits_;
×
33
   }
34

35
   std::partial_ordering operator<=>(const Technologies&) const = default;
36

37
  private:
38
   // technologies are sorted by limits that can be applied to them
39
   std::map<std::optional<std::string>, std::set<std::string>> technologies_by_limits_;
40
};
41

42
}  // namespace hoi4
43

44

45

46
#endif  // SRC_HOI4WORLD_TECHNOLOGY_TECHNOLOGIES_H_
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc