v6502cpp/TransCache.h

34 lines
506 B
C++

/*
* File: TransCache.h
* Author: Christopher
*
* Created on December 15, 2013, 1:39 PM
*/
#ifndef TRANSCACHE_H
#define TRANSCACHE_H
#include <set>
#include <memory>
class Trans;
class Segment;
class TransCache final {
public:
TransCache() {
}
void add(Segment* c1, Segment* gate, Segment* c2);
private:
TransCache(const TransCache&) = delete;
TransCache& operator=(const TransCache&) = delete;
std::set<std::shared_ptr<Trans>> cache;
};
#endif /* TRANSCACHE_H */