亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? rsesreducts.cpp

?? 粗慥集成算法集合 ,并有詳細(xì)的文檔資料和測(cè)試數(shù)據(jù)處
?? CPP
?? 第 1 頁 / 共 3 頁
字號(hào):
	// Save the children recursively.
  for (i = 0; i < GetNoChildren(); i++) {

		Handle<Structure> child = GetChild(i);

		String type = IdHolder::GetClassname(child->GetId());

		// Save the type description of the child (for later reconstruction).
		if (!IOKit::Save(stream, type))
			return false;

		if (!IOKit::Save(stream, '\n'))
			return false;

		// Save the child.
		if (!child->Save(stream))
			return false;

	}

	return true;

}

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

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

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

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

void
RSESReducts::Clear() {

#ifdef _DEBUG
	// Is the RSES object instantiated?
	if (reducts_ == NULL) {
		Message::Error("Embedded RSES object not instantiated.");
		return;
	}
#endif

	// Clear stuff higher up in the hierarchy.
	Structures::Clear();

	// Clear RSES object.
	try {
		reducts_->Clear();
	}
	catch (Error &error) {
		Message::RSESError("Failed to clear embedded RSES object.", error.GetMessage());
	}

}

//-------------------------------------------------------------------
// Methods inherited from ParentStructure.
//===================================================================

//-------------------------------------------------------------------
// Method........: InsertChild
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Overloaded to ensure consistency.  A set of RSES
//                 reducts can only have one set of RSES rules as a
//                 child.  This because the RSES library couples the
//                 two so tightly via the TRedRulMem structure.
// Comments......:
// Revisions.....:
//===================================================================

bool
RSESReducts::InsertChild(Structure *child, int i) {

	if (child == NULL) {
		Message::Error("Cannot insert a NULL structure as a child.");
		return false;
	}

	// If the structure's already a member of the child set, then do nothing.
	if (IsParent(child, true))
		return true;

	if (child->IsA(RSESRULES)) {
		if (HasChild(RSESRULES, false)) {
			Message::Error("The RSES library only allows one RSES rule set child.");
			return false;
	  }
	}

	return ParentStructure::InsertChild(child, i);

}

//-------------------------------------------------------------------
// Method........: AppendChild
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Cf. description of the InsertChild method.
// Comments......:
// Revisions.....:
//===================================================================

bool
RSESReducts::AppendChild(Structure *child) {
	return InsertChild(child, GetNoChildren());
}

//-------------------------------------------------------------------
// Methods inherited from Structures.
//===================================================================

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

bool
RSESReducts::InsertStructure(Structure *structure, int i) {

	// Is the insertion really an append operation?
	if (i == GetNoStructures())
		return AppendStructure(structure);

	// Give an error message.
	Message::Error("The RSES library does currently not support general reduct insertion.");

	return false;

}

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

bool
RSESReducts::AppendStructure(Structure *structure) {

#ifdef _DEBUG
	// Is the RSES object instantiated?
	if (reducts_ == NULL) {
		Message::Error("Embedded RSES object not instantiated.");
		return false;
	}
#endif

	// Is the object valid?
	if (structure == NULL) {
		Message::Error("Cannot append a NULL reduct.");
		return false;
	}

	// Is the object of correct type?
	if (!structure->IsA(RSESREDUCT)) {
		Message::Error("Only RSES reducts can be appended to an RSES reduct set.");
		return false;
	}

	// Cast to correct type.
	RSESReduct *reduct = dynamic_cast(RSESReduct *, structure);

	// Check if embedded reduct already exists...?
	// ...

	// Add the embedded RSES reduct to the embedded reduct and rule memory.
	try {
		reducts_->AddRed(reduct->reduct_);
	}
	catch (Error &error) {
		Message::RSESError("Failed to add the embedded RSES reduct to the embedded reduct and rule memory.", error.GetMessage());
		return false;
	}

	// The embedded reduct and rule memory takes ownership of the embedded reduct.
	reduct->is_owner_ = false;

	// Add the wrapper structure to the (wrapper) structure container, avoiding recursion.
	return Structures::InsertStructure(structure, Structures::GetNoStructures());

}

//-------------------------------------------------------------------
// Method........: RemoveStructure
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: Any rules attached to the RSES library
//                 are thus implicitly removed from the rule set
//                 child, it such exists.  However, the rule set
//                 wrapper update is currently quite inefficiently
//                 implemented...  Therefore, call this method
//                 judiciously.
// Revisions.....:
//===================================================================

bool
RSESReducts::RemoveStructure(int i) {

	int no_reducts = GetNoReducts();

#ifdef _DEBUG
	// Is the RSES object instantiated?
	if (reducts_ == NULL) {
		Message::Error("Embedded RSES object not instantiated.");
		return false;
	}

	// Is the index in range?
	if ((i < 0) || (i >= no_reducts)) {
		Message::Error("Reduct index out of range.");
		return false;
	}
#endif

	// Get the wrapper of the reduct to remove.
	Handle<RSESReduct> wrapper = dynamic_cast(RSESReduct *, GetStructure(i));

	if (wrapper == NULL || wrapper->reduct_ == NULL) {
		Message::Error("Failed to access embedded RSES reduct.");
		return false;
	}

	int j, index = Undefined::Integer();

	// Locate index into the TRedRulMem object, if present.
	try {

		if (reducts_->GetRed(i) == wrapper->reduct_) { // Is there a one-to-one correspondence?
			index = i;
		}
		else {                                         // Search through all embedded reducts.
			for (j = no_reducts - 1; j >= 0; j--) {
				if (reducts_->GetRed(j) == wrapper->reduct_) {
					index = j;
					break;
				}
			}
		}

		if (index == Undefined::Integer()) {
			Message::Error("Index into embedded RSES reduct and rule memory not found.");
			return false;
		}

	}

	// Catch any exceptions thrown by the RSES library.
	catch (Error &error) {
		Message::RSESError("Failed to remove reduct from the embedded RSES reduct and rule memory.", error.GetMessage());
		return false;
	}

	int no_children = GetNoChildren();

	// Remove wrappers of rules in RSES rule set children.
	for (j = 0; j < no_children; j++) {

		// Get current child.
		Handle<Structure> child = GetChild(j);

		// If the child is not a RSES rule set, continue to the next child.
		if (!child->IsA(RSESRULES))
			continue;

		Handle<RSESRules> rules = dynamic_cast(RSESRules *, child.GetPointer());

		// Check that the embedded TRedRulMem objects are the same.
		if (rules->rules_ != reducts_)
			continue;

		// Remove all rules that originate from the specified TReduct object.
		if (!rules->RemoveAllRules(*(wrapper->reduct_), index)) {
			Message::Error("Failed to remove derived rules with specified RSES reduct as parent.");
			return false;
		}

	}

	// Remove the reduct from the embedded RSES reduct and rule memory.
	try {
		reducts_->RemoveReduct(index);
	}

	// Catch any exceptions thrown by the RSES library.
	catch (Error &error) {
		Message::RSESError("Failed to remove reduct from the embedded RSES reduct and rule memory.", error.GetMessage());
		return false;
	}

	// Remove wrapper structure.
	if (!Structures::RemoveStructure(i)) {
		Message::Error("Failed to remove wrapper structure.");
		return false;
	}

	return true;

}

//-------------------------------------------------------------------
// Method........: RemoveAllStructures
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: Implicitly also removes all derived RSES rule
//                 objects.
// Revisions.....:
//===================================================================

bool
RSESReducts::RemoveAllStructures() {

#ifdef _DEBUG
	// Is the RSES object instantiated?
	if (reducts_ == NULL) {
		Message::Error("Embedded RSES object not instantiated.");
		return false;
	}
#endif

	// Remove all wrappers.
	if (!Structures::RemoveAllStructures()) {
		Message::Error("Failed to remove all wrapper structures.");
		return false;
	}

	// Clear embedded RSES object for all reducts and rules.
	try {
		reducts_->Clear();
	}
	catch (Error &error) {
		Message::RSESError("Failed to clear embedded RSES object.", error.GetMessage());
		return false;
	}

	int j, no_children = GetNoChildren();

	// Deal with RSES rule set children.
	for (j = 0; j < no_children; j++) {

		// Get current child.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合精品久久| 亚洲大片一区二区三区| 一本在线高清不卡dvd| 亚洲一区二三区| 日韩精品在线一区二区| 国产成人av资源| 一区二区三区在线免费观看 | 在线成人高清不卡| 蜜臀av在线播放一区二区三区| 国产亚洲精品福利| 欧美午夜精品久久久久久超碰| 亚洲午夜久久久久久久久久久| 在线不卡欧美精品一区二区三区| 精彩视频一区二区三区| 亚洲人成网站影音先锋播放| 欧美一级欧美三级| 国产精品中文字幕日韩精品| 亚洲一区二区三区美女| 中文字幕不卡一区| 欧美一区二区三区在线| 91蜜桃传媒精品久久久一区二区| 日本不卡的三区四区五区| 中文字幕在线播放不卡一区| 日韩女优视频免费观看| 成人福利电影精品一区二区在线观看| 亚洲成人av免费| 国产精品视频一区二区三区不卡| 3d动漫精品啪啪一区二区竹菊 | 久久久一区二区三区| 在线国产电影不卡| 国产尤物一区二区在线| 午夜国产精品影院在线观看| 国产欧美精品国产国产专区 | 亚洲成人免费看| 中文字幕视频一区二区三区久| 欧美tickling网站挠脚心| 欧洲国内综合视频| 成人av网站大全| 激情深爱一区二区| 日韩精品午夜视频| 亚洲成va人在线观看| 欧美激情一区不卡| 精品粉嫩aⅴ一区二区三区四区| 欧美情侣在线播放| 欧美午夜片在线看| 91国偷自产一区二区三区观看| 国产精品一区二区久激情瑜伽| 日本午夜一区二区| 日韩在线卡一卡二| 亚洲国产精品欧美一二99| 亚洲欧美一区二区三区极速播放| 精品国产成人在线影院| 日韩三级精品电影久久久| 欧美日韩专区在线| 欧洲国内综合视频| 欧美午夜精品久久久| 91老师国产黑色丝袜在线| 成人三级伦理片| 成人免费高清在线| 99精品视频在线播放观看| 成人美女视频在线观看18| 粉嫩高潮美女一区二区三区| 成人性色生活片| 成人夜色视频网站在线观看| 懂色一区二区三区免费观看| 国产一区二区三区香蕉| 国产成人自拍网| 国产成人综合在线观看| 成人午夜电影久久影院| 99久久99久久精品国产片果冻| 成人性生交大片免费看视频在线| 波多野结衣一区二区三区| 成人免费va视频| 91国偷自产一区二区使用方法| 欧美性大战久久| 日韩欧美二区三区| 国产区在线观看成人精品| 中文在线资源观看网站视频免费不卡| 国产精品久久久久久久久免费桃花| 国产精品丝袜一区| 一区二区欧美国产| 三级欧美韩日大片在线看| 麻豆极品一区二区三区| 国产一区久久久| 国产成人午夜视频| 色婷婷精品久久二区二区蜜臂av| 欧美日韩大陆在线| 精品国产在天天线2019| 中文文精品字幕一区二区| 亚洲欧洲综合另类在线| 青青草国产成人99久久| 国产一区不卡视频| 91美女在线观看| 欧美一区二区三区人| 国产亚洲欧美日韩俺去了| 亚洲视频一二区| 日韩高清不卡一区二区三区| 国产一区二区伦理片| 91久久香蕉国产日韩欧美9色| 日韩午夜在线观看| 一区二区三区精密机械公司| 国产乱子轮精品视频| 欧美日韩精品欧美日韩精品| 国产精品成人在线观看| 狠狠色丁香久久婷婷综| 欧美日韩午夜精品| 亚洲欧美国产毛片在线| 国产精品影音先锋| 精品免费国产二区三区 | 自拍视频在线观看一区二区| 激情深爱一区二区| 欧美丰满高潮xxxx喷水动漫| 一区二区三区中文免费| 91在线视频18| 中文字幕av不卡| 国产成人日日夜夜| 久久精品无码一区二区三区| 麻豆国产精品视频| 666欧美在线视频| 视频一区国产视频| 欧美人与禽zozo性伦| 亚洲一区日韩精品中文字幕| 色综合天天在线| 亚洲色图欧美偷拍| 99精品视频在线免费观看| 国产精品青草综合久久久久99| 国产一区二区三区免费观看| 精品日韩欧美一区二区| 蜜桃av噜噜一区二区三区小说| 欧美日韩1234| 天涯成人国产亚洲精品一区av| 欧美中文字幕亚洲一区二区va在线 | 国产精品久久久久婷婷| 夫妻av一区二区| 国产美女在线观看一区| 69久久99精品久久久久婷婷| 婷婷综合另类小说色区| 欧美日韩免费在线视频| 香蕉加勒比综合久久| 欧美日韩国产成人在线91| 日韩中文字幕麻豆| 日韩片之四级片| 国产美女一区二区三区| 国产欧美一区二区精品性色超碰| 国产成人精品免费在线| 成人欧美一区二区三区1314| 色综合色狠狠天天综合色| 亚洲三级久久久| 欧美日韩一区二区三区高清| 天天综合网 天天综合色| 欧美一区二区三区的| 黄一区二区三区| 久久精品网站免费观看| 99久久综合色| 亚洲电影第三页| 日韩一级在线观看| 国产高清精品网站| 亚洲乱码中文字幕| 欧美日韩亚洲国产综合| 捆绑调教一区二区三区| 亚洲国产电影在线观看| 一本大道久久精品懂色aⅴ| 婷婷国产v国产偷v亚洲高清| 精品99999| 91在线一区二区三区| 亚洲国产日韩综合久久精品| 欧美大片在线观看一区二区| 丁香婷婷综合激情五月色| 一区二区三区中文在线观看| 欧美刺激午夜性久久久久久久 | 欧美日韩免费视频| 久久国产麻豆精品| 国产精品久久久久桃色tv| 欧美男人的天堂一二区| 国产精品自拍在线| 艳妇臀荡乳欲伦亚洲一区| 日韩视频一区二区| 91免费视频网| 麻豆国产精品一区二区三区| 一区视频在线播放| 日韩欧美专区在线| 色哦色哦哦色天天综合| 精品一区二区成人精品| 亚洲精品综合在线| 精品少妇一区二区三区视频免付费| 99久久国产综合色|国产精品| 婷婷中文字幕综合| 国产精品人成在线观看免费| 在线91免费看| av不卡一区二区三区| 久久精品国产**网站演员| 一区二区三区在线免费观看| 久久久久88色偷偷免费| 在线不卡的av| 色播五月激情综合网| 国产成人在线色| 蜜桃精品在线观看| 亚洲国产色一区| 亚洲色图制服诱惑| 国产人久久人人人人爽|