-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLRU.hpp
More file actions
46 lines (25 loc) · 1.15 KB
/
LRU.hpp
File metadata and controls
46 lines (25 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef LRU_hpp
#define LRU_hpp
#include "all_header.h"
#include "queryItem.hpp"
#include "cacheItem.hpp"
#include "cache_manager.hpp"
#include <stdio.h>
class LRU:public cache_manager{
private:
list<queryItem> LRU_Container;
public:
virtual equivalence_class_num_type get_the_number_of_equivalence_classes()const;
virtual vector<queryItem> loadQueryFile();
virtual data_cell_num_type get_the_number_of_data_units()const;
virtual bool query_in_cache(queryItem& queryItem);
virtual void refresh_cache(const queryItem& queryItem);
virtual void cache_replacement_policy();
virtual void dispaly_experimental_result_to_file(data_cell_num_type queryItemSet_size,int hit,time_t all_time)const;
virtual vector<queryItem> load_query_file();
virtual void displasy_cachaItem()const;
virtual void temp() {
cout<<"ssss : "<<LRU_Container.size()<<endl;
}
};
#endif /* LRU_hpp */