All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ndn::Selectors Class Reference

Abstraction implementing Interest selectors. More...

#include <selectors.hpp>

Public Member Functions

 Selectors ()
 
 Selectors (int minSuffixComponents, int maxSuffixComponents, const Exclude &exclude, int childSelector, bool mustBeFresh)
 
 Selectors (const Block &wire)
 Create from wire encoding. More...
 
bool empty () const
 
template<bool T>
size_t wireEncode (EncodingImpl< T > &block) const
 Fast encoding or block size estimation. More...
 
const BlockwireEncode () const
 Encode to a wire format. More...
 
void wireDecode (const Block &wire)
 Decode the input from wire format. More...
 
int getMinSuffixComponents () const
 
SelectorssetMinSuffixComponents (int minSuffixComponents)
 
int getMaxSuffixComponents () const
 
SelectorssetMaxSuffixComponents (int maxSuffixComponents)
 
const KeyLocatorgetPublisherPublicKeyLocator () const
 
SelectorssetPublisherPublicKeyLocator (const KeyLocator &keyLocator)
 
const ExcludegetExclude () const
 
SelectorssetExclude (const Exclude &exclude)
 
int getChildSelector () const
 
SelectorssetChildSelector (int childSelector)
 
int getMustBeFresh () const
 
SelectorssetMustBeFresh (bool mustBeFresh)
 
bool operator== (const Selectors &other) const
 
bool operator!= (const Selectors &other) const
 

Detailed Description

Abstraction implementing Interest selectors.

Definition at line 20 of file selectors.hpp.

Constructor & Destructor Documentation

ndn::Selectors::Selectors ( )
inline

Definition at line 23 of file selectors.hpp.

ndn::Selectors::Selectors ( int  minSuffixComponents,
int  maxSuffixComponents,
const Exclude exclude,
int  childSelector,
bool  mustBeFresh 
)
inline
Deprecated:
Selectors().setX(...).setY(...)

Definition at line 33 of file selectors.hpp.

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

Create from wire encoding.

Definition at line 48 of file selectors.hpp.

Member Function Documentation

bool ndn::Selectors::empty ( ) const
inline

Definition at line 198 of file selectors.hpp.

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

Definition at line 144 of file selectors.hpp.

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

Definition at line 128 of file selectors.hpp.

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

Definition at line 96 of file selectors.hpp.

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

Definition at line 80 of file selectors.hpp.

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

Definition at line 160 of file selectors.hpp.

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

Definition at line 112 of file selectors.hpp.

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

Definition at line 181 of file selectors.hpp.

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

Definition at line 175 of file selectors.hpp.

Selectors& ndn::Selectors::setChildSelector ( int  childSelector)
inline

Definition at line 150 of file selectors.hpp.

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

Definition at line 134 of file selectors.hpp.

Selectors& ndn::Selectors::setMaxSuffixComponents ( int  maxSuffixComponents)
inline

Definition at line 102 of file selectors.hpp.

Selectors& ndn::Selectors::setMinSuffixComponents ( int  minSuffixComponents)
inline

Definition at line 86 of file selectors.hpp.

Selectors& ndn::Selectors::setMustBeFresh ( bool  mustBeFresh)
inline

Definition at line 166 of file selectors.hpp.

Selectors& ndn::Selectors::setPublisherPublicKeyLocator ( const KeyLocator keyLocator)
inline

Definition at line 118 of file selectors.hpp.

void ndn::Selectors::wireDecode ( const Block wire)
inline

Decode the input from wire format.

Definition at line 285 of file selectors.hpp.

template<bool T>
size_t ndn::Selectors::wireEncode ( EncodingImpl< T > &  block) const
inline

Fast encoding or block size estimation.

Definition at line 211 of file selectors.hpp.

const Block & ndn::Selectors::wireEncode ( ) const
inline

Encode to a wire format.

Definition at line 269 of file selectors.hpp.