fw+doc: Renaming and extending limit extenstion
SimpleLimits now called PerOutFaceLimits. Also, there is now
PerFibLimits that is inherited from PerOutFaceLimits and implements
additional check.
Also, this commit includes a couple of tricks to improve documentation
of templated classes (PerOutFaceLimits and PerFibLimits). Not ideal, but
much better than before.
diff --git a/model/fw/best-route.h b/model/fw/best-route.h
index 3f4fef7..6e17b99 100644
--- a/model/fw/best-route.h
+++ b/model/fw/best-route.h
@@ -24,6 +24,7 @@
#define NDNSIM_BEST_ROUTE_H
#include "green-yellow-red.h"
+#include "ns3/log.h"
namespace ns3 {
namespace ndn {
@@ -44,6 +45,12 @@
GetTypeId ();
/**
+ * @brief Helper function to retrieve logging name for the forwarding strategy
+ */
+ static std::string
+ GetLogName ();
+
+ /**
* @brief Default constructor
*/
BestRoute ();
@@ -54,6 +61,8 @@
Ptr<const InterestHeader> header,
Ptr<const Packet> origPacket,
Ptr<pit::Entry> pitEntry);
+protected:
+ static LogComponent g_log;
};
} // namespace fw