Abstraction implementing Interest selectors. More...
#include <ndn-cxx/selectors.hpp>
Classes | |
class | Error |
Public Member Functions | |
Selectors () | |
Selectors (const Block &wire) | |
Create from wire encoding. More... | |
bool | empty () const |
int | getChildSelector () const |
const Exclude & | getExclude () const |
int | getMaxSuffixComponents () const |
int | getMinSuffixComponents () const |
bool | getMustBeFresh () const |
const KeyLocator & | getPublisherPublicKeyLocator () const |
bool | operator!= (const Selectors &other) const |
bool | operator== (const Selectors &other) const |
Selectors & | setChildSelector (int childSelector) |
set ChildSelector More... | |
Selectors & | setExclude (const Exclude &exclude) |
Selectors & | setMaxSuffixComponents (int maxSuffixComponents) |
Selectors & | setMinSuffixComponents (int minSuffixComponents) |
Selectors & | setMustBeFresh (bool mustBeFresh) |
Selectors & | setPublisherPublicKeyLocator (const KeyLocator &keyLocator) |
void | wireDecode (const Block &wire) |
Decode the input from wire format. More... | |
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... | |
Abstraction implementing Interest selectors.
Definition at line 35 of file selectors.hpp.
ndn::Selectors::Selectors | ( | ) |
Definition at line 35 of file selectors.cpp.
|
explicit |
Create from wire encoding.
Definition at line 43 of file selectors.cpp.
bool ndn::Selectors::empty | ( | ) | const |
Definition at line 49 of file selectors.cpp.
|
inline |
Definition at line 112 of file selectors.hpp.
|
inline |
Definition at line 103 of file selectors.hpp.
|
inline |
Definition at line 85 of file selectors.hpp.
|
inline |
Definition at line 76 of file selectors.hpp.
|
inline |
Definition at line 125 of file selectors.hpp.
|
inline |
Definition at line 94 of file selectors.hpp.
|
inline |
Definition at line 138 of file selectors.hpp.
bool ndn::Selectors::operator== | ( | const Selectors & | other | ) | const |
Definition at line 233 of file selectors.cpp.
Selectors & ndn::Selectors::setChildSelector | ( | int | childSelector | ) |
set ChildSelector
std::invalid_argument | ChildSelector not 0 or 1 |
Definition at line 214 of file selectors.cpp.
Definition at line 206 of file selectors.cpp.
Selectors & ndn::Selectors::setMaxSuffixComponents | ( | int | maxSuffixComponents | ) |
Definition at line 190 of file selectors.cpp.
Selectors & ndn::Selectors::setMinSuffixComponents | ( | int | minSuffixComponents | ) |
Definition at line 182 of file selectors.cpp.
Selectors & ndn::Selectors::setMustBeFresh | ( | bool | mustBeFresh | ) |
Definition at line 225 of file selectors.cpp.
Selectors & ndn::Selectors::setPublisherPublicKeyLocator | ( | const KeyLocator & | keyLocator | ) |
Definition at line 198 of file selectors.cpp.
void ndn::Selectors::wireDecode | ( | const Block & | wire | ) |
Decode the input from wire format.
Definition at line 131 of file selectors.cpp.
size_t ndn::Selectors::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
Fast encoding or block size estimation.
Definition at line 61 of file selectors.cpp.
const Block & ndn::Selectors::wireEncode | ( | ) | const |
Encode to a wire format.
Definition at line 115 of file selectors.cpp.