当前位置: 首页>>代码示例>>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;未经允许,请勿转载。