#ifndef _AS68HC11_CACHE_HPP_ #define _AS68HC11_CACHE_HPP_ #ifndef _AS68HC11_CACHEITEM_HPP_ #include #endif template class MRUCache { public: enum{CacheLength=10}; MRUCache(void); virtual ~MRUCache(); WORD isInCache(CacheItem &cacheItem); void insert(CacheItem &cacheItem); void clear(void); private: void pullCache(void); Block > mCacheBlock; }; template inline MRUCache::MRUCache(void) { } template inline MRUCache::~MRUCache() { } template inline void MRUCache::clear(void) { mCacheBlock.remove(); } #if defined(_MSC_VER) #include #endif #endif