isle/LEGO1/mxqueue.h
Christian Semmler 34b3d92696 More fixes
2023-12-12 11:06:39 -05:00

27 lines
352 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 = (m_first != NULL);
if (m_first) {
p_obj = m_first->GetValue();
DeleteEntry(m_first);
}
return hasNext;
}
};
#endif // MXQUEUE_H