EventCanceler¶
class EventCanceler
An helper class used to cancel a running Event
.
- See
- Event
Functions¶
Name | Description |
---|---|
EventCanceler | Creates an uninitialized EventCanceler . |
EventCanceler | Creates an EventCanceler which will abort * the given event once cancelled. |
~EventCanceler | Destroys the event canceller and releases * the wrapped event instance. |
Valid | Checks whether this EventCanceler has been initialized. |
Cancel | Cancels and abort the wrapped Event . |
GetEvent | Returns the Event wrapped by this EventCanceler . |
Function Details¶
Cancel¶
void Cancel() const
Cancels and abort the wrapped Event
.
EventCanceler¶
EventCanceler()
Creates an uninitialized EventCanceler
.
An uninitialized EventCanceler
cannot be canceled.
explicit EventCanceler(EventInstance* event)
Creates an EventCanceler
which will abort * the given event once cancelled.
- Parameter
event
- The event instance to cancel.
GetEvent¶
[[nodiscard]] EventInstance* GetEvent() const
Returns the Event
wrapped by this EventCanceler
.
- Return
- The
Event
wrapped by thisEventCanceler
.
Valid¶
[[nodiscard]] bool Valid() const
Checks whether this EventCanceler
has been initialized.
- Return
true
if thisEventCanceler
has been initialized,false
otherwise.
~EventCanceler¶
~EventCanceler()
Destroys the event canceller and releases * the wrapped event instance.