diff --git a/Hazard/Hazard/Cell.h b/Hazard/Hazard/Cell.h index 67e0c30..b81eab8 100644 --- a/Hazard/Hazard/Cell.h +++ b/Hazard/Hazard/Cell.h @@ -10,11 +10,12 @@ using namespace std; class Cell { public: bool value; + unsigned int index; - vector GetNeighbours(); - bool HasHazard(); + vector GetNeighbors(); // returns numElements Cells + vector GetHazards(); // returns the neighbor Cells which are hazardous - Cell(int index, PrimImplikantCollection* &globalPIC) + Cell(unsigned int index, PrimImplikantCollection* &globalPIC) { this->index = index; this->primImplikanten = globalPIC->primImplikantenAt(index); @@ -23,7 +24,6 @@ public: private: PrimImplikantCollection primImplikanten; - int index; }; #endif \ No newline at end of file