當前位置: 首頁>>代碼示例>>C++>>正文


C++ End函數代碼示例

本文整理匯總了C++中End函數的典型用法代碼示例。如果您正苦於以下問題:C++ End函數的具體用法?C++ End怎麽用?C++ End使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了End函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1:

CharMap::~CharMap()
{
	for (std::list<CodePage *>::iterator it = Begin(); it != End(); ++it) {
		delete *it;
	}
}
開發者ID:robojan,項目名稱:EMGL,代碼行數:6,代碼來源:charmap.cpp

示例2: End

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void CollectorFeedWithTimeoutCommand::Interrupted() {
End();
}
開發者ID:FRCTeam1073-TheForceTeam,項目名稱:robot14,代碼行數:5,代碼來源:CollectorFeedWithTimeoutCommand.cpp

示例3: SAFE_DELETE

GameStateShop::~GameStateShop()
{
    SAFE_DELETE( cycleCardsButton );
    SAFE_DELETE( showCardListButton );
    End();
}
開發者ID:cymbiotica,項目名稱:wagic,代碼行數:6,代碼來源:GameStateShop.cpp

示例4: End

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void DriveStraight::Interrupted() {
	End();
}
開發者ID:HiceS,項目名稱:synthesis,代碼行數:5,代碼來源:DriveStraight.cpp

示例5: End

CTimeMeasuring::~CTimeMeasuring(){
	End();
}
開發者ID:H2-T23,項目名稱:Linux,代碼行數:3,代碼來源:TimeMeasuring.cpp

示例6: End

	T * End (T * end, std::optional<std::vector<T>> & opt) noexcept {
	
		return opt ? End(*opt) : opt;
	
	}
開發者ID:RobertLeahy,項目名稱:UnicodePP,代碼行數:5,代碼來源:vector.hpp

示例7: OnBigWillDied

	void OnBigWillDied()
	{
		GetUnit()->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "The Affray is over!");

		End();
	}
開發者ID:Asandru,項目名稱:Script-Land,代碼行數:6,代碼來源:Quest_Warrior.cpp

示例8: Increment

	void   Increment (string text)             { Set_Periods (Dtime (text), Start (), End (), Wrap_Flag ()); }
開發者ID:kravitz,項目名稱:transims5,代碼行數:1,代碼來源:Time_Periods.hpp

示例9: End

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void BSetHaut::Interrupted()
{
	End();
}
開發者ID:Ultime5528,項目名稱:Stronghold,代碼行數:6,代碼來源:BSetHaut.cpp

示例10: End

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void Shoot::Interrupted() { End(); }
開發者ID:FRC-Team-4143,項目名稱:Stronghold2016,代碼行數:3,代碼來源:Shoot.cpp

示例11: End

void ChevalAuton::Interrupted()
{
	End();
}
開發者ID:CRRobotics,項目名稱:2016Robot,代碼行數:4,代碼來源:ChevalAuton.cpp

示例12: GColor

/*!
	@fn int GColor(int ArgC, char * ArgV[])
*/
int GColor(int ArgC, char * ArgV[])
{
	if (ArgC <= 2)
	{
		cerr << endl << endl;
		cerr << "Graph Coloring Problem" << endl << endl;
		cerr << "Usage:" << endl;
		cerr << ArgV[0] << " " << ArgV[1] << " -i MaxIter [-t TabuLength -s RandomSeed]" << endl << endl;
		cerr << "Input:" << endl;
		cerr << "NumColor EdgeProbability NumVertex, NumEdge EdgeVertexPairs" << endl << endl;
		cerr << "Output:" << endl;
		cerr << "BestViolation Iteration Time" << endl;
		cerr << "MemoryUsedByTheProgram" << endl;
		cerr << "TabuLength NumColor EdgeProbability NumVertex, NumEdge EdgeVertexPairs"
					"[VertexColors] RandomSeed" << endl;
		cerr << endl << endl;
		return ExitOnFailure;
	}

	Dim T = 0;	//	Tabu size
	Itn I = 0;	//	Max iteration
	Rnd theRnd;

	for(Idx tIdx = 2; tIdx < castIdx(ArgC); ++tIdx)
	{
		if (ArgV[tIdx][0] == '-' && ArgV[tIdx][1] == 't')
			T = parseN(ArgV[tIdx+1]);
		else if (ArgV[tIdx][0] == '-' && ArgV[tIdx][1] == 'i')
			I = parseN(ArgV[tIdx+1]);
		else if (ArgV[tIdx][0] == '-' && ArgV[tIdx][1] == 's')
			theRnd.seed(parseN(ArgV[tIdx+1]));
	}

	if(!I)
	{
		cerr << endl;
		cerr << "Error in commandline parameter/value. Run only with parameter " << ArgV[1] << " to see usage." << endl;
		cerr << endl;
		return ExitOnFailure;
	}

	Dim L; cin >> L;				// 	Num color
	Flt P; cin >> P;				// 	Edge probability
	Dim V; cin >> V;				//	Num vertex
	Dim E; cin >> E;				//	Num edges
	b1<Int, kmm> Start(E), End(E);	//	Edges

	for(Idx tIdx = 0; tIdx < E; ++tIdx)
	{
		Int tInt;
		cin >> tInt;
		Start[tIdx] = tInt - 1;		//	zero based numbering
		cin >> tInt;
		End[tIdx] = tInt - 1;		//	zero based numbering
	}

	if (!L || eq<Flt>::iof(P,0) || !V || !E)
	{
		cerr << endl;
		cerr << "Error in input values." << endl;
		cerr << endl;
		return ExitOnFailure;
	}

	Sys & tSys = Sys::refm(Sys::def());

	EvalTi::def(tSys.SysHdl);
	HintTi::def(tSys.SysHdl);

	QcSv2Tabu::def(tSys.SysHdl, T);


	b1<Prm, kmm> tColors(V), tNotEquals(E);

	for(Idx tIdx = 0; tIdx < V; ++tIdx)
		tColors[tIdx] = Prm(Tv, StatRangeVarVi::def(tSys.SysHdl , 1, L));

	for(Idx tIdx = 0; tIdx < E; ++tIdx)
 		tNotEquals[tIdx] = Prm(Tf, BneuXiFcMi::def(Xv, tSys.SysHdl, tColors[Start[tIdx]], tColors[End[tIdx]]), MasM | MasEn);

	Prm TopSum = Prm(Tf, SumXiEFcMiHn::def(Xm | En, tSys.SysHdl, tNotEquals.items(), tNotEquals.itemCount()));

	Prm HintHeap = Prm(Tf, Sv2TabuMaxHeapHiFrHi::def(tSys.SysHdl, TopSum));

	Hdl const VarSelcHdl = RankedHintVar1Sp::def( tSys.SysHdl, HintHeap);
	Hdl const ValSelcHdl = MinVal1StatRangeSdViZi::def( Zm, tSys.SysHdl, TopSum);
	MinVal1StatRangeSdViZi::refm(tSys.SysHdl, ValSelcHdl).includeCurrValue(false);

	Refc(tTopSum, SumXiEFcMiHn, tSys.SysHdl, TopSum.TermHdl);

	tSys.initialiseVarsStatRand(theRnd);

	#if CompLazyHalf
	Selc::refm(tSys.SysHdl, VarSelcHdl).activate(true);
	Selc::refm(tSys.SysHdl, ValSelcHdl).activate(true);
	#endif

//.........這裏部分代碼省略.........
開發者ID:swakkhar,項目名稱:kangaroo,代碼行數:101,代碼來源:gcolor.cpp

示例13: End

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void MoveForward::Interrupted()
{
 End();
}
開發者ID:first-robocopz,項目名稱:FFR-FRC-2016-Code,代碼行數:6,代碼來源:MoveForward.cpp

示例14: End

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void DrivingWithJoystick::Interrupted()
{
	End();
}
開發者ID:Videogameman11,項目名稱:Command-Based-2016,代碼行數:6,代碼來源:DrivingWithJoystick.cpp

示例15: switch

MsgResult RenderDemoDlg::Message(Msg* Message)
{
	// See if it is for us
	if (IS_OUR_DIALOG_MSG(Message))
	{
		// it is
		DialogMsg* Msg = (DialogMsg*)Message;

		// decide what to do
		switch (Msg->DlgMsg)
		{
			// Create message
			case DIM_CREATE :
				break;

			// Close and destroy the dialog 
			case DIM_COMMIT :
			case DIM_CANCEL :
			{
				Close();
				End();
				break;
			}

			case DIM_LFT_BN_CLICKED :
			{
				// See which button was pressed
				if (Msg->GadgetID == _R(IDC_REDRAWBTN))
				{
					// Toggle the colour
					ShowFirst = ShowFirst ? FALSE : TRUE;

					// invalidate the gadget with the picture in it
					InvalidateGadget(_R(IDC_REDRAW_ME));
				}
				break;
			}

			case DIM_REDRAW :
			{
				// This is where all the redrawing is done
				// Which control in the window is sending the redraw message (if there are many
				// grdraw controls you can tell which is which from the Gadget ID
				if (Msg->GadgetID == _R(IDC_REDRAW_ME))
				{
					// Draw the redraw_me control in here
					// Render this control
					RenderControl((ReDrawInfoType*) Msg->DlgMsgParam);
				}
				else
				// there are no other controls that should get a redraw message ever
				{
					// give out an error in debug builds, ignore in retail builds
					ERROR3("Got a redraw message for a control I don't know about");
					break;
				}

				break;
			}
			default:
				break;
		}
		
		// Return
		return (DLG_EAT_IF_HUNGRY(Msg));
	}

	return OK;  
}  
開發者ID:vata,項目名稱:xarino,代碼行數:69,代碼來源:renddlg.cpp


注:本文中的End函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。