22 #ifndef NDN_SELECTORS_HPP 23 #define NDN_SELECTORS_HPP 58 template<encoding::Tag TAG>
78 return m_minSuffixComponents;
87 return m_maxSuffixComponents;
96 return m_publisherPublicKeyLocator;
114 return m_childSelector;
127 return m_mustBeFresh;
144 int m_minSuffixComponents;
145 int m_maxSuffixComponents;
151 mutable Block m_wire;
158 #endif // NDN_SELECTORS_HPP void wireDecode(const Block &wire)
Decode the input from wire format.
Selectors & setMustBeFresh(bool mustBeFresh)
const int DEFAULT_CHILD_SELECTOR
Represents a TLV element of NDN packet format.
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
Selectors & setMaxSuffixComponents(int maxSuffixComponents)
Selectors & setExclude(const Exclude &exclude)
const KeyLocator & getPublisherPublicKeyLocator() const
Selectors & setChildSelector(int childSelector)
set ChildSelector
Selectors & setMinSuffixComponents(int minSuffixComponents)
const Exclude & getExclude() const
int getChildSelector() const
const Block & wireEncode() const
Encode to a wire format.
bool getMustBeFresh() const
Abstraction implementing Interest selectors.
bool operator==(const Selectors &other) const
int getMinSuffixComponents() const
bool operator!=(const Selectors &other) const
int getMaxSuffixComponents() const
Error(const char *expectedType, uint32_t actualType)
represents an error in TLV encoding or decoding
Represents Exclude selector in NDN Interest.
Selectors & setPublisherPublicKeyLocator(const KeyLocator &keyLocator)