NB6_Hazards/Hazard/Hazard/Cell.h
Jonny007-MKD cff4e58090 Added header of class Cell
Repräsentiert eine Zelle in einem KV-Diagramm und einer Wertetabelle.
2013-11-12 21:57:56 +01:00

29 lines
479 B
C++

#include <string>
#include <vector>
#include "PrimImplikantCollection.h"
using namespace std;
#ifndef CELL
#define CELL
class Cell {
public:
bool value;
vector<Cell> GetNeighbours();
bool HasHazard();
Cell(int index, PrimImplikantCollection* &globalPIC)
{
this->index = index;
this->primImplikanten = globalPIC->primImplikantenAt(index);
this->value = this->primImplikanten.size() > 0;
}
private:
PrimImplikantCollection primImplikanten;
int index;
};
#endif