ndn::Selectors Class Reference

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
 
int getChildSelector () const
 
const ExcludegetExclude () const
 
int getMaxSuffixComponents () const
 
int getMinSuffixComponents () const
 
int getMustBeFresh () const
 
const KeyLocatorgetPublisherPublicKeyLocator () const
 
bool operator!= (const Selectors &other) const
 
bool operator== (const Selectors &other) const
 
SelectorssetChildSelector (int childSelector)
 set ChildSelector More...
 
SelectorssetExclude (const Exclude &exclude)
 
SelectorssetMaxSuffixComponents (int maxSuffixComponents)
 
SelectorssetMinSuffixComponents (int minSuffixComponents)
 
SelectorssetMustBeFresh (bool mustBeFresh)
 
SelectorssetPublisherPublicKeyLocator (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 BlockwireEncode () const
 Encode to a wire format. More...
 

Detailed Description

Abstraction implementing Interest selectors.

Definition at line 36 of file selectors.hpp.

Constructor & Destructor Documentation

ndn::Selectors::Selectors ( )

Definition at line 35 of file selectors.cpp.

ndn::Selectors::Selectors ( const Block wire)
explicit

Create from wire encoding.

Definition at line 43 of file selectors.cpp.

Member Function Documentation

bool ndn::Selectors::empty ( ) const

Definition at line 49 of file selectors.cpp.

int ndn::Selectors::getChildSelector ( ) const
inline

Definition at line 117 of file selectors.hpp.

const Exclude& ndn::Selectors::getExclude ( ) const
inline

Definition at line 108 of file selectors.hpp.

int ndn::Selectors::getMaxSuffixComponents ( ) const
inline

Definition at line 90 of file selectors.hpp.

int ndn::Selectors::getMinSuffixComponents ( ) const
inline

Definition at line 81 of file selectors.hpp.

int ndn::Selectors::getMustBeFresh ( ) const
inline

Definition at line 130 of file selectors.hpp.

const KeyLocator& ndn::Selectors::getPublisherPublicKeyLocator ( ) const
inline

Definition at line 99 of file selectors.hpp.

bool ndn::Selectors::operator!= ( const Selectors other) const
inline

Definition at line 143 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

Exceptions
std::invalid_argumentChildSelector not 0 or 1

Definition at line 214 of file selectors.cpp.

Selectors & ndn::Selectors::setExclude ( const Exclude exclude)

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.

template<encoding::Tag TAG>
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.