⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 booleansopfunction.cpp

📁 粗糙集应用软件
💻 CPP
字号:
//-------------------------------------------------------------------
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -