mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Reorganize sources and files (#414)
* 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
This commit is contained in:
committed by
GitHub
parent
6a85e62406
commit
c47206617d
26
LEGO1/omni/include/mxqueue.h
Normal file
26
LEGO1/omni/include/mxqueue.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user