Initial commit
This commit is contained in:
23
P2/ChainingHashTable.h
Normal file
23
P2/ChainingHashTable.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef CHAININGHASHTABLE_H
|
||||
#define CHAININGHASHTABLE_H
|
||||
|
||||
#include <vector>
|
||||
#include "Process.h"
|
||||
#include "HashTable.h"
|
||||
|
||||
class ChainingHashTable : public HashTable
|
||||
{
|
||||
public:
|
||||
bool Insert(Process *p);
|
||||
int Search(unsigned int PID);
|
||||
Process *Get(unsigned int PID);
|
||||
bool Remove(unsigned int PID);
|
||||
void Print(unsigned int m);
|
||||
|
||||
ChainingHashTable(int size);
|
||||
~ChainingHashTable();
|
||||
|
||||
private:
|
||||
std::vector<Process *> *processList;
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user