A handle of scheduled event. More...
#include <scheduler.hpp>
Public Member Functions | |
EventId () noexcept=default | |
Constructs an empty EventId. More... | |
EventId (std::nullptr_t) noexcept | |
Allow implicit conversion from nullptr. More... | |
operator bool () const noexcept | |
Determine whether the event is valid. More... | |
bool | operator== (const EventId &other) const noexcept |
Determine whether this and other refer to the same event, or are both empty/expired/cancelled. More... | |
bool | operator!= (const EventId &other) const noexcept |
void | reset () noexcept |
Clear this EventId without canceling. More... | |
Public Member Functions inherited from ndn::detail::CancelHandle | |
CancelHandle () noexcept=default | |
CancelHandle (function< void()> cancel) | |
void | cancel () const |
Cancel the operation. More... | |
Friends | |
class | Scheduler |
std::ostream & | operator<< (std::ostream &os, const EventId &eventId) |
A handle of scheduled event.
Definition at line 55 of file scheduler.hpp.
|
defaultnoexcept |
Constructs an empty EventId.
|
inlinenoexcept |
Allow implicit conversion from nullptr.
Definition at line 65 of file scheduler.hpp.
|
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 |
Determine whether this and other refer to the same event, or are both empty/expired/cancelled.
Definition at line 68 of file scheduler.cpp.
Referenced by operator!=().
|
inlinenoexcept |
Definition at line 83 of file scheduler.hpp.
References operator==().
|
noexcept |
Clear this EventId without canceling.
Definition at line 75 of file scheduler.cpp.
|
friend |
Definition at line 100 of file scheduler.hpp.
|
friend |
Definition at line 81 of file scheduler.cpp.