#include #include #include "PrimImplikantCollection.h" using namespace std; #ifndef CELL #define CELL class Cell { public: bool value; unsigned int index; vector* getNeighbors(vector &allCells); // returns numElements Cells vector* getHazards(vector &allCells); // returns the neighbor Cells which are hazardous bool hasOneOfThose(PrimImplikantCollection &foreignPIC); void refresh(PrimImplikantCollection* &globalPIC); // refreshes the local primImplikantCollection Cell(unsigned int index, PrimImplikantCollection* &globalPIC) { this->index = index; this->refresh(globalPIC); this->value = this->primImplikanten.size() > 0; } PrimImplikantCollection primImplikanten; }; #endif