11#include <nlohmann/json.hpp>
13using namespace omnetpp;
17using json = nlohmann::json;
31static const char* QNIC_names[QNIC_N] = {
51class hash<pair<
quisp::modules::QNIC_type, int>> {
58 std::size_t
operator()(pair<quisp::modules::QNIC_type, int>
const& key)
const noexcept {
return std::hash<int>()((int)key.first * 10000 + key.second); }
std::size_t operator()(pair< quisp::modules::QNIC_type, int > const &key) const noexcept
hash function for pair<QNIC_type, int> this only work assuming each node won't have more than 10,...
Definition QNIC.h:58
Definition Application.cc:16
nlohmann::json json
Definition QNIC.h:17
NLOHMANN_JSON_SERIALIZE_ENUM(QNIC_type, { {QNIC_E, "QNIC_E"}, {QNIC_R, "QNIC_R"}, {QNIC_RP, "QNIC_RP"}, }) static const char *QNIC_names[QNIC_N]
std::pair< QNIC, QNIC > QNicPairInfo
Definition QNIC.h:46
QNIC_type
Definition QNIC.h:18
@ QNIC_E
Definition QNIC.h:19
@ QNIC_RP
Definition QNIC.h:21
@ QNIC_N
Definition QNIC.h:22
@ QNIC_R
Definition QNIC.h:20
int address
Definition QNIC.h:41
cModule * pointer
Definition QNIC.h:43
int index
Definition QNIC.h:39
QNIC_type type
Definition QNIC.h:38