22 #ifndef NDN_SELECTORS_HPP 23 #define NDN_SELECTORS_HPP 63 template<encoding::Tag TAG>
83 return m_minSuffixComponents;
92 return m_maxSuffixComponents;
101 return m_publisherPublicKeyLocator;
119 return m_childSelector;
132 return m_mustBeFresh;
149 int m_minSuffixComponents;
150 int m_maxSuffixComponents;
156 mutable Block m_wire;
163 #endif // NDN_SELECTORS_HPP void wireDecode(const Block &wire)
Decode the input from wire format.
Copyright (c) 2013-2017 Regents of the University of California.
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)
import common constructs for ndn-cxx library internal use
Selectors & setMaxSuffixComponents(int maxSuffixComponents)
Selectors & setExclude(const Exclude &exclude)
const KeyLocator & getPublisherPublicKeyLocator() const
Selectors & setChildSelector(int childSelector)
set ChildSelector
Error(const std::string &what)
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
represents an error in TLV encoding or decoding
Represents Exclude selector in NDN Interest.
Selectors & setPublisherPublicKeyLocator(const KeyLocator &keyLocator)