ReactESP 3.3.1
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 <events.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
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)

Protected Attributes

const react_callback callback

Detailed Description

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

Definition at line 55 of file events.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 65 of file events.h.

Here is the caller graph for this function:

◆ Event() [2/3]

reactesp::Event::Event ( const Event & )
delete
Here is the call graph for this function:

◆ Event() [3/3]

reactesp::Event::Event ( Event && )
delete
Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

Event & reactesp::Event::operator= ( const Event & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

Event & reactesp::Event::operator= ( Event && )
delete
Here is the call graph for this function:

Member Data Documentation

◆ callback

const react_callback reactesp::Event::callback
protected

Definition at line 57 of file events.h.


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