booleansopfunction.cpp

来自「粗糙集应用软件」· C++ 代码 · 共 114 行

CPP
114
字号
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Revisions.....:
//===================================================================

#include <stdafx.h> // Precompiled headers.
#include <copyright.h>

#include <kernel/structures/booleansopfunction.h>

//-------------------------------------------------------------------
// Methods for class BooleanSOPFunction.
//===================================================================

//-------------------------------------------------------------------
// Constructors/destructor.
//===================================================================

//-------------------------------------------------------------------
// Method........: Constructor
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Copy constructor
// Comments......:
// Revisions.....:
//===================================================================

BooleanSOPFunction::BooleanSOPFunction(const BooleanSOPFunction &in) : BooleanFunction(in) {
}

//-------------------------------------------------------------------
// Method........: Constructor
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Empty constructor
// Comments......:
// Revisions.....:
//===================================================================

BooleanSOPFunction::BooleanSOPFunction() {
}

//-------------------------------------------------------------------
// Method........: Destructor.
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......:
// Revisions.....:
//===================================================================

BooleanSOPFunction::~BooleanSOPFunction() {
}

//-------------------------------------------------------------------
// Methods inherited from Identifier.
//===================================================================

IMPLEMENTIDMETHODS(BooleanSOPFunction, BOOLEANSOPFUNCTION, BooleanFunction)

//-------------------------------------------------------------------
// Methods inherited from Structure.
//===================================================================

//-------------------------------------------------------------------
// Method........: Duplicate
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......:
// Revisions.....:
//===================================================================

Structure *
BooleanSOPFunction::Duplicate() const {
  return new BooleanSOPFunction(*this);
}

//-------------------------------------------------------------------
// Methods inherited from BooleanFunction.
//===================================================================

bool
BooleanSOPFunction::Create(const String &function, const DecisionTable &table, bool masked) {
	return BooleanFunction::Create(function, '+', '*', table, masked);
}

bool
BooleanSOPFunction::Create(const String &function, Map(String, int) &names) {
	return BooleanFunction::Create(function, '+', '*', names);
}

bool
BooleanSOPFunction::Format(String &formatted, const DecisionTable *table, bool masked) const {
	return BooleanFunction::Format(formatted, '+', '*', table, masked);
}

String
BooleanSOPFunction::Format(const DecisionTable *table, bool masked) const {
	return BooleanFunction::Format('+', '*', table, masked);
}

bool
BooleanSOPFunction::Load(ifstream &stream, const DecisionTable *table, bool masked) {
	return BooleanFunction::Load(stream, '+', '*', table, masked);
}

bool
BooleanSOPFunction::Save(ofstream &stream, const DecisionTable *table, bool masked) const {
	return BooleanFunction::Save(stream, '+', '*', table, masked);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?