mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-23 08:08:03 -05:00
27 lines
355 B
C
27 lines
355 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 has_next = (m_first != NULL);
|
||
|
if (m_first) {
|
||
|
p_obj = m_first->GetValue();
|
||
|
_DeleteEntry(m_first);
|
||
|
}
|
||
|
|
||
|
return has_next;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
#endif // MXQUEUE_H
|