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

Strict total ordering for TimedEvent pointers. More...

#include <events.h>

Public Member Functions

bool operator() (const TimedEvent *a, const TimedEvent *b) const

Detailed Description

Strict total ordering for TimedEvent pointers.

Orders by trigger time ascending. Pointer address is used as a tiebreaker so that distinct events with the same trigger time have a well-defined, unique position in an ordered container (std::set).

Note: last_trigger_time (part of the sort key) must not be mutated while the event is inside the container — remove first, modify, then re-insert.

Definition at line 143 of file events.h.

Member Function Documentation

◆ operator()()

bool reactesp::TriggerTimeCompare::operator() ( const TimedEvent * a,
const TimedEvent * b ) const
inline

Definition at line 144 of file events.h.

Here is the call graph for this function:

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