booleanposfunction.cpp

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

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

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

#include <kernel/structures/booleanposfunction.h>

//-------------------------------------------------------------------
// Methods for class BooleanPOSFunction.
//===================================================================

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

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

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

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

BooleanPOSFunction::BooleanPOSFunction() {
}

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

BooleanPOSFunction::~BooleanPOSFunction() {
}

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

IMPLEMENTIDMETHODS(BooleanPOSFunction, BOOLEANPOSFUNCTION, BooleanFunction)

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

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

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

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

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

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

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

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

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

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

⌨️ 快捷键说明

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