Some progress on CcnxPit. Partially working
diff --git a/utils/trie-with-policy.h b/utils/trie-with-policy.h
index a2be29a..ea194b3 100644
--- a/utils/trie-with-policy.h
+++ b/utils/trie-with-policy.h
@@ -34,7 +34,6 @@
{
public:
typedef trie< FullKey,
- typename PayloadTraits::payload_type,
PayloadTraits,
typename PolicyTraits::policy_hook_type > parent_trie;
@@ -133,6 +132,16 @@
return foundItem;
}
+ // /**
+ // * @brief Const version of the longest common prefix match
+ // * (semi-const, because there could be update of the policy anyways)
+ // */
+ // inline const_iterator
+ // longest_prefix_match (const FullKey &key) const
+ // {
+ // return static_cast<trie_with_policy*> (this)->longest_prefix_match (key);
+ // }
+
/**
* @brief Find a node that has prefix at least as the key (cache lookup)
*/
@@ -221,7 +230,7 @@
private:
parent_trie trie_;
- policy_container policy_;
+ mutable policy_container policy_;
};
} // ndnSIM