From 8d82eb87e4a0d08fac10259ffae0751e24073878 Mon Sep 17 00:00:00 2001 From: Jonny007-MKD <1-23-4-5@web.de> Date: Thu, 14 Nov 2013 14:53:15 +0100 Subject: [PATCH] Changed header of Cell: HasHazard() -> GetHazards() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Da wir mit unserem Ergebnis ja arbeiten wollen, muss die Hazard-Finde-Funktion zurückgeben, wo ein Hazard aufgetreten ist. Da jedoch um jede Zelle herum mehrere Hazards auftreten können, muss der Rückgabewert ein vector sein. --- Hazard/Hazard/Cell.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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