mirror of
https://github.com/cmosher01/v6502cpp.git
synced 2026-04-19 12:26:01 +00:00
refactor: extract setpSeg typedef to own header
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include "SegmentCache.h"
|
||||
#include "trans.h"
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <map>
|
||||
@@ -42,3 +43,11 @@ Segment* SegmentCache::get(const std::string& id) const {
|
||||
|
||||
return this->cache.at(id).get();
|
||||
}
|
||||
|
||||
setpSeg SegmentCache::all() const {
|
||||
setpSeg s;
|
||||
for (auto i : this->cache) {
|
||||
s.insert(i.second.get());
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user