本文整理匯總了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;
}