Finish impl'ing reading a file
This commit is contained in:
@@ -1,23 +1,25 @@
|
||||
|
||||
class graph {
|
||||
private:
|
||||
int num_processes;
|
||||
int num_resources;
|
||||
int *resource_counts;
|
||||
struct m{
|
||||
int x, y;
|
||||
std::vector<std::vector<int>> data;
|
||||
} matrix; // Tell me, Mr. Anderson, what good is a phone call if you are unable to speak?
|
||||
|
||||
public:
|
||||
// Constructors
|
||||
graph() {}
|
||||
graph(const int processes, const int resources);
|
||||
// Destructors
|
||||
~graph();
|
||||
// Initializers:
|
||||
void init(const int **data);
|
||||
void read(std::string filename);
|
||||
// check functions:
|
||||
// is the graph...
|
||||
bool reducible();// ?
|
||||
bool knotted();// ?
|
||||
|
||||
struct m{
|
||||
int x, y;
|
||||
std::vector<std::vector<int>> data;
|
||||
};
|
||||
|
||||
private:
|
||||
int num_processes = 0;
|
||||
int num_resources = 0;
|
||||
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);
|
||||
};
|
||||
@@ -1,3 +0,0 @@
|
||||
|
||||
|
||||
void read_file(std::string filename);
|
||||
Reference in New Issue
Block a user