OpenTTD Source 20260208-master-g43af8e94d0
binaryheap.hpp File Reference

Binary heap implementation. More...

Go to the source code of this file.

Data Structures

class  CBinaryHeapT< T >
 Binary Heap as C++ template. More...

Macros

#define BINARYHEAP_CHECK   0
 Enable it if you suspect binary heap doesn't work well.
#define CHECK_CONSISTY()
 Don't check for consistency.

Detailed Description

Binary heap implementation.

Definition in file binaryheap.hpp.

Macro Definition Documentation

◆ BINARYHEAP_CHECK

#define BINARYHEAP_CHECK   0

Enable it if you suspect binary heap doesn't work well.

Definition at line 14 of file binaryheap.hpp.

◆ CHECK_CONSISTY

#define CHECK_CONSISTY ( )
Value:
;

Don't check for consistency.

Definition at line 21 of file binaryheap.hpp.

Referenced by CBinaryHeapT< T >::Clear(), CBinaryHeapT< T >::Include(), CBinaryHeapT< T >::Remove(), and CBinaryHeapT< T >::Shift().