mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
24 lines
506 B
C++
24 lines
506 B
C++
|
|
#ifndef STORM_QUEUE_CS_BASE_PRIORITY_QUEUE_HPP
|
||
|
|
#define STORM_QUEUE_CS_BASE_PRIORITY_QUEUE_HPP
|
||
|
|
|
||
|
|
#include "storm/Array.hpp"
|
||
|
|
#include <cstdint>
|
||
|
|
|
||
|
|
class CSBasePriority;
|
||
|
|
|
||
|
|
class CSBasePriorityQueue : public TSGrowableArray<void*> {
|
||
|
|
public:
|
||
|
|
// Member variables
|
||
|
|
uint32_t m_linkOffset;
|
||
|
|
|
||
|
|
// Member functions
|
||
|
|
void* Dequeue();
|
||
|
|
void Enqueue(void* val);
|
||
|
|
CSBasePriority* Link(uint32_t index) const;
|
||
|
|
void Remove(uint32_t index);
|
||
|
|
void SetLink(uint32_t index);
|
||
|
|
void* Top();
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|