您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ GetFirst函数代码示例

51自学网 2021-06-01 21:07:59
  C++
这篇教程C++ GetFirst函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中GetFirst函数的典型用法代码示例。如果您正苦于以下问题:C++ GetFirst函数的具体用法?C++ GetFirst怎么用?C++ GetFirst使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了GetFirst函数的25个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: GetAndDeleteFirst

//从队列总弹出第一个元素int CNEOPopBuffer::GetAndDeleteFirst(char *szBuffer,int nBufferSize){    if(!ICanWork())        return 0;    int nRet=GetFirst(szBuffer,nBufferSize);//获得第一个元素    DeleteFirst();    return nRet;}
开发者ID:neoguojing,项目名称:neolibs,代码行数:9,


示例2: while

//---------------------------------------------------------// Destructor//---------------------------------------------------------MLStubCache::~MLStubCache(){    MLCHASHENTRY *phe = (MLCHASHENTRY*)GetFirst();    while (phe) {        phe->m_pMLStub->DecRef();        phe = (MLCHASHENTRY*)GetNext((BYTE*)phe);    }}
开发者ID:ArildF,项目名称:masters,代码行数:11,


示例3: GetFirst

ValueList::~ValueList(){    Value* pvalue = GetFirst();    while (pvalue) {        pvalue->RemoveParent(this);        pvalue = GetNext();    }}
开发者ID:AllegianceZone,项目名称:Allegiance,代码行数:8,


示例4: while

void __fastcall TScreenSpy::Execute(){    while (!Terminated && FSocket->State == wsConnected)    {        if (CheckScr()) GetFirst(); else GetNext();        Sleep(30);    }}
开发者ID:darwinbeing,项目名称:uims,代码行数:8,


示例5: Debug

	// use this to display debug information about vehicle 	void Debug () const	{		for (dListNode* ptr = GetFirst(); ptr; ptr = ptr->GetNext()) {			CustomVehicleController* const controller = &ptr->GetInfo();			BasicCarEntity* const vehicleEntity = (BasicCarEntity*)NewtonBodyGetUserData (controller->GetBody());			vehicleEntity->Debug();		}	}
开发者ID:Rick16bit,项目名称:newton-dynamics,代码行数:9,


示例6: GetMemoryUsed

	dgInt32 GetMemoryUsed () const	{		dgInt32 mem = m_memoryUsed;		for (dgList<dgMemoryAllocator*>::dgListNode* node = GetFirst(); node; node = node->GetNext()) {			mem += node->GetInfo()->GetMemoryUsed();		}		return mem;	}
开发者ID:ColinGilbert,项目名称:noobEngine,代码行数:8,


示例7: ClearModifyStatus

void SCH_SHEET_LIST::ClearModifyStatus(){    for( SCH_SHEET_PATH* sheet = GetFirst(); sheet; sheet = GetNext() )    {        if( sheet->LastScreen() )            sheet->LastScreen()->ClrModify();    }}
开发者ID:bpkempke,项目名称:kicad-source-mirror,代码行数:8,


示例8:

	virtual ~FractureEffect()	{		for (dListNode* node = GetFirst(); node; node = node->GetNext()) {			FractureAtom& atom = node->GetInfo();			NewtonDestroyCollision(atom.m_collision);			atom.m_mesh->Release();		}	}
开发者ID:Hurleyworks,项目名称:newton-dynamics,代码行数:8,


示例9:

	~ShatterEffect()	{		for (dListNode* node = GetFirst(); node; node = node->GetNext()) {			ShatterAtom& atom = node->GetInfo();			NewtonReleaseCollision (m_world, atom.m_collision);			atom.m_mesh->Release();		}	}
开发者ID:Naddiseo,项目名称:Newton-Dynamics-fork,代码行数:8,


示例10: GetFirst

dNewtonTriggerManager::dNewtonTrigger* dNewtonTriggerManager::GetFirstTrigger() const{	dListNode* const node = GetFirst();	if (node) {		return (dNewtonTriggerManager::dNewtonTrigger*) NewtonBodyGetUserData (node->GetInfo().GetBody());	}	return NULL;}
开发者ID:Hurleyworks,项目名称:newton-dynamics,代码行数:8,


示例11: GetMouseControlledDialogCount

int32_t Screen::GetMouseControlledDialogCount()	{	Dialog *pDlg; int32_t iResult=0;	for (Element *pEl = GetFirst(); pEl; pEl = pEl->GetNext())		if (pDlg = pEl->GetDlg())			if (pDlg->IsShown() && pDlg->IsMouseControlled())				++iResult;	return iResult;	}
开发者ID:lluchs,项目名称:clonk-rage,代码行数:9,


示例12: it

void BaseSystem::InitSystems (){	BaseSystem* it ( GetFirst () );	while( it != nullptr )	{		it->Init ();		GetNext ( it );	}}
开发者ID:askovpen,项目名称:NoCheatZ-4,代码行数:9,


示例13: FindOperator

	bool FindOperator(dCRCTYPE symbol) const	{		for (dListNode* node = GetFirst(); node; node = node->GetNext()) {			if (symbol == node->GetInfo()) {				return true;			}		}		return false;	}
开发者ID:famorcia,项目名称:newton-dynamics,代码行数:9,


示例14: dAssert

dNewtonArticulationManager::dNewtonArticulationController* dNewtonArticulationManager::GetFirstController() const{	dAssert (0);	dListNode* const node = GetFirst();	if (node) {		return (dNewtonArticulationManager::dNewtonArticulationController*) NewtonBodyGetUserData (node->GetInfo().GetBody());	}	return NULL;}
开发者ID:leegoonz,项目名称:newton-dynamics,代码行数:9,


示例15:

const wxFilterClassFactory *wxFilterClassFactory::Find(const wxString& protocol, wxStreamProtocolType type){    for (const wxFilterClassFactory *f = GetFirst(); f; f = f->GetNext())        if (f->CanHandle(protocol, type))            return f;    return NULL;}
开发者ID:chromylei,项目名称:third_party,代码行数:9,


示例16: GetFirst

SCH_ITEM* SCH_SHEET_LIST::FindNextItem( KICAD_T aType, SCH_SHEET_PATH** aSheetFoundIn,                                        SCH_ITEM* aLastItem, bool aWrap ){    bool hasWrapped = false;    bool firstItemFound = false;    SCH_ITEM*       drawItem = NULL;    SCH_SHEET_PATH* sheet = GetFirst();    while( sheet )    {        drawItem = sheet->LastDrawList();        while( drawItem )        {            if( drawItem->Type() == aType )            {                if( aLastItem == NULL || firstItemFound )                {                    if( aSheetFoundIn )                        *aSheetFoundIn = sheet;                    return drawItem;                }                else if( !firstItemFound && drawItem == aLastItem )                {                    firstItemFound = true;                }            }            drawItem = drawItem->Next();        }        sheet = GetNext();        if( sheet == NULL && aLastItem && aWrap && !hasWrapped )        {            hasWrapped = true;            sheet = GetFirst();        }    }    return NULL;}
开发者ID:transistorgrab,项目名称:kicad-source-mirror,代码行数:44,


示例17: CalculateSuccessorsAndPredecessors

void dBasicBlocksGraph::CalculateSuccessorsAndPredecessors (){	m_mark += 1;	dList<dBasicBlock*> stack;	stack.Append(&GetFirst()->GetInfo());	while (stack.GetCount()) {		dBasicBlock* const block = stack.GetLast()->GetInfo();		stack.Remove(stack.GetLast()->GetInfo());		if (block->m_mark < m_mark) {			block->m_mark = m_mark;			//m_traversalBlocksOrder.Addtop(block);//block->Trace();			dCILInstr* const instruction = block->m_end->GetInfo();			dAssert(instruction->IsBasicBlockEnd());			if (instruction->GetAsIF()) {				dCILInstrConditional* const ifInstr = instruction->GetAsIF();				dAssert (ifInstr->GetTrueTarget());				dAssert (ifInstr->GetFalseTarget());				dCILInstrLabel* const target0 = ifInstr->GetTrueTarget()->GetInfo()->GetAsLabel();				dCILInstrLabel* const target1 = ifInstr->GetFalseTarget()->GetInfo()->GetAsLabel();				dBasicBlock* const block0 = target0->m_basicBlock;				dAssert (block0);				block->m_successors.Append (block0);				block0->m_predecessors.Append(block);				stack.Append (block0);				dBasicBlock* const block1 = target1->m_basicBlock;				dAssert(block1);				block->m_successors.Append(block1);				block1->m_predecessors.Append(block);				stack.Append(block1);			} else if (instruction->GetAsGoto()) {				dCILInstrGoto* const gotoInst = instruction->GetAsGoto();				dAssert(gotoInst->GetTarget());				dCILInstrLabel* const target = gotoInst->GetTarget()->GetInfo()->GetAsLabel();				dBasicBlock* const block0 = target->m_basicBlock;				dAssert(block0);				block->m_successors.Append(block0);				block0->m_predecessors.Append(block);				stack.Append(block0);			}		}	}	DeleteUnreachedBlocks();}
开发者ID:iokto,项目名称:newton-dynamics,代码行数:56,


示例18:

void *wxListBase::FirstThat(wxListIterateFunction F){    for ( wxNodeBase *current = GetFirst(); current; current = current->GetNext() )    {        if ( (*F)(current->GetData()) )            return current->GetData();    }    return NULL;}
开发者ID:czxxjtu,项目名称:wxPython-1,代码行数:10,


示例19: GetFirst

CString CFunctionCollection::SymbolsProvided() {  CString result;  COHScriptObject *p_oh_script_object = GetFirst();  while (p_oh_script_object != NULL) {    result += p_oh_script_object->name();     result += " ";    p_oh_script_object = GetNext();    }  return result;}
开发者ID:awptimus,项目名称:openholdembot,代码行数:10,


示例20: lock

void CFunctionCollection::ClearCache() {  CSLock lock(m_critsec);  COHScriptObject *p_oh_script_object = GetFirst();  while (p_oh_script_object != NULL) {    if (p_oh_script_object->IsFunction() || p_oh_script_object->IsOpenPPLSymbol()) {      ((CFunction*)p_oh_script_object)->ClearCache();    }    p_oh_script_object = GetNext();  }}
开发者ID:awptimus,项目名称:openholdembot,代码行数:10,


示例21: BuildConnections

int BuildConnections(LISTE *PLC_List){		ELEMENT *elt=GetFirst(PLC_List);	if (elt!=NULL) do	{			PLC *plc=elt->Data;		if (BuildSession(plc)) BuildConnection(plc);	} while ((elt=GetNext(PLC_List,elt))!=NULL);	return(CONNECTIONs.Count);}
开发者ID:Felipeasg,项目名称:TuxPLC,代码行数:10,


示例22: SolveConstraintsAndIntegrate

void dgDeformableBodiesUpdate::SolveConstraintsAndIntegrate (dgFloat32 timestep){    for (dgListNode* node = GetFirst(); node; node = node->GetNext()) {        dgCollisionDeformableMesh* const softShape = node->GetInfo();        if (softShape->GetBody()) {            softShape->ResolvePositionsConstraints (timestep);        }    }}
开发者ID:ColinGilbert,项目名称:noobEngine,代码行数:10,


示例23: ApplyExternaForces

void dgDeformableBodiesUpdate::ApplyExternaForces(dgFloat32 timestep){    for (dgListNode* node = GetFirst(); node; node = node->GetNext()) {        dgCollisionDeformableMesh* const softShape = node->GetInfo();        if (softShape->GetBody()) {            softShape->ApplyExternalForces (timestep);        }    }}
开发者ID:ColinGilbert,项目名称:noobEngine,代码行数:10,


示例24: UpdatePose

void dBonesToPoseBinding::UpdatePose() const{	if (m_updateCallback) {		for (dListNode* node = GetFirst(); node; node = node->GetNext()) {			dBindFrameToNode& bindFrame = node->GetInfo();			m_updateCallback (bindFrame.m_userData, &bindFrame.m_sourceTranform->m_posit[0], &bindFrame.m_sourceTranform->m_rotation.m_q0); //break;		}	}}
开发者ID:Kaoswerk,项目名称:newton-dynamics,代码行数:10,


示例25: GetFirst

wxResourceCache::~wxResourceCache (){    wxList::compatibility_iterator node = GetFirst ();    while (node) {        wxObject *item = (wxObject *)node->GetData();        delete item;        node = node->GetNext ();    }}
开发者ID:CodeSmithyIDE,项目名称:wxWidgets,代码行数:10,



注:本文中的GetFirst函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ GetFirstArgument函数代码示例
C++ GetFirmwareParams函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。