prime/include/Kyoto/CSimplePool.hpp

41 lines
1004 B
C++
Raw Normal View History

#ifndef _CSIMPLEPOOL
#define _CSIMPLEPOOL
#include "types.h"
#include "rstl/hash_map.hpp"
#include "rstl/rc_ptr.hpp"
2022-08-13 01:26:00 +00:00
#include "Kyoto/CToken.hpp"
2022-08-09 23:03:51 +00:00
#include "Kyoto/IObjectStore.hpp"
class IFactory;
class CSimplePool : public IObjectStore {
public:
CSimplePool(IFactory& factory);
2022-10-01 06:19:09 +00:00
~CSimplePool();
2022-08-13 01:26:00 +00:00
virtual CToken GetObj(const SObjectTag& tag, CVParamTransfer xfer);
virtual CToken GetObj(const SObjectTag& tag);
virtual CToken GetObj(const char* name);
virtual CToken GetObj(const char* name, CVParamTransfer xfer);
virtual bool HasObject(const SObjectTag& tag);
virtual bool ObjectIsLive(const SObjectTag& tag);
virtual unkptr GetFactory();
virtual void Flush();
virtual void ObjectUnreferenced(const SObjectTag& tag);
private:
uchar x4_;
uchar x5_;
rstl::hash_map< unkptr, unkptr, void, void > x8_resources;
unkptr x18_factory;
rstl::rc_ptr< CVParamTransfer > x1c_paramXfr;
};
CHECK_SIZEOF(CSimplePool, 0x20)
extern CSimplePool* gpSimplePool;
#endif // _CSIMPLEPOOL