• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ GetFirst函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了GetFirst函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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,代码来源:neoqueue.cpp


示例2: while

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


示例3: GetFirst

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


示例4: while

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


示例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,代码来源:BasicCar.cpp


示例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,代码来源:dgMemory.cpp


示例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,代码来源:sch_sheet_path.cpp


示例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,代码来源:SimpleConvexFracturing.cpp


示例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,代码来源:SimpleConvexShatter.cpp


示例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,代码来源:dNewtonTriggerManager.cpp


示例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,代码来源:C4Gui.cpp


示例12: it

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


示例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,代码来源:dParserCompiler.cpp


示例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,代码来源:dNewtonArticulationManager.cpp


示例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,代码来源:filtfind.cpp


示例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,代码来源:sch_sheet_path.cpp


示例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,代码来源:dBasicBlocksGraph.cpp


示例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,代码来源:list.cpp


示例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,代码来源:CFunctionCollection.cpp


示例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,代码来源:CFunctionCollection.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ GetFirstArgument函数代码示例发布时间:2022-05-30
下一篇:
C++ GetFirmwareParams函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap