A handle for a scheduled event. More...
#include <scheduler.hpp>
Public Member Functions | |
EventId () noexcept=default | |
Constructs an empty EventId. More... | |
operator bool () const noexcept | |
Determine whether the event is valid. More... | |
void | reset () noexcept |
Clear this EventId without canceling. More... | |
Public Member Functions inherited from ndn::detail::CancelHandle | |
CancelHandle () noexcept | |
CancelHandle (std::function< void()> cancel) noexcept | |
void | cancel () const |
Cancel the operation. More... | |
Friends | |
bool | operator== (const EventId &lhs, const EventId &rhs) noexcept |
Determine whether this and other refer to the same event, or are both empty/expired/cancelled. More... | |
bool | operator!= (const EventId &lhs, const EventId &rhs) noexcept |
std::ostream & | operator<< (std::ostream &os, const EventId &eventId) |
A handle for a scheduled event.
Definition at line 58 of file scheduler.hpp.
|
defaultnoexcept |
Constructs an empty EventId.
|
explicitnoexcept |
Determine whether the event is valid.
true | The event is valid. |
false | This EventId is empty, or the event is expired or cancelled. |
Definition at line 61 of file scheduler.cpp.
|
noexcept |
Clear this EventId without canceling.
Definition at line 68 of file scheduler.cpp.
Determine whether this and other refer to the same event, or are both empty/expired/cancelled.
Definition at line 86 of file scheduler.hpp.
Definition at line 94 of file scheduler.hpp.
|
friend |
Definition at line 74 of file scheduler.cpp.