55 lines
No EOL
1.1 KiB
C++
55 lines
No EOL
1.1 KiB
C++
#ifndef PRIMIMPLIKANT
|
|
#define PRIMIMPLIKANT
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include "Implikant_localisation.h"
|
|
|
|
using namespace std;
|
|
|
|
class PrimImplikant
|
|
{
|
|
public:
|
|
string name;
|
|
uint id;
|
|
|
|
PrimImplikant(string input)
|
|
{
|
|
name = input;
|
|
parser(input);
|
|
}
|
|
PrimImplikant(uint input)
|
|
{
|
|
char nameC[sizeof(uint)*8+1];
|
|
_itoa_s(input, nameC, sizeof(uint)*8+1, 10);
|
|
name = nameC;
|
|
|
|
implikanten.push_back(input);
|
|
I_Vector.push_back(new Implikant_localisation(input));
|
|
}
|
|
PrimImplikant(uint input1, uint input2)
|
|
{
|
|
char nameC[sizeof(uint)*8+1];
|
|
_itoa_s(input1, nameC, sizeof(uint)*8+1, 10);
|
|
name = nameC;
|
|
_itoa_s(input2, nameC, sizeof(uint)*8+1, 10);
|
|
name.append("|");
|
|
name.append(nameC);
|
|
|
|
implikanten.push_back(input1);
|
|
I_Vector.push_back(new Implikant_localisation(input1));
|
|
implikanten.push_back(input2);
|
|
I_Vector.push_back(new Implikant_localisation(input2));
|
|
}
|
|
|
|
bool PrimImplikant::valueAt(uint position);
|
|
void PrimImplikant::parser(string input);
|
|
|
|
|
|
|
|
|
|
vector<uint> implikanten;
|
|
vector<Implikant_localisation*> I_Vector;
|
|
vector<vector<Implikant_localisation*>*> PI_groupCollection;
|
|
};
|
|
#endif |