mirror of
https://github.com/cmosher01/v6502cpp.git
synced 2026-04-24 01:19:19 +00:00
refactor: add TransCache
This commit is contained in:
+3
-2
@@ -12,6 +12,7 @@
|
||||
#include <set>
|
||||
#include <memory>
|
||||
|
||||
class TransCache;
|
||||
class SegmentCache;
|
||||
class Common;
|
||||
class Trans;
|
||||
@@ -19,7 +20,7 @@ class Trans;
|
||||
class TransNetwork final {
|
||||
public:
|
||||
|
||||
TransNetwork(std::istream& readFromHere, SegmentCache& segs);
|
||||
TransNetwork(std::istream& readFromHere, SegmentCache& segs, TransCache& transes);
|
||||
|
||||
private:
|
||||
|
||||
@@ -27,7 +28,7 @@ private:
|
||||
TransNetwork& operator=(const TransNetwork&) = delete;
|
||||
|
||||
SegmentCache& segs;
|
||||
std::set<std::shared_ptr<Trans>> transes;
|
||||
TransCache& transes;
|
||||
|
||||
friend Common;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user