00001 00002 #include "CACHE_LINE.hpp" 00003 00004 #ifndef _H_CS_DIRECT_MAPPED_CACHE 00005 #define _H_CS_DIRECT_MAPPED_CACHE 00006 00008 class DIRECT_MAPPED_CACHE { 00009 protected: 00011 CACHE_LINE* _lines; 00012 00014 unsigned long int _size; 00015 00017 unsigned long int _line_size; 00018 00019 public: 00021 DIRECT_MAPPED_CACHE( unsigned long int lines ); 00022 00024 ~DIRECT_MAPPED_CACHE(); 00025 00027 CACHE_LINE &getLine( void* pointer ); 00028 }; 00029 00030 #endif