CSEngine
Loading...
Searching...
No Matches
MemoryContainer.h
1#pragma once
2
3#include "../SObject.h"
4#include "Base/SContainerList.h"
5#include <set>
6
7namespace CSE {
8
9 class SObject;
10
11 class MemoryContainer : public SContainerList<SObject*> {
12 protected:
14
15 ~MemoryContainer() override;
16
17 public:
18 void Register(SObject* object) override;
19
20 void Remove(SObject* object) override;
21
22 bool HasHash(const std::string& hash) const;
23
24 void ChangeHash(const std::string& srcHash, const std::string& dstHash);
25
26 protected:
27 std::set<std::string> m_hashContainer;
28 };
29}