OpenTTD Source 20241224-master-gf74b0cf984
TimerManager< TTimerType >::base_timer_sorter Struct Reference

Sorter for timers. More...

Public Member Functions

bool operator() (BaseTimer< TTimerType > *a, BaseTimer< TTimerType > *b) const
 

Detailed Description

template<typename TTimerType>
struct TimerManager< TTimerType >::base_timer_sorter

Sorter for timers.

It will sort based on the period, smaller first. If the period is the same, it will sort based on the pointer value.

Definition at line 106 of file timer_manager.h.

Member Function Documentation

◆ operator()()

template<typename TTimerType >
bool TimerManager< TTimerType >::base_timer_sorter::operator() ( BaseTimer< TTimerType > *  a,
BaseTimer< TTimerType > *  b 
) const
inline

Definition at line 107 of file timer_manager.h.


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