Initial commit

This commit is contained in:
jslightham
2023-05-21 23:28:11 -04:00
commit 0360e7dfcc
31 changed files with 2068 additions and 0 deletions

23
P2/ChainingHashTable.h Normal file
View 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