Added header of class Cell

Repräsentiert eine Zelle in einem KV-Diagramm und einer Wertetabelle.
This commit is contained in:
Jonny007-MKD 2013-11-12 21:57:56 +01:00
parent 696610967d
commit cff4e58090
1 changed files with 29 additions and 0 deletions

29
Hazard/Hazard/Cell.h Normal file
View File

@ -0,0 +1,29 @@
#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