NB6_Hazards/Hazard/Hazard/Cell.h
2013-11-21 20:55:31 +01:00

28 lines
582 B
C++

#include <string>
#include <vector>
#include "PrimImplikantCollection.h"
using namespace std;
#ifndef CELL
#define CELL
class Cell {
public:
bool value;
unsigned int index;
vector<Cell*> GetNeighbors(); // returns numElements Cells
vector<Cell*> GetHazards(); // returns the neighbor Cells which are hazardous
Cell(unsigned int index, PrimImplikantCollection* &globalPIC)
{
this->index = index;
this->primImplikanten = globalPIC->primImplikantenAt(index);
this->value = this->primImplikanten.size() > 0;
}
PrimImplikantCollection primImplikanten;
};
#endif