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

Events are code to be called when a given condition is fulfilled. More...

#include <ReactESP.h>

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

Public Member Functions

 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.
 
virtual void add (EventLoop *event_loop)=0
 
virtual void remove (EventLoop *event_loop)=0
 
virtual void tick (EventLoop *event_loop)=0
 

Protected Attributes

const react_callback callback
 

Detailed Description

Events are code to be called when a given condition is fulfilled.

Definition at line 36 of file ReactESP.h.

Constructor & Destructor Documentation

◆ Event() [1/3]

reactesp::Event::Event ( react_callback callback)
inline

Construct a new Event object.

Parameters
callbackFunction to be called when the event is triggered

Definition at line 46 of file ReactESP.h.

◆ Event() [2/3]

reactesp::Event::Event ( const Event & )
delete

◆ Event() [3/3]

reactesp::Event::Event ( Event && )
delete

Member Function Documentation

◆ operator=() [1/2]

Event & reactesp::Event::operator= ( const Event & )
delete

◆ operator=() [2/2]

Event & reactesp::Event::operator= ( Event && )
delete

Member Data Documentation

◆ callback

const react_callback reactesp::Event::callback
protected

Definition at line 38 of file ReactESP.h.


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