Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 1 | /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2011 University of California, Los Angeles |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 as |
| 7 | * published by the Free Software Foundation; |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 | * |
| 18 | * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 19 | */ |
| 20 | |
| 21 | #ifndef TRIE_WITH_POLICY_H_ |
| 22 | #define TRIE_WITH_POLICY_H_ |
| 23 | |
Alexander Afanasyev | 0c39537 | 2014-12-20 15:54:02 -0800 | [diff] [blame] | 24 | #include "trie.hpp" |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 25 | |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 26 | namespace ns3 { |
| 27 | namespace ndn { |
| 28 | namespace ndnSIM { |
Alexander Afanasyev | 30cb117 | 2012-07-06 10:47:39 -0700 | [diff] [blame] | 29 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 30 | template<typename FullKey, typename PayloadTraits, typename PolicyTraits> |
| 31 | class trie_with_policy { |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 32 | public: |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 33 | typedef trie<FullKey, PayloadTraits, typename PolicyTraits::policy_hook_type> parent_trie; |
Alexander Afanasyev | 9e96e36 | 2012-07-02 23:04:39 -0700 | [diff] [blame] | 34 | |
| 35 | typedef typename parent_trie::iterator iterator; |
Alexander Afanasyev | 1ba09b8 | 2012-07-09 09:16:14 -0700 | [diff] [blame] | 36 | typedef typename parent_trie::const_iterator const_iterator; |
Alexander Afanasyev | 9e96e36 | 2012-07-02 23:04:39 -0700 | [diff] [blame] | 37 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 38 | typedef typename PolicyTraits:: |
| 39 | template policy<trie_with_policy<FullKey, PayloadTraits, PolicyTraits>, parent_trie, |
| 40 | typename PolicyTraits::template container_hook<parent_trie>::type>::type |
| 41 | policy_container; |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 42 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 43 | inline trie_with_policy(size_t bucketSize = 1, size_t bucketIncrement = 1) |
| 44 | : trie_(name::Component(), bucketSize, bucketIncrement) |
| 45 | , policy_(*this) |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 46 | { |
| 47 | } |
| 48 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 49 | inline std::pair<iterator, bool> |
| 50 | insert(const FullKey& key, typename PayloadTraits::insert_type payload) |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 51 | { |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 52 | std::pair<iterator, bool> item = trie_.insert(key, payload); |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 53 | |
| 54 | if (item.second) // real insert |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 55 | { |
| 56 | bool ok = policy_.insert(s_iterator_to(item.first)); |
| 57 | if (!ok) { |
| 58 | item.first->erase(); // cannot insert |
| 59 | return std::make_pair(end(), false); |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 60 | } |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 61 | } |
| 62 | else { |
| 63 | return std::make_pair(s_iterator_to(item.first), false); |
| 64 | } |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 65 | |
| 66 | return item; |
| 67 | } |
| 68 | |
| 69 | inline void |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 70 | erase(const FullKey& key) |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 71 | { |
| 72 | iterator foundItem, lastItem; |
| 73 | bool reachLast; |
Alexander Afanasyev | 0717901 | 2014-12-21 00:23:04 -0800 | [diff] [blame^] | 74 | std::tie(foundItem, reachLast, lastItem) = trie_.find(key); |
Alexander Afanasyev | eec6629 | 2013-02-06 16:23:21 -0800 | [diff] [blame] | 75 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 76 | if (!reachLast || lastItem->payload() == PayloadTraits::empty_payload) |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 77 | return; // nothing to invalidate |
| 78 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 79 | erase(lastItem); |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 80 | } |
| 81 | |
| 82 | inline void |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 83 | erase(iterator node) |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 84 | { |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 85 | if (node == end()) |
| 86 | return; |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 87 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 88 | policy_.erase(s_iterator_to(node)); |
| 89 | node->erase(); // will do cleanup here |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 90 | } |
| 91 | |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 92 | inline void |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 93 | clear() |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 94 | { |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 95 | policy_.clear(); |
| 96 | trie_.clear(); |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 97 | } |
| 98 | |
| 99 | template<typename Modifier> |
| 100 | bool |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 101 | modify(iterator position, Modifier mod) |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 102 | { |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 103 | if (position == end()) |
| 104 | return false; |
| 105 | if (position->payload() == PayloadTraits::empty_payload) |
| 106 | return false; |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 107 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 108 | mod(*position->payload()); |
| 109 | policy_.update(position); |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 110 | return true; |
| 111 | } |
Alexander Afanasyev | adcccf4 | 2012-11-26 23:55:34 -0800 | [diff] [blame] | 112 | |
| 113 | /** |
| 114 | * @brief Find a node that has the exact match with the key |
| 115 | */ |
| 116 | inline iterator |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 117 | find_exact(const FullKey& key) |
Alexander Afanasyev | adcccf4 | 2012-11-26 23:55:34 -0800 | [diff] [blame] | 118 | { |
| 119 | iterator foundItem, lastItem; |
| 120 | bool reachLast; |
Alexander Afanasyev | 0717901 | 2014-12-21 00:23:04 -0800 | [diff] [blame^] | 121 | std::tie(foundItem, reachLast, lastItem) = trie_.find(key); |
Alexander Afanasyev | eec6629 | 2013-02-06 16:23:21 -0800 | [diff] [blame] | 122 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 123 | if (!reachLast || lastItem->payload() == PayloadTraits::empty_payload) |
| 124 | return end(); |
Alexander Afanasyev | adcccf4 | 2012-11-26 23:55:34 -0800 | [diff] [blame] | 125 | |
| 126 | return lastItem; |
| 127 | } |
Alexander Afanasyev | eec6629 | 2013-02-06 16:23:21 -0800 | [diff] [blame] | 128 | |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 129 | /** |
| 130 | * @brief Find a node that has the longest common prefix with key (FIB/PIT lookup) |
| 131 | */ |
| 132 | inline iterator |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 133 | longest_prefix_match(const FullKey& key) |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 134 | { |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 135 | iterator foundItem, lastItem; |
| 136 | bool reachLast; |
Alexander Afanasyev | 0717901 | 2014-12-21 00:23:04 -0800 | [diff] [blame^] | 137 | std::tie(foundItem, reachLast, lastItem) = trie_.find(key); |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 138 | if (foundItem != trie_.end()) { |
| 139 | policy_.lookup(s_iterator_to(foundItem)); |
| 140 | } |
Alexander Afanasyev | 78057c3 | 2012-07-06 15:18:46 -0700 | [diff] [blame] | 141 | return foundItem; |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 142 | } |
| 143 | |
Alexander Afanasyev | eec6629 | 2013-02-06 16:23:21 -0800 | [diff] [blame] | 144 | /** |
| 145 | * @brief Find a node that has the longest common prefix with key (FIB/PIT lookup) |
| 146 | */ |
| 147 | template<class Predicate> |
| 148 | inline iterator |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 149 | longest_prefix_match_if(const FullKey& key, Predicate pred) |
Alexander Afanasyev | eec6629 | 2013-02-06 16:23:21 -0800 | [diff] [blame] | 150 | { |
| 151 | iterator foundItem, lastItem; |
| 152 | bool reachLast; |
Alexander Afanasyev | 0717901 | 2014-12-21 00:23:04 -0800 | [diff] [blame^] | 153 | std::tie(foundItem, reachLast, lastItem) = trie_.find_if(key, pred); |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 154 | if (foundItem != trie_.end()) { |
| 155 | policy_.lookup(s_iterator_to(foundItem)); |
| 156 | } |
Alexander Afanasyev | eec6629 | 2013-02-06 16:23:21 -0800 | [diff] [blame] | 157 | return foundItem; |
| 158 | } |
| 159 | |
Alexander Afanasyev | 30f60e3 | 2012-07-10 14:21:16 -0700 | [diff] [blame] | 160 | // /** |
| 161 | // * @brief Const version of the longest common prefix match |
| 162 | // * (semi-const, because there could be update of the policy anyways) |
| 163 | // */ |
| 164 | // inline const_iterator |
| 165 | // longest_prefix_match (const FullKey &key) const |
| 166 | // { |
| 167 | // return static_cast<trie_with_policy*> (this)->longest_prefix_match (key); |
| 168 | // } |
| 169 | |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 170 | /** |
| 171 | * @brief Find a node that has prefix at least as the key (cache lookup) |
| 172 | */ |
| 173 | inline iterator |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 174 | deepest_prefix_match(const FullKey& key) |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 175 | { |
| 176 | iterator foundItem, lastItem; |
| 177 | bool reachLast; |
Alexander Afanasyev | 0717901 | 2014-12-21 00:23:04 -0800 | [diff] [blame^] | 178 | std::tie(foundItem, reachLast, lastItem) = trie_.find(key); |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 179 | |
| 180 | // guard in case we don't have anything in the trie |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 181 | if (lastItem == trie_.end()) |
| 182 | return trie_.end(); |
Alexander Afanasyev | eec6629 | 2013-02-06 16:23:21 -0800 | [diff] [blame] | 183 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 184 | if (reachLast) { |
| 185 | if (foundItem == trie_.end()) { |
| 186 | foundItem = lastItem->find(); // should be something |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 187 | } |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 188 | policy_.lookup(s_iterator_to(foundItem)); |
| 189 | return foundItem; |
| 190 | } |
| 191 | else { // couldn't find a node that has prefix at least as key |
| 192 | return trie_.end(); |
| 193 | } |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 194 | } |
| 195 | |
| 196 | /** |
| 197 | * @brief Find a node that has prefix at least as the key |
| 198 | */ |
| 199 | template<class Predicate> |
| 200 | inline iterator |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 201 | deepest_prefix_match_if(const FullKey& key, Predicate pred) |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 202 | { |
| 203 | iterator foundItem, lastItem; |
| 204 | bool reachLast; |
Alexander Afanasyev | 0717901 | 2014-12-21 00:23:04 -0800 | [diff] [blame^] | 205 | std::tie(foundItem, reachLast, lastItem) = trie_.find(key); |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 206 | |
| 207 | // guard in case we don't have anything in the trie |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 208 | if (lastItem == trie_.end()) |
| 209 | return trie_.end(); |
Alexander Afanasyev | eec6629 | 2013-02-06 16:23:21 -0800 | [diff] [blame] | 210 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 211 | if (reachLast) { |
| 212 | foundItem = lastItem->find_if(pred); // may or may not find something |
| 213 | if (foundItem == trie_.end()) { |
| 214 | return trie_.end(); |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 215 | } |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 216 | policy_.lookup(s_iterator_to(foundItem)); |
| 217 | return foundItem; |
| 218 | } |
| 219 | else { // couldn't find a node that has prefix at least as key |
| 220 | return trie_.end(); |
| 221 | } |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 222 | } |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 223 | |
Alexander Afanasyev | eec89ba | 2013-07-19 16:34:30 -0700 | [diff] [blame] | 224 | /** |
| 225 | * @brief Find a node that has prefix at least as the key |
| 226 | * |
| 227 | * This version of find checks predicate for the next level and if |
| 228 | * predicate is True, returns first deepest match available |
| 229 | */ |
| 230 | template<class Predicate> |
| 231 | inline iterator |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 232 | deepest_prefix_match_if_next_level(const FullKey& key, Predicate pred) |
Alexander Afanasyev | eec89ba | 2013-07-19 16:34:30 -0700 | [diff] [blame] | 233 | { |
| 234 | iterator foundItem, lastItem; |
| 235 | bool reachLast; |
Alexander Afanasyev | 0717901 | 2014-12-21 00:23:04 -0800 | [diff] [blame^] | 236 | std::tie(foundItem, reachLast, lastItem) = trie_.find(key); |
Alexander Afanasyev | eec89ba | 2013-07-19 16:34:30 -0700 | [diff] [blame] | 237 | |
| 238 | // guard in case we don't have anything in the trie |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 239 | if (lastItem == trie_.end()) |
| 240 | return trie_.end(); |
Alexander Afanasyev | eec89ba | 2013-07-19 16:34:30 -0700 | [diff] [blame] | 241 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 242 | if (reachLast) { |
| 243 | foundItem = lastItem->find_if_next_level(pred); // may or may not find something |
| 244 | if (foundItem == trie_.end()) { |
| 245 | return trie_.end(); |
Alexander Afanasyev | eec89ba | 2013-07-19 16:34:30 -0700 | [diff] [blame] | 246 | } |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 247 | policy_.lookup(s_iterator_to(foundItem)); |
| 248 | return foundItem; |
| 249 | } |
| 250 | else { // couldn't find a node that has prefix at least as key |
| 251 | return trie_.end(); |
| 252 | } |
Alexander Afanasyev | eec89ba | 2013-07-19 16:34:30 -0700 | [diff] [blame] | 253 | } |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 254 | |
| 255 | iterator |
| 256 | end() const |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 257 | { |
| 258 | return 0; |
| 259 | } |
| 260 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 261 | const parent_trie& |
| 262 | getTrie() const |
| 263 | { |
| 264 | return trie_; |
| 265 | } |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 266 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 267 | parent_trie& |
| 268 | getTrie() |
| 269 | { |
| 270 | return trie_; |
| 271 | } |
Alexander Afanasyev | 44bb6ea | 2012-07-09 08:44:41 -0700 | [diff] [blame] | 272 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 273 | const policy_container& |
| 274 | getPolicy() const |
| 275 | { |
| 276 | return policy_; |
| 277 | } |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 278 | |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 279 | policy_container& |
| 280 | getPolicy() |
| 281 | { |
| 282 | return policy_; |
| 283 | } |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 284 | |
| 285 | static inline iterator |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 286 | s_iterator_to(typename parent_trie::iterator item) |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 287 | { |
| 288 | if (item == 0) |
| 289 | return 0; |
| 290 | else |
| 291 | return &(*item); |
| 292 | } |
Alexander Afanasyev | eec6629 | 2013-02-06 16:23:21 -0800 | [diff] [blame] | 293 | |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 294 | private: |
Alexander Afanasyev | be55cf6 | 2014-12-20 17:51:09 -0800 | [diff] [blame] | 295 | parent_trie trie_; |
Alexander Afanasyev | 30f60e3 | 2012-07-10 14:21:16 -0700 | [diff] [blame] | 296 | mutable policy_container policy_; |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 297 | }; |
| 298 | |
Alexander Afanasyev | 30cb117 | 2012-07-06 10:47:39 -0700 | [diff] [blame] | 299 | } // ndnSIM |
Alexander Afanasyev | 2b4c947 | 2012-08-09 15:00:38 -0700 | [diff] [blame] | 300 | } // ndn |
Alexander Afanasyev | e77db79 | 2012-08-09 11:10:58 -0700 | [diff] [blame] | 301 | } // ns3 |
Alexander Afanasyev | 9a98970 | 2012-06-29 17:44:00 -0700 | [diff] [blame] | 302 | |
| 303 | #endif // TRIE_WITH_POLICY_H_ |