Added header of class Cell
Repräsentiert eine Zelle in einem KV-Diagramm und einer Wertetabelle.
This commit is contained in:
parent
696610967d
commit
cff4e58090
1 changed files with 29 additions and 0 deletions
29
Hazard/Hazard/Cell.h
Normal file
29
Hazard/Hazard/Cell.h
Normal 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
|
Loading…
Reference in a new issue