table: make StrategyChoice enumerable

refs #1633

Change-Id: I203d76645649cc8ef2e3dcfbd254fa4ebab6e9dc
diff --git a/daemon/table/strategy-choice.cpp b/daemon/table/strategy-choice.cpp
index 2383118..34c583e 100644
--- a/daemon/table/strategy-choice.cpp
+++ b/daemon/table/strategy-choice.cpp
@@ -1,11 +1,12 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /**
- * Copyright (c) 2014  Regents of the University of California,
- *                     Arizona Board of Regents,
- *                     Colorado State University,
- *                     University Pierre & Marie Curie, Sorbonne University,
- *                     Washington University in St. Louis,
- *                     Beijing Institute of Technology
+ * Copyright (c) 2014,  Regents of the University of California,
+ *                      Arizona Board of Regents,
+ *                      Colorado State University,
+ *                      University Pierre & Marie Curie, Sorbonne University,
+ *                      Washington University in St. Louis,
+ *                      Beijing Institute of Technology,
+ *                      The University of Memphis
  *
  * This file is part of NFD (Named Data Networking Forwarding Daemon).
  * See AUTHORS.md for complete list of NFD authors and contributors.
@@ -37,6 +38,7 @@
 
 StrategyChoice::StrategyChoice(NameTree& nameTree, shared_ptr<Strategy> defaultStrategy)
   : m_nameTree(nameTree)
+  , m_nItems(0)
 {
   this->setDefaultStrategy(defaultStrategy);
 }
@@ -270,4 +272,10 @@
                 &clearStrategyInfo);
 }
 
+StrategyChoice::const_iterator
+StrategyChoice::begin() const
+{
+  return const_iterator(m_nameTree.fullEnumerate(&predicate_NameTreeEntry_hasStrategyChoiceEntry));
+}
+
 } // namespace nfd