Zappy Server
C++ game server: world, rules, scheduler, network
Loading...
Searching...
No Matches
TimedEvent Struct Reference

A callback and the time it should fire. Min-heap ordered by fireAt. More...

#include <Scheduler.hpp>

+ Collaboration diagram for TimedEvent:

Public Member Functions

bool operator> (const TimedEvent &other) const
 

Public Attributes

std::chrono::steady_clock::time_point fireAt
 
std::function< void()> callback
 

Detailed Description

A callback and the time it should fire. Min-heap ordered by fireAt.

Definition at line 8 of file Scheduler.hpp.

Member Function Documentation

◆ operator>()

bool TimedEvent::operator> ( const TimedEvent other) const
inline

Definition at line 11 of file Scheduler.hpp.

References fireAt.

Member Data Documentation

◆ callback

std::function<void()> TimedEvent::callback

Definition at line 10 of file Scheduler.hpp.

◆ fireAt

std::chrono::steady_clock::time_point TimedEvent::fireAt

Definition at line 9 of file Scheduler.hpp.

Referenced by operator>().


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