mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -05:00
38 lines
766 B
C++
38 lines
766 B
C++
#ifndef MXSTREAMLIST_H
|
|
#define MXSTREAMLIST_H
|
|
|
|
#include "mxdsaction.h"
|
|
#include "mxdssubscriber.h"
|
|
#include "mxnextactiondatastart.h"
|
|
#include "mxstl/stlcompat.h"
|
|
|
|
template <class T>
|
|
class MxStreamList : public list<T> {
|
|
public:
|
|
MxBool PopFront(T& p_obj)
|
|
{
|
|
if (empty())
|
|
return FALSE;
|
|
|
|
p_obj = front();
|
|
pop_front();
|
|
return TRUE;
|
|
}
|
|
};
|
|
|
|
// SIZE 0xc
|
|
class MxStreamListMxDSAction : public MxStreamList<MxDSAction*> {
|
|
public:
|
|
MxDSAction* Find(MxDSAction* p_action, MxBool p_delete);
|
|
};
|
|
|
|
// SIZE 0xc
|
|
class MxStreamListMxNextActionDataStart : public MxStreamList<MxNextActionDataStart*> {
|
|
public:
|
|
MxNextActionDataStart* Find(MxU32, MxS16);
|
|
};
|
|
|
|
// SIZE 0xc
|
|
class MxStreamListMxDSSubscriber : public MxStreamList<MxDSSubscriber*> {};
|
|
|
|
#endif // MXSTREAMLIST_H
|