2023-11-28 08:26:39 -05:00
|
|
|
#ifndef MXSTREAMLIST_H
|
|
|
|
#define MXSTREAMLIST_H
|
|
|
|
|
|
|
|
#include "mxdsaction.h"
|
|
|
|
#include "mxdssubscriber.h"
|
|
|
|
#include "mxnextactiondatastart.h"
|
2023-12-11 16:33:46 -05:00
|
|
|
#include "mxstl/stlcompat.h"
|
2023-11-28 08:26:39 -05:00
|
|
|
|
|
|
|
template <class T>
|
2023-12-24 08:52:26 -05:00
|
|
|
class MxStreamList : public list<T> {
|
|
|
|
public:
|
|
|
|
MxBool PopFront(T& p_obj)
|
|
|
|
{
|
|
|
|
if (empty())
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
p_obj = front();
|
|
|
|
pop_front();
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
};
|
2023-11-28 08:26:39 -05:00
|
|
|
|
|
|
|
// 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
|