31 auto it = m_packetCounter.find(type);
32 if (it != m_packetCounter.end()) {
43 m_packetCounter[type]++;
49 for (
auto& it : m_packetCounter) {
59 os <<
"++++++++++++++++++++++++++++++++++++++++\n"
63 <<
"++++++++++++++++++++++++++++++++++++++++\n"
65 <<
" Sent Hello Interests: " << stats.
get(PacketType::SENT_HELLO_INTEREST) <<
"\n"
66 <<
" Sent Hello Data: " << stats.
get(PacketType::SENT_HELLO_DATA) <<
"\n"
68 <<
" Received Hello Interests: " << stats.
get(PacketType::RCV_HELLO_INTEREST) <<
"\n"
69 <<
" Received Hello Data: " << stats.
get(PacketType::RCV_HELLO_DATA) <<
"\n"
72 <<
" Total Sent LSA Interests: " << stats.
get(PacketType::SENT_LSA_INTEREST) <<
"\n"
73 <<
" Total Received LSA Interests: " << stats.
get(PacketType::RCV_LSA_INTEREST) <<
"\n"
75 <<
" Total Sent LSA Data: " << stats.
get(PacketType::SENT_LSA_DATA) <<
"\n"
76 <<
" Total Received LSA Data: " << stats.
get(PacketType::RCV_LSA_DATA) <<
"\n"
78 <<
" Sent Adjacency LSA Interests: " << stats.
get(PacketType::SENT_ADJ_LSA_INTEREST) <<
"\n"
79 <<
" Sent Coordinate LSA Interests: " << stats.
get(PacketType::SENT_COORD_LSA_INTEREST) <<
"\n"
80 <<
" Sent Name LSA Interests: " << stats.
get(PacketType::SENT_NAME_LSA_INTEREST) <<
"\n"
82 <<
" Received Adjacency LSA Interests: " << stats.
get(PacketType::RCV_ADJ_LSA_INTEREST) <<
"\n"
83 <<
" Received Coordinate LSA Interests: " << stats.
get(PacketType::RCV_COORD_LSA_INTEREST) <<
"\n"
84 <<
" Received Name LSA Interests: " << stats.
get(PacketType::RCV_NAME_LSA_INTEREST) <<
"\n"
86 <<
" Sent Adjacency LSA Data: " << stats.
get(PacketType::SENT_ADJ_LSA_DATA) <<
"\n"
87 <<
" Sent Coordinate LSA Data: " << stats.
get(PacketType::SENT_COORD_LSA_DATA) <<
"\n"
88 <<
" Sent Name LSA Data: " << stats.
get(PacketType::SENT_NAME_LSA_DATA) <<
"\n"
90 <<
" Received Adjacency LSA Data: " << stats.
get(PacketType::RCV_ADJ_LSA_DATA) <<
"\n"
91 <<
" Received Coordinate LSA Data: " << stats.
get(PacketType::RCV_COORD_LSA_DATA) <<
"\n"
92 <<
" Received Name LSA Data: " << stats.
get(PacketType::RCV_NAME_LSA_DATA) <<
"\n"
93 <<
"++++++++++++++++++++++++++++++++++++++++\n";
void increment(PacketType)
size_t get(PacketType) const
Copyright (c) 2014-2020, The University of Memphis, Regents of the University of California.
std::ostream & operator<<(std::ostream &os, const Adjacent &adjacent)