cancels an event automatically upon destruction More...
#include <scheduler.hpp>
Public Member Functions | |
ScopedEventId () | |
ScopedEventId (const EventId &event) | |
implicit constructor from EventId More... | |
ScopedEventId (ScopedEventId &&other) | |
move constructor More... | |
ScopedEventId & | operator= (const EventId &event) |
assigns an event More... | |
~ScopedEventId () | |
cancels the event More... | |
void | cancel () |
cancels the event manually More... | |
void | release () |
releases the event so that it won't be disconnected when this ScopedEventId is destructed More... | |
cancels an event automatically upon destruction
Definition at line 53 of file scheduler.hpp.
nfd::scheduler::ScopedEventId::ScopedEventId | ( | ) |
Definition at line 66 of file scheduler.cpp.
nfd::scheduler::ScopedEventId::ScopedEventId | ( | const EventId & | event | ) |
implicit constructor from EventId
event | the event to be cancelled upon destruction |
Definition at line 70 of file scheduler.cpp.
nfd::scheduler::ScopedEventId::ScopedEventId | ( | ScopedEventId && | other | ) |
move constructor
Definition at line 75 of file scheduler.cpp.
nfd::scheduler::ScopedEventId::~ScopedEventId | ( | ) |
ScopedEventId & nfd::scheduler::ScopedEventId::operator= | ( | const EventId & | event | ) |
assigns an event
If a different event has been assigned to this instance previously, that event will be cancelled immediately.
Definition at line 82 of file scheduler.cpp.
References nfd::scheduler::cancel().
void nfd::scheduler::ScopedEventId::cancel | ( | ) |
cancels the event manually
Definition at line 97 of file scheduler.cpp.
References nfd::scheduler::cancel().
void nfd::scheduler::ScopedEventId::release | ( | ) |
releases the event so that it won't be disconnected when this ScopedEventId is destructed
Definition at line 103 of file scheduler.cpp.