2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CARCHITECTUREQUEUE
|
|
|
|
#define _CARCHITECTUREQUEUE
|
2022-10-01 06:19:09 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "MetroidPrime/CArchitectureMessage.hpp"
|
|
|
|
|
|
|
|
#include "rstl/list.hpp"
|
|
|
|
|
|
|
|
class CArchitectureQueue {
|
|
|
|
public:
|
2022-10-24 01:44:54 +00:00
|
|
|
bool Push(const CArchitectureMessage& msg);
|
2022-12-01 16:19:53 +00:00
|
|
|
CArchitectureMessage Pop() {
|
|
|
|
CArchitectureMessage result = *x0_queue.begin();
|
|
|
|
x0_queue.pop_front();
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
void Clear() { x0_queue.clear(); }
|
|
|
|
bool IsEmpty() const { return x0_queue.empty(); }
|
2022-10-01 06:19:09 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
rstl::list< CArchitectureMessage > x0_queue;
|
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CARCHITECTUREQUEUE
|