A scoped handle of scheduled event. More...
#include <scheduler.hpp>
Public Member Functions | |
ScopedEventId () noexcept=default | |
ScopedEventId (Scheduler &scheduler) noexcept | |
Public Member Functions inherited from ndn::detail::ScopedCancelHandle | |
ScopedCancelHandle () noexcept=default | |
ScopedCancelHandle (CancelHandle hdl) | |
Implicit constructor from CancelHandle. More... | |
ScopedCancelHandle (const ScopedCancelHandle &)=delete | |
Copy construction is disallowed. More... | |
ScopedCancelHandle (ScopedCancelHandle &&other) | |
Move constructor. More... | |
ScopedCancelHandle & | operator= (const ScopedCancelHandle &)=delete |
Copy assignment is disallowed. More... | |
ScopedCancelHandle & | operator= (ScopedCancelHandle &&other) |
Move assignment operator. More... | |
~ScopedCancelHandle () | |
Cancel the operation. More... | |
void | cancel () |
Cancel the operation. More... | |
CancelHandle | release () |
Release the operation so that it won't be cancelled when this ScopedCancelHandle is destructed. More... | |
A scoped handle of scheduled event.
Upon destruction of this handle, the event is canceled automatically. Most commonly, the application keeps a ScopedEventId as a class member field, so that it can cleanup its event when the class instance is destructed.
Definition at line 123 of file scheduler.hpp.
|
defaultnoexcept |
|
inlineexplicitnoexcept |
Use default construction instead.
Definition at line 134 of file scheduler.hpp.