ReactESP 3.2.0
Asynchronous programming for the ESP microcontrollers
Loading...
Searching...
No Matches
reactesp::EventInterface Struct Referenceabstract

EventInterface defines the interface for all events. More...

#include <events.h>

Inheritance diagram for reactesp::EventInterface:
[legend]

Public Member Functions

virtual ~EventInterface ()=default
 Default virtual destructor.
 
virtual void add (EventLoop *event_loop)=0
 
virtual void remove (EventLoop *event_loop)=0
 
virtual void tick (EventLoop *event_loop)=0
 
virtual void add (std::shared_ptr< EventLoop > event_loop)
 
virtual void remove (std::shared_ptr< EventLoop > event_loop)
 
virtual void tick (std::shared_ptr< EventLoop > event_loop)
 

Detailed Description

EventInterface defines the interface for all events.

Definition at line 30 of file events.h.

Constructor & Destructor Documentation

◆ ~EventInterface()

virtual reactesp::EventInterface::~EventInterface ( )
virtualdefault

Default virtual destructor.

Member Function Documentation

◆ add() [1/2]

virtual void reactesp::EventInterface::add ( EventLoop * event_loop)
pure virtual

Implemented in reactesp::ISREvent, reactesp::TimedEvent, and reactesp::UntimedEvent.

Here is the caller graph for this function:

◆ add() [2/2]

virtual void reactesp::EventInterface::add ( std::shared_ptr< EventLoop > event_loop)
inlinevirtual

Reimplemented in reactesp::TimedEvent, and reactesp::UntimedEvent.

Definition at line 40 of file events.h.

Here is the call graph for this function:

◆ remove() [1/2]

virtual void reactesp::EventInterface::remove ( EventLoop * event_loop)
pure virtual

Implemented in reactesp::ISREvent, reactesp::TimedEvent, and reactesp::UntimedEvent.

Here is the caller graph for this function:

◆ remove() [2/2]

virtual void reactesp::EventInterface::remove ( std::shared_ptr< EventLoop > event_loop)
inlinevirtual

Reimplemented in reactesp::TimedEvent, and reactesp::UntimedEvent.

Definition at line 43 of file events.h.

Here is the call graph for this function:

◆ tick() [1/2]

virtual void reactesp::EventInterface::tick ( EventLoop * event_loop)
pure virtual

Implemented in reactesp::DelayEvent, reactesp::ISREvent, reactesp::RepeatEvent, reactesp::StreamEvent, reactesp::TickEvent, reactesp::TimedEvent, and reactesp::UntimedEvent.

Here is the caller graph for this function:

◆ tick() [2/2]

virtual void reactesp::EventInterface::tick ( std::shared_ptr< EventLoop > event_loop)
inlinevirtual

Reimplemented in reactesp::TimedEvent, and reactesp::UntimedEvent.

Definition at line 46 of file events.h.

Here is the call graph for this function:

The documentation for this struct was generated from the following file: