mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Refactor MxStreamList
based lists (#1260)
* Refactor stream lists * Fix naming * Fix header inclusion * Fix annotations * Move function definitions to header * Remove mxstreamprovider.cpp * Naming
This commit is contained in:

committed by
GitHub

parent
48c327ca5a
commit
5b19d7953a
23
LEGO1/omni/include/mxutilitylist.h
Normal file
23
LEGO1/omni/include/mxutilitylist.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef MXUTILITYLIST_H
|
||||
#define MXUTILITYLIST_H
|
||||
|
||||
#include "mxstl/stlcompat.h"
|
||||
|
||||
// Probably should be defined somewhere else
|
||||
|
||||
template <class T>
|
||||
class MxUtilityList : public list<T> {
|
||||
public:
|
||||
MxBool PopFront(T& p_obj)
|
||||
{
|
||||
if (this->empty()) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
p_obj = this->front();
|
||||
this->pop_front();
|
||||
return TRUE;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // MXUTILITYLIST_H
|
Reference in New Issue
Block a user