conditionedcombinatorialcompleter.cpp

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

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

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

#include <kernel/algorithms/conditionedcombinatorialcompleter.h>
#include <kernel/algorithms/combinatorialcompleter.h>

#include <common/objectmanager.h>

//-------------------------------------------------------------------
// Methods for class ConditionedCombinatorialCompleter.
//===================================================================

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

ConditionedCombinatorialCompleter::ConditionedCombinatorialCompleter() {
	SetCompleter(dynamic_cast(Completer *, ObjectManager::GetIdentifiedAlgorithm(COMBINATORIALCOMPLETER)));
}

ConditionedCombinatorialCompleter::~ConditionedCombinatorialCompleter() {
}

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

IMPLEMENTIDMETHODS(ConditionedCombinatorialCompleter, CONDITIONEDCOMBINATORIALCOMPLETER, ConditionedCompleter)

//-------------------------------------------------------------------
// Methods inherited from Algorithm.
//===================================================================

//-------------------------------------------------------------------
// Method........: GetParameters
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: Overloaded for cosmetic reasons only.
// Revisions.....:
//===================================================================

String
ConditionedCombinatorialCompleter::GetParameters() const {

	if (GetCompleter() == NULL)
		return String("");

	return GetCompleter()->GetParameters();

}

//-------------------------------------------------------------------
// Method........: SetParameter
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: Overloaded since the completer is fixed.
// Revisions.....:
//===================================================================

bool
ConditionedCombinatorialCompleter::SetParameter(const String &keyword, const String &value) {

	if (GetCompleter() == NULL)
		return false;

	return GetCompleter()->SetParameter(keyword, value);

}

⌨️ 快捷键说明

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