-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLFU.hpp
More file actions
28 lines (27 loc) · 941 Bytes
/
LFU.hpp
File metadata and controls
28 lines (27 loc) · 941 Bytes
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
#ifndef LFU_hpp
#define LFU_hpp
#include "all_header.h"
#include "queryItem.hpp"
#include "cacheItem.hpp"
#include "cache_manager.hpp"
#include <stdio.h>
class LFU : public cache_manager
{
private:
list<queryItem> LFU_Container;
public:
virtual equivalence_class_num_type get_the_number_of_equivalence_classes() const;
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 vector<queryItem> loadQueryFile();
virtual void temp()
{
cout << "ssss : " << LFU_Container.size() << endl;
}
};
#endif /* LFU_hpp */