v6502cpp/SegmentCache.h

31 lines
563 B
C
Raw Normal View History

2013-12-11 04:58:09 +00:00
/*
* File: SegmentCache.h
* Author: Christopher
*
* Created on December 10, 2013, 9:56 PM
*/
#ifndef SEGMENTCACHE_H
#define SEGMENTCACHE_H
#include "trans.h"
#include <memory>
#include <string>
#include <map>
class SegmentCache {
public:
SegmentCache() {}
virtual ~SegmentCache() {}
Segment* getOrAdd(std::string& id);
private:
std::map<std::string,std::shared_ptr<Segment>> cache;
SegmentCache(const SegmentCache&);
SegmentCache& operator=(const SegmentCache&);
};
#endif /* SEGMENTCACHE_H */