NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::nfd::FaceQueryFilter Class Reference

represents Face Query Filter More...

#include <face-query-filter.hpp>

Classes

class  Error
 

Public Member Functions

 FaceQueryFilter ()
 
 FaceQueryFilter (const Block &block)
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 prepend FaceQueryFilter to the encoder More...
 
const BlockwireEncode () const
 encode FaceQueryFilter More...
 
void wireDecode (const Block &wire)
 decode FaceQueryFilter More...
 
bool empty () const
 
bool hasFaceId () const
 
uint64_t getFaceId () const
 
FaceQueryFiltersetFaceId (uint64_t faceId)
 
FaceQueryFilterunsetFaceId ()
 
bool hasUriScheme () const
 
const std::string & getUriScheme () const
 
FaceQueryFiltersetUriScheme (const std::string &uriScheme)
 
FaceQueryFilterunsetUriScheme ()
 
bool hasRemoteUri () const
 
const std::string & getRemoteUri () const
 
FaceQueryFiltersetRemoteUri (const std::string &remoteUri)
 
FaceQueryFilterunsetRemoteUri ()
 
bool hasLocalUri () const
 
const std::string & getLocalUri () const
 
FaceQueryFiltersetLocalUri (const std::string &localUri)
 
FaceQueryFilterunsetLocalUri ()
 
bool hasFaceScope () const
 
FaceScope getFaceScope () const
 
FaceQueryFiltersetFaceScope (FaceScope faceScope)
 
FaceQueryFilterunsetFaceScope ()
 
bool hasFacePersistency () const
 
FacePersistency getFacePersistency () const
 
FaceQueryFiltersetFacePersistency (FacePersistency facePersistency)
 
FaceQueryFilterunsetFacePersistency ()
 
bool hasLinkType () const
 
LinkType getLinkType () const
 
FaceQueryFiltersetLinkType (LinkType linkType)
 
FaceQueryFilterunsetLinkType ()
 

Detailed Description

Constructor & Destructor Documentation

◆ FaceQueryFilter() [1/2]

ndn::nfd::FaceQueryFilter::FaceQueryFilter ( )
default

◆ FaceQueryFilter() [2/2]

ndn::nfd::FaceQueryFilter::FaceQueryFilter ( const Block block)
explicit

Definition at line 38 of file face-query-filter.cpp.

References wireDecode().

Member Function Documentation

◆ wireEncode() [1/2]

◆ wireEncode() [2/2]

const Block & ndn::nfd::FaceQueryFilter::wireEncode ( ) const

encode FaceQueryFilter

Definition at line 89 of file face-query-filter.cpp.

References ndn::Block::hasWire().

◆ wireDecode()

◆ empty()

bool ndn::nfd::FaceQueryFilter::empty ( ) const
Returns
whether the filter is empty

Definition at line 175 of file face-query-filter.cpp.

References hasFaceId(), hasFacePersistency(), hasFaceScope(), hasLinkType(), hasLocalUri(), hasRemoteUri(), and hasUriScheme().

◆ hasFaceId()

bool ndn::nfd::FaceQueryFilter::hasFaceId ( ) const
inline

◆ getFaceId()

uint64_t ndn::nfd::FaceQueryFilter::getFaceId ( ) const
inline

Definition at line 79 of file face-query-filter.hpp.

References hasFaceId().

Referenced by nfd::matchFilter(), ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setFaceId()

FaceQueryFilter & ndn::nfd::FaceQueryFilter::setFaceId ( uint64_t  faceId)

Definition at line 187 of file face-query-filter.cpp.

References ndn::Block::reset().

◆ unsetFaceId()

FaceQueryFilter & ndn::nfd::FaceQueryFilter::unsetFaceId ( )

Definition at line 195 of file face-query-filter.cpp.

References nonstd::optional_lite::nullopt, and ndn::Block::reset().

◆ hasUriScheme()

bool ndn::nfd::FaceQueryFilter::hasUriScheme ( ) const
inline

◆ getUriScheme()

const std::string& ndn::nfd::FaceQueryFilter::getUriScheme ( ) const
inline

Definition at line 98 of file face-query-filter.hpp.

References hasUriScheme().

Referenced by nfd::matchFilter(), ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setUriScheme()

FaceQueryFilter & ndn::nfd::FaceQueryFilter::setUriScheme ( const std::string &  uriScheme)

Definition at line 203 of file face-query-filter.cpp.

References ndn::Block::reset().

Referenced by unsetUriScheme().

◆ unsetUriScheme()

FaceQueryFilter & ndn::nfd::FaceQueryFilter::unsetUriScheme ( )

Definition at line 211 of file face-query-filter.cpp.

References setUriScheme().

◆ hasRemoteUri()

bool ndn::nfd::FaceQueryFilter::hasRemoteUri ( ) const
inline

◆ getRemoteUri()

const std::string& ndn::nfd::FaceQueryFilter::getRemoteUri ( ) const
inline

Definition at line 117 of file face-query-filter.hpp.

References hasRemoteUri().

Referenced by nfd::matchFilter(), ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setRemoteUri()

FaceQueryFilter & ndn::nfd::FaceQueryFilter::setRemoteUri ( const std::string &  remoteUri)

Definition at line 217 of file face-query-filter.cpp.

References ndn::Block::reset().

Referenced by unsetRemoteUri().

◆ unsetRemoteUri()

FaceQueryFilter & ndn::nfd::FaceQueryFilter::unsetRemoteUri ( )

Definition at line 225 of file face-query-filter.cpp.

References setRemoteUri().

◆ hasLocalUri()

bool ndn::nfd::FaceQueryFilter::hasLocalUri ( ) const
inline

◆ getLocalUri()

const std::string& ndn::nfd::FaceQueryFilter::getLocalUri ( ) const
inline

Definition at line 136 of file face-query-filter.hpp.

References hasLocalUri().

Referenced by nfd::matchFilter(), ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setLocalUri()

FaceQueryFilter & ndn::nfd::FaceQueryFilter::setLocalUri ( const std::string &  localUri)

Definition at line 231 of file face-query-filter.cpp.

References ndn::Block::reset().

Referenced by unsetLocalUri().

◆ unsetLocalUri()

FaceQueryFilter & ndn::nfd::FaceQueryFilter::unsetLocalUri ( )

Definition at line 239 of file face-query-filter.cpp.

References setLocalUri().

◆ hasFaceScope()

bool ndn::nfd::FaceQueryFilter::hasFaceScope ( ) const
inline

◆ getFaceScope()

FaceScope ndn::nfd::FaceQueryFilter::getFaceScope ( ) const
inline

Definition at line 155 of file face-query-filter.hpp.

References hasFaceScope().

Referenced by nfd::matchFilter(), ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setFaceScope()

FaceQueryFilter & ndn::nfd::FaceQueryFilter::setFaceScope ( FaceScope  faceScope)

Definition at line 245 of file face-query-filter.cpp.

References ndn::Block::reset().

◆ unsetFaceScope()

FaceQueryFilter & ndn::nfd::FaceQueryFilter::unsetFaceScope ( )

Definition at line 253 of file face-query-filter.cpp.

References nonstd::optional_lite::nullopt, and ndn::Block::reset().

◆ hasFacePersistency()

bool ndn::nfd::FaceQueryFilter::hasFacePersistency ( ) const
inline

◆ getFacePersistency()

FacePersistency ndn::nfd::FaceQueryFilter::getFacePersistency ( ) const
inline

◆ setFacePersistency()

FaceQueryFilter & ndn::nfd::FaceQueryFilter::setFacePersistency ( FacePersistency  facePersistency)

Definition at line 261 of file face-query-filter.cpp.

References ndn::Block::reset().

◆ unsetFacePersistency()

FaceQueryFilter & ndn::nfd::FaceQueryFilter::unsetFacePersistency ( )

Definition at line 269 of file face-query-filter.cpp.

References nonstd::optional_lite::nullopt, and ndn::Block::reset().

◆ hasLinkType()

bool ndn::nfd::FaceQueryFilter::hasLinkType ( ) const
inline

◆ getLinkType()

LinkType ndn::nfd::FaceQueryFilter::getLinkType ( ) const
inline

Definition at line 193 of file face-query-filter.hpp.

References hasLinkType().

Referenced by nfd::matchFilter(), ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setLinkType()

FaceQueryFilter & ndn::nfd::FaceQueryFilter::setLinkType ( LinkType  linkType)

Definition at line 277 of file face-query-filter.cpp.

References ndn::Block::reset().

◆ unsetLinkType()

FaceQueryFilter & ndn::nfd::FaceQueryFilter::unsetLinkType ( )

Definition at line 285 of file face-query-filter.cpp.

References nonstd::optional_lite::nullopt, and ndn::Block::reset().


The documentation for this class was generated from the following files: