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

Events that are triggered based on something else than time. More...

#include <events.h>

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

Public Member Functions

 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

Events that are triggered based on something else than time.

Definition at line 178 of file events.h.

Constructor & Destructor Documentation

◆ UntimedEvent()

reactesp::UntimedEvent::UntimedEvent ( react_callback callback)
inline

Definition at line 180 of file events.h.

Member Function Documentation

◆ add() [1/2]

void reactesp::UntimedEvent::add ( EventLoop * event_loop)
overridevirtual

Implements reactesp::EventInterface.

Definition at line 58 of file events.cpp.

◆ add() [2/2]

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

Reimplemented from reactesp::EventInterface.

Definition at line 40 of file events.h.

◆ remove() [1/2]

void reactesp::UntimedEvent::remove ( EventLoop * event_loop)
overridevirtual

Implements reactesp::EventInterface.

Definition at line 64 of file events.cpp.

◆ remove() [2/2]

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

Reimplemented from reactesp::EventInterface.

Definition at line 43 of file events.h.

◆ tick() [1/2]

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

◆ tick() [2/2]

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

Reimplemented from reactesp::EventInterface.

Definition at line 46 of file events.h.


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