ndn::InterestFilterHandle Class Reference

A handle of registered Interest filter. More...

#include <ndn-cxx/face.hpp>

+ Inheritance diagram for ndn::InterestFilterHandle:
+ Collaboration diagram for ndn::InterestFilterHandle:

Public Member Functions

 InterestFilterHandle () noexcept=default
 
 InterestFilterHandle (Face &face, const InterestFilterId *id)
 
void cancel () const
 Cancel the operation. More...
 

Detailed Description

A handle of registered Interest filter.

InterestFilterHandle hdl = face.setInterestFilter(prefix, onInterest);
hdl.cancel(); // unset the Interest filter
Warning
Unsetting an Interest filter after the face has been destructed may trigger undefined behavior.

Definition at line 624 of file face.hpp.

Constructor & Destructor Documentation

◆ InterestFilterHandle() [1/2]

ndn::InterestFilterHandle::InterestFilterHandle ( )
defaultnoexcept

◆ InterestFilterHandle() [2/2]

ndn::InterestFilterHandle::InterestFilterHandle ( Face face,
const InterestFilterId *  id 
)

Definition at line 409 of file face.cpp.

Member Function Documentation

◆ cancel()

void ndn::detail::CancelHandle::cancel ( ) const
inherited

Cancel the operation.

Definition at line 28 of file cancel-handle.cpp.