Abstraction implementing Interest selectors. More...
#include <selectors.hpp>
Classes | |
| class | Error |
Public Member Functions | |
| Selectors () | |
| Selectors (const Block &wire) | |
| Create from wire encoding. More... | |
| bool | empty () const |
| template<encoding::Tag TAG> | |
| size_t | wireEncode (EncodingImpl< TAG > &encoder) const |
| Fast encoding or block size estimation. More... | |
| const Block & | wireEncode () const |
| Encode to a wire format. More... | |
| void | wireDecode (const Block &wire) |
| Decode the input from wire format. More... | |
| int | getMinSuffixComponents () const |
| Selectors & | setMinSuffixComponents (int minSuffixComponents) |
| int | getMaxSuffixComponents () const |
| Selectors & | setMaxSuffixComponents (int maxSuffixComponents) |
| const KeyLocator & | getPublisherPublicKeyLocator () const |
| Selectors & | setPublisherPublicKeyLocator (const KeyLocator &keyLocator) |
| const Exclude & | getExclude () const |
| Selectors & | setExclude (const Exclude &exclude) |
| int | getChildSelector () const |
| Selectors & | setChildSelector (int childSelector) |
| int | getMustBeFresh () const |
| Selectors & | setMustBeFresh (bool mustBeFresh) |
| bool | operator== (const Selectors &other) const |
| bool | operator!= (const Selectors &other) const |
Abstraction implementing Interest selectors.
Definition at line 34 of file selectors.hpp.
| ndn::Selectors::Selectors | ( | ) |
Definition at line 35 of file selectors.cpp.
Referenced by ndn::Selectors::Error::Error(), and wireDecode().
|
explicit |
| bool ndn::Selectors::empty | ( | ) | const |
Definition at line 49 of file selectors.cpp.
References ndn::KeyLocator::empty(), and ndn::Exclude::empty().
Referenced by ndn::Selectors::Error::Error(), and wireEncode().
| size_t ndn::Selectors::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
Fast encoding or block size estimation.
Definition at line 61 of file selectors.cpp.
References ndn::tlv::ChildSelector, empty(), getChildSelector(), getExclude(), getMaxSuffixComponents(), getMinSuffixComponents(), getMustBeFresh(), getPublisherPublicKeyLocator(), ndn::tlv::MaxSuffixComponents, ndn::tlv::MinSuffixComponents, ndn::tlv::MustBeFresh, ndn::encoding::prependEmptyBlock(), ndn::encoding::prependNonNegativeIntegerBlock(), ndn::tlv::Selectors, ndn::Exclude::wireEncode(), and ndn::KeyLocator::wireEncode().
Referenced by operator==(), and ndn::Interest::wireEncode().
| const Block & ndn::Selectors::wireEncode | ( | ) | const |
Encode to a wire format.
Definition at line 119 of file selectors.cpp.
References ndn::Block::hasWire().
Referenced by ndn::Selectors::Error::Error(), and operator==().
| void ndn::Selectors::wireDecode | ( | const Block & | wire | ) |
Decode the input from wire format.
Definition at line 135 of file selectors.cpp.
References ndn::tlv::ChildSelector, ndn::Block::elements_end(), ndn::tlv::Exclude, ndn::Block::find(), ndn::tlv::KeyLocator, ndn::tlv::MaxSuffixComponents, ndn::tlv::MinSuffixComponents, ndn::tlv::MustBeFresh, ndn::Block::parse(), ndn::encoding::readNonNegativeInteger(), Selectors(), ndn::tlv::Selectors, ndn::Block::type(), ndn::Exclude::wireDecode(), and ndn::KeyLocator::wireDecode().
Referenced by ndn::Selectors::Error::Error(), Selectors(), and ndn::Interest::wireDecode().
|
inline |
Definition at line 79 of file selectors.hpp.
References setMinSuffixComponents().
Referenced by wireEncode().
| Selectors & ndn::Selectors::setMinSuffixComponents | ( | int | minSuffixComponents | ) |
Definition at line 183 of file selectors.cpp.
References ndn::Block::reset().
Referenced by getMinSuffixComponents().
|
inline |
Definition at line 88 of file selectors.hpp.
References setMaxSuffixComponents().
Referenced by wireEncode().
| Selectors & ndn::Selectors::setMaxSuffixComponents | ( | int | maxSuffixComponents | ) |
Definition at line 191 of file selectors.cpp.
References ndn::Block::reset().
Referenced by getMaxSuffixComponents().
|
inline |
Definition at line 97 of file selectors.hpp.
References setPublisherPublicKeyLocator().
Referenced by wireEncode().
| Selectors & ndn::Selectors::setPublisherPublicKeyLocator | ( | const KeyLocator & | keyLocator | ) |
Definition at line 199 of file selectors.cpp.
References ndn::Block::reset().
Referenced by getPublisherPublicKeyLocator().
|
inline |
Definition at line 207 of file selectors.cpp.
References ndn::Block::reset().
Referenced by getExclude().
|
inline |
Definition at line 115 of file selectors.hpp.
References setChildSelector().
Referenced by wireEncode().
| Selectors & ndn::Selectors::setChildSelector | ( | int | childSelector | ) |
Definition at line 215 of file selectors.cpp.
References ndn::Block::reset().
Referenced by getChildSelector().
|
inline |
Definition at line 124 of file selectors.hpp.
References operator==(), and setMustBeFresh().
Referenced by wireEncode().
| Selectors & ndn::Selectors::setMustBeFresh | ( | bool | mustBeFresh | ) |
Definition at line 223 of file selectors.cpp.
References ndn::Block::reset().
Referenced by getMustBeFresh().
| bool ndn::Selectors::operator== | ( | const Selectors & | other | ) | const |
Definition at line 231 of file selectors.cpp.
References wireEncode().
Referenced by getMustBeFresh(), and operator!=().
|
inline |
Definition at line 137 of file selectors.hpp.
References operator==().