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/flooding.h b/model/fw/flooding.h
index d730113..c4f6205 100644
--- a/model/fw/flooding.h
+++ b/model/fw/flooding.h
@@ -23,6 +23,7 @@
#define NDNSIM_FLOODING_H
#include "nacks.h"
+#include "ns3/log.h"
namespace ns3 {
namespace ndn {
@@ -37,9 +38,19 @@
class Flooding :
public Nacks
{
-public:
- static TypeId GetTypeId ();
+private:
+ typedef Nacks super;
+public:
+ static TypeId
+ GetTypeId ();
+
+ /**
+ * @brief Helper function to retrieve logging name for the forwarding strategy
+ */
+ static std::string
+ GetLogName ();
+
/**
* @brief Default constructor
*/
@@ -53,8 +64,8 @@
Ptr<const Packet> origPacket,
Ptr<pit::Entry> pitEntry);
-private:
- typedef Nacks super;
+protected:
+ static LogComponent g_log;
};
} // namespace fw