本文整理汇总了C++中GetFirst函数的典型用法代码示例。如果您正苦于以下问题:C++ GetFirst函数的具体用法?C++ GetFirst怎么用?C++ GetFirst使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetFirst函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetAndDeleteFirst
//从队列总弹出第一个元素
int CNEOPopBuffer::GetAndDeleteFirst(char *szBuffer,int nBufferSize)
{
if(!ICanWork())
return 0;
int nRet=GetFirst(szBuffer,nBufferSize);//获得第一个元素
DeleteFirst();
return nRet;
}
示例2: while
//---------------------------------------------------------
// Destructor
//---------------------------------------------------------
MLStubCache::~MLStubCache()
{
MLCHASHENTRY *phe = (MLCHASHENTRY*)GetFirst();
while (phe) {
phe->m_pMLStub->DecRef();
phe = (MLCHASHENTRY*)GetNext((BYTE*)phe);
}
}
示例3: GetFirst
ValueList::~ValueList()
{
Value* pvalue = GetFirst();
while (pvalue) {
pvalue->RemoveParent(this);
pvalue = GetNext();
}
}
示例4: while
void __fastcall TScreenSpy::Execute()
{
while (!Terminated && FSocket->State == wsConnected)
{
if (CheckScr()) GetFirst(); else GetNext();
Sleep(30);
}
}
示例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();
}
}
示例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;
}
示例7: ClearModifyStatus
void SCH_SHEET_LIST::ClearModifyStatus()
{
for( SCH_SHEET_PATH* sheet = GetFirst(); sheet; sheet = GetNext() )
{
if( sheet->LastScreen() )
sheet->LastScreen()->ClrModify();
}
}
示例8:
virtual ~FractureEffect()
{
for (dListNode* node = GetFirst(); node; node = node->GetNext()) {
FractureAtom& atom = node->GetInfo();
NewtonDestroyCollision(atom.m_collision);
atom.m_mesh->Release();
}
}
示例9:
~ShatterEffect()
{
for (dListNode* node = GetFirst(); node; node = node->GetNext()) {
ShatterAtom& atom = node->GetInfo();
NewtonReleaseCollision (m_world, atom.m_collision);
atom.m_mesh->Release();
}
}
示例10: GetFirst
dNewtonTriggerManager::dNewtonTrigger* dNewtonTriggerManager::GetFirstTrigger() const
{
dListNode* const node = GetFirst();
if (node) {
return (dNewtonTriggerManager::dNewtonTrigger*) NewtonBodyGetUserData (node->GetInfo().GetBody());
}
return NULL;
}
示例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;
}
示例12: it
void BaseSystem::InitSystems ()
{
BaseSystem* it ( GetFirst () );
while( it != nullptr )
{
it->Init ();
GetNext ( it );
}
}
示例13: FindOperator
bool FindOperator(dCRCTYPE symbol) const
{
for (dListNode* node = GetFirst(); node; node = node->GetNext()) {
if (symbol == node->GetInfo()) {
return true;
}
}
return false;
}
示例14: dAssert
dNewtonArticulationManager::dNewtonArticulationController* dNewtonArticulationManager::GetFirstController() const
{
dAssert (0);
dListNode* const node = GetFirst();
if (node) {
return (dNewtonArticulationManager::dNewtonArticulationController*) NewtonBodyGetUserData (node->GetInfo().GetBody());
}
return NULL;
}
示例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;
}