ReactESP 3.3.1
Asynchronous programming for the ESP microcontrollers
Loading...
Searching...
No Matches
reactesp::TickEvent Class Reference

Event that is triggered unconditionally at each execution loop. More...

#include <events.h>

Inheritance diagram for reactesp::TickEvent:
[legend]
Collaboration diagram for reactesp::TickEvent:
[legend]

Public Member Functions

 TickEvent (react_callback callback)
 Construct a new Tick Event object.
void tick (EventLoop *event_loop) override
Public Member Functions inherited from reactesp::UntimedEvent
 UntimedEvent (react_callback callback)
void add (EventLoop *event_loop) override
void remove (EventLoop *event_loop) override
virtual void add (std::shared_ptr< EventLoop > event_loop)
virtual void remove (std::shared_ptr< EventLoop > event_loop)
virtual void tick (EventLoop *event_loop)=0
virtual void tick (std::shared_ptr< EventLoop > event_loop)
Public Member Functions inherited from reactesp::Event
 Event (react_callback callback)
 Construct a new Event object.
 Event (const Event &)=delete
 Event (Event &&)=delete
Eventoperator= (const Event &)=delete
Eventoperator= (Event &&)=delete
Public Member Functions inherited from reactesp::EventInterface
virtual ~EventInterface ()=default
 Default virtual destructor.

Additional Inherited Members

Protected Attributes inherited from reactesp::Event
const react_callback callback

Detailed Description

Event that is triggered unconditionally at each execution loop.

Definition at line 239 of file events.h.

Constructor & Destructor Documentation

◆ TickEvent()

reactesp::TickEvent::TickEvent ( react_callback callback)
inline

Construct a new Tick Event object.

Parameters
callbackFunction to be called at each execution loop

Definition at line 246 of file events.h.

Here is the call graph for this function:

Member Function Documentation

◆ tick()

void reactesp::TickEvent::tick ( EventLoop * event_loop)
overridevirtual

Implements reactesp::EventInterface.

Definition at line 86 of file events.cpp.


The documentation for this class was generated from the following files: