table: Strategy Choice table
refs #1309
Change-Id: I6fd8efdfc98175a1cc39fdc3aa7175671596f470
diff --git a/daemon/fw/forwarder.hpp b/daemon/fw/forwarder.hpp
index 726d8a0..7ab0849 100644
--- a/daemon/fw/forwarder.hpp
+++ b/daemon/fw/forwarder.hpp
@@ -14,6 +14,7 @@
#include "table/pit.hpp"
#include "table/cs.hpp"
#include "table/measurements.hpp"
+#include "table/strategy-choice.hpp"
#include "strategy.hpp"
namespace nfd {
@@ -72,6 +73,9 @@
Measurements&
getMeasurements();
+ StrategyChoice&
+ getStrategyChoice();
+
PUBLIC_WITH_TESTS_ELSE_PRIVATE: // pipelines
/** \brief incoming Interest pipeline
*/
@@ -133,11 +137,14 @@
private:
FaceTable m_faceTable;
- NameTree m_nameTree;
- Fib m_fib;
- Pit m_pit;
- Cs m_cs;
- Measurements m_measurements;
+ // tables
+ NameTree m_nameTree;
+ Fib m_fib;
+ Pit m_pit;
+ Cs m_cs;
+ Measurements m_measurements;
+ StrategyChoice m_strategyChoice;
+
/// the active strategy (only one strategy in mock)
shared_ptr<fw::Strategy> m_strategy;
@@ -207,6 +214,11 @@
return m_measurements;
}
+inline StrategyChoice&
+Forwarder::getStrategyChoice()
+{
+ return m_strategyChoice;
+}
} // namespace nfd