Fix includes, add attribution headers, remove unused constructor
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
|
||||
#ifndef PROJECT2_GRAPH_HPP_INCLUDED
|
||||
#define PROJECT2_GRAPH_HPP_INCLUDED
|
||||
|
||||
#include <string> // string
|
||||
#include <vector> // vector<int>, vector<vector<int>
|
||||
|
||||
class graph {
|
||||
public:
|
||||
// Constructors
|
||||
graph() {}
|
||||
graph(const int processes, const int resources);
|
||||
// Initializers:
|
||||
// Read a graph from a file
|
||||
void read(std::string filename);
|
||||
@@ -29,4 +34,6 @@ private:
|
||||
std::vector<int> resource_counts;
|
||||
struct m matrix; // Tell me, Mr. Anderson, what good is a phone call if you are unable to speak?
|
||||
bool is_blocked(int process_id);
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user