mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-24 08:38:29 -05:00
c47206617d
* Reorganize sources * Refactor * Remove relative paths * Renames * Fix gitignore * Remove stuff * Try fixing format script * Fix format * Fix format * Fix naming script * Test format * Fix format
26 lines
382 B
C++
26 lines
382 B
C++
#ifndef MXQUEUE_H
|
|
#define MXQUEUE_H
|
|
|
|
#include "mxlist.h"
|
|
|
|
template <class T>
|
|
class MxQueue : public MxList<T> {
|
|
public:
|
|
void Enqueue(T& p_obj)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
MxBool Dequeue(T& p_obj)
|
|
{
|
|
MxBool hasNext = (this->m_first != NULL);
|
|
if (this->m_first) {
|
|
p_obj = this->m_first->GetValue();
|
|
this->DeleteEntry(this->m_first);
|
|
}
|
|
|
|
return hasNext;
|
|
}
|
|
};
|
|
|
|
#endif // MXQUEUE_H
|