Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /** |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 3 | * Copyright (C) 2013-2014 Regents of the University of California. |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #ifndef NDN_SELECTORS_HPP |
| 8 | #define NDN_SELECTORS_HPP |
| 9 | |
| 10 | #include "common.hpp" |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 11 | #include "key-locator.hpp" |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 12 | #include "exclude.hpp" |
| 13 | #include "encoding/encoding-buffer.hpp" |
| 14 | |
| 15 | namespace ndn { |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 16 | |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 17 | /** |
| 18 | * @brief Abstraction implementing Interest selectors |
| 19 | */ |
| 20 | class Selectors |
| 21 | { |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 22 | public: |
| 23 | Selectors() |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 24 | : m_minSuffixComponents(-1) |
| 25 | , m_maxSuffixComponents(-1) |
| 26 | , m_childSelector(-1) |
| 27 | , m_mustBeFresh(false) |
| 28 | { |
| 29 | } |
| 30 | |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 31 | /** @deprecated Selectors().setX(...).setY(...) |
| 32 | */ |
| 33 | Selectors(int minSuffixComponents, int maxSuffixComponents, |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 34 | const Exclude& exclude, |
| 35 | int childSelector, |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 36 | bool mustBeFresh) |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 37 | : m_minSuffixComponents(minSuffixComponents) |
| 38 | , m_maxSuffixComponents(maxSuffixComponents) |
| 39 | , m_exclude(exclude) |
| 40 | , m_childSelector(childSelector) |
| 41 | , m_mustBeFresh(mustBeFresh) |
| 42 | { |
| 43 | } |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 44 | |
Alexander Afanasyev | fdbfc6d | 2014-04-14 15:12:11 -0700 | [diff] [blame^] | 45 | /** |
| 46 | * @brief Create from wire encoding |
| 47 | */ |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 48 | Selectors(const Block& wire) |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 49 | { |
| 50 | wireDecode(wire); |
| 51 | } |
| 52 | |
| 53 | bool |
| 54 | empty() const; |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 55 | |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 56 | /** |
| 57 | * @brief Fast encoding or block size estimation |
| 58 | */ |
| 59 | template<bool T> |
| 60 | size_t |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 61 | wireEncode(EncodingImpl<T>& block) const; |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 62 | |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 63 | /** |
| 64 | * @brief Encode to a wire format |
| 65 | */ |
| 66 | const Block& |
| 67 | wireEncode() const; |
| 68 | |
| 69 | /** |
| 70 | * @brief Decode the input from wire format |
| 71 | */ |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 72 | void |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 73 | wireDecode(const Block& wire); |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 74 | |
| 75 | /////////////////////////////////////////////////////////////////////////////// |
| 76 | /////////////////////////////////////////////////////////////////////////////// |
| 77 | /////////////////////////////////////////////////////////////////////////////// |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 78 | |
| 79 | int |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 80 | getMinSuffixComponents() const |
| 81 | { |
| 82 | return m_minSuffixComponents; |
| 83 | } |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 84 | |
| 85 | Selectors& |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 86 | setMinSuffixComponents(int minSuffixComponents) |
| 87 | { |
| 88 | m_minSuffixComponents = minSuffixComponents; |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 89 | m_wire.reset(); |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 90 | return *this; |
| 91 | } |
| 92 | |
| 93 | // |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 94 | |
| 95 | int |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 96 | getMaxSuffixComponents() const |
| 97 | { |
| 98 | return m_maxSuffixComponents; |
| 99 | } |
| 100 | |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 101 | Selectors& |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 102 | setMaxSuffixComponents(int maxSuffixComponents) |
| 103 | { |
| 104 | m_maxSuffixComponents = maxSuffixComponents; |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 105 | m_wire.reset(); |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 106 | return *this; |
| 107 | } |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 108 | |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 109 | // |
| 110 | |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 111 | const KeyLocator& |
| 112 | getPublisherPublicKeyLocator() const |
| 113 | { |
| 114 | return m_publisherPublicKeyLocator; |
| 115 | } |
| 116 | |
| 117 | Selectors& |
| 118 | setPublisherPublicKeyLocator(const KeyLocator& keyLocator) |
| 119 | { |
| 120 | m_publisherPublicKeyLocator = keyLocator; |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 121 | m_wire.reset(); |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 122 | return *this; |
| 123 | } |
| 124 | |
| 125 | // |
| 126 | |
| 127 | const Exclude& |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 128 | getExclude() const |
| 129 | { |
| 130 | return m_exclude; |
| 131 | } |
| 132 | |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 133 | Selectors& |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 134 | setExclude(const Exclude& exclude) |
| 135 | { |
| 136 | m_exclude = exclude; |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 137 | m_wire.reset(); |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 138 | return *this; |
| 139 | } |
| 140 | |
| 141 | // |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 142 | |
| 143 | int |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 144 | getChildSelector() const |
| 145 | { |
| 146 | return m_childSelector; |
| 147 | } |
| 148 | |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 149 | Selectors& |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 150 | setChildSelector(int childSelector) |
| 151 | { |
| 152 | m_childSelector = childSelector; |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 153 | m_wire.reset(); |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 154 | return *this; |
| 155 | } |
| 156 | |
| 157 | // |
| 158 | |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 159 | int |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 160 | getMustBeFresh() const |
| 161 | { |
| 162 | return m_mustBeFresh; |
| 163 | } |
| 164 | |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 165 | Selectors& |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 166 | setMustBeFresh(bool mustBeFresh) |
| 167 | { |
| 168 | m_mustBeFresh = mustBeFresh; |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 169 | m_wire.reset(); |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 170 | return *this; |
| 171 | } |
| 172 | |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 173 | public: // EqualityComparable concept |
| 174 | bool |
| 175 | operator==(const Selectors& other) const |
| 176 | { |
| 177 | return wireEncode() == other.wireEncode(); |
| 178 | } |
| 179 | |
| 180 | bool |
| 181 | operator!=(const Selectors& other) const |
| 182 | { |
| 183 | return !(*this == other); |
| 184 | } |
| 185 | |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 186 | private: |
| 187 | int m_minSuffixComponents; |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 188 | int m_maxSuffixComponents; |
| 189 | KeyLocator m_publisherPublicKeyLocator; |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 190 | Exclude m_exclude; |
| 191 | int m_childSelector; |
| 192 | bool m_mustBeFresh; |
| 193 | |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 194 | mutable Block m_wire; |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 195 | }; |
| 196 | |
| 197 | inline bool |
| 198 | Selectors::empty() const |
| 199 | { |
| 200 | return |
| 201 | (m_minSuffixComponents < 0 && |
| 202 | m_maxSuffixComponents < 0 && |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 203 | m_publisherPublicKeyLocator.empty() && |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 204 | m_exclude.empty() && |
| 205 | m_childSelector < 0 && |
| 206 | !m_mustBeFresh); |
| 207 | } |
| 208 | |
| 209 | template<bool T> |
| 210 | inline size_t |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 211 | Selectors::wireEncode(EncodingImpl<T>& block) const |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 212 | { |
Alexander Afanasyev | fdbfc6d | 2014-04-14 15:12:11 -0700 | [diff] [blame^] | 213 | size_t totalLength = 0; |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 214 | |
| 215 | // Selectors ::= SELECTORS-TYPE TLV-LENGTH |
| 216 | // MinSuffixComponents? |
| 217 | // MaxSuffixComponents? |
| 218 | // PublisherPublicKeyLocator? |
| 219 | // Exclude? |
| 220 | // ChildSelector? |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 221 | // MustBeFresh? |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 222 | |
| 223 | // (reverse encoding) |
| 224 | |
| 225 | // MustBeFresh |
| 226 | if (getMustBeFresh()) |
| 227 | { |
Alexander Afanasyev | fdbfc6d | 2014-04-14 15:12:11 -0700 | [diff] [blame^] | 228 | totalLength += prependBooleanBlock(block, Tlv::MustBeFresh); |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 229 | } |
| 230 | |
| 231 | // ChildSelector |
| 232 | if (getChildSelector() >= 0) |
| 233 | { |
Alexander Afanasyev | fdbfc6d | 2014-04-14 15:12:11 -0700 | [diff] [blame^] | 234 | totalLength += prependNonNegativeIntegerBlock(block, Tlv::ChildSelector, getChildSelector()); |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 235 | } |
| 236 | |
| 237 | // Exclude |
| 238 | if (!getExclude().empty()) |
| 239 | { |
Alexander Afanasyev | fdbfc6d | 2014-04-14 15:12:11 -0700 | [diff] [blame^] | 240 | totalLength += getExclude().wireEncode(block); |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 241 | } |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 242 | |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 243 | // PublisherPublicKeyLocator |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 244 | if (!getPublisherPublicKeyLocator().empty()) |
| 245 | { |
Alexander Afanasyev | fdbfc6d | 2014-04-14 15:12:11 -0700 | [diff] [blame^] | 246 | totalLength += getPublisherPublicKeyLocator().wireEncode(block); |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 247 | } |
| 248 | |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 249 | // MaxSuffixComponents |
| 250 | if (getMaxSuffixComponents() >= 0) |
| 251 | { |
Alexander Afanasyev | fdbfc6d | 2014-04-14 15:12:11 -0700 | [diff] [blame^] | 252 | totalLength += prependNonNegativeIntegerBlock(block, Tlv::MaxSuffixComponents, |
| 253 | getMaxSuffixComponents()); |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 254 | } |
| 255 | |
| 256 | // MinSuffixComponents |
| 257 | if (getMinSuffixComponents() >= 0) |
| 258 | { |
Alexander Afanasyev | fdbfc6d | 2014-04-14 15:12:11 -0700 | [diff] [blame^] | 259 | totalLength += prependNonNegativeIntegerBlock(block, Tlv::MinSuffixComponents, |
| 260 | getMinSuffixComponents()); |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 261 | } |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 262 | |
Alexander Afanasyev | fdbfc6d | 2014-04-14 15:12:11 -0700 | [diff] [blame^] | 263 | totalLength += block.prependVarNumber(totalLength); |
| 264 | totalLength += block.prependVarNumber(Tlv::Selectors); |
| 265 | return totalLength; |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 266 | } |
| 267 | |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 268 | inline const Block& |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 269 | Selectors::wireEncode() const |
| 270 | { |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 271 | if (m_wire.hasWire()) |
| 272 | return m_wire; |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 273 | |
| 274 | EncodingEstimator estimator; |
| 275 | size_t estimatedSize = wireEncode(estimator); |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 276 | |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 277 | EncodingBuffer buffer(estimatedSize, 0); |
| 278 | wireEncode(buffer); |
| 279 | |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 280 | m_wire = buffer.block(); |
| 281 | return m_wire; |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 282 | } |
| 283 | |
| 284 | inline void |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 285 | Selectors::wireDecode(const Block& wire) |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 286 | { |
| 287 | if (wire.type() != Tlv::Selectors) |
| 288 | throw Tlv::Error("Unexpected TLV type when decoding Selectors"); |
| 289 | |
| 290 | *this = Selectors(); |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 291 | |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 292 | m_wire = wire; |
| 293 | m_wire.parse(); |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 294 | |
| 295 | // MinSuffixComponents |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 296 | Block::element_const_iterator val = m_wire.find(Tlv::MinSuffixComponents); |
| 297 | if (val != m_wire.elements_end()) |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 298 | { |
| 299 | m_minSuffixComponents = readNonNegativeInteger(*val); |
| 300 | } |
| 301 | |
| 302 | // MaxSuffixComponents |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 303 | val = m_wire.find(Tlv::MaxSuffixComponents); |
| 304 | if (val != m_wire.elements_end()) |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 305 | { |
| 306 | m_maxSuffixComponents = readNonNegativeInteger(*val); |
| 307 | } |
| 308 | |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 309 | // PublisherPublicKeyLocator |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 310 | val = m_wire.find(Tlv::KeyLocator); |
| 311 | if (val != m_wire.elements_end()) |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 312 | { |
| 313 | m_publisherPublicKeyLocator.wireDecode(*val); |
| 314 | } |
| 315 | |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 316 | // Exclude |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 317 | val = m_wire.find(Tlv::Exclude); |
| 318 | if (val != m_wire.elements_end()) |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 319 | { |
| 320 | m_exclude.wireDecode(*val); |
| 321 | } |
| 322 | |
| 323 | // ChildSelector |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 324 | val = m_wire.find(Tlv::ChildSelector); |
| 325 | if (val != m_wire.elements_end()) |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 326 | { |
| 327 | m_childSelector = readNonNegativeInteger(*val); |
| 328 | } |
| 329 | |
| 330 | //MustBeFresh aka AnswerOriginKind |
Alexander Afanasyev | ff2d08f | 2014-04-07 18:28:25 -0700 | [diff] [blame] | 331 | val = m_wire.find(Tlv::MustBeFresh); |
| 332 | if (val != m_wire.elements_end()) |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 333 | { |
| 334 | m_mustBeFresh = true; |
| 335 | } |
| 336 | } |
Junxiao Shi | b332e78 | 2014-03-31 14:23:46 -0700 | [diff] [blame] | 337 | |
Alexander Afanasyev | c348f83 | 2014-02-17 16:35:17 -0800 | [diff] [blame] | 338 | } // namespace ndn |
| 339 | |
| 340 | #endif // NDN_SELECTORS_HPP |