这篇教程C++ IsComplete函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中IsComplete函数的典型用法代码示例。如果您正苦于以下问题:C++ IsComplete函数的具体用法?C++ IsComplete怎么用?C++ IsComplete使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了IsComplete函数的22个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: NotifyQuestvoid UKillQuestObjective::EnemyKilled(AMech_RPGCharacter* character){ if (character->GetClass()->IsChildOf(killClass) && !IsComplete()) { kills += 1; NotifyQuest(); } else if (IsComplete()) { character->GetGroup()->OnGroupEnemyKilled.RemoveDynamic(this, &UKillQuestObjective::EnemyKilled); }}
开发者ID:belven,项目名称:Mech_RPG,代码行数:10,
示例2: ASSERTResourceBufferHandle ResourceStream::AcquireBufferHandle() { ASSERT(IsComplete()); if (!IsComplete()) { ResourceBufferHandle handle; return handle; } ResourceBufferHandle handle(this, m_FrontBuffer->path, m_FrontBuffer->data, m_FrontBuffer->size, m_FrontBuffer->error, m_FrontBuffer->type); m_FrontBuffer->status = kResourceBufferProgress; return handle;}
开发者ID:colintan95,项目名称:raven,代码行数:15,
示例3: RGBAboolWebGLTexture::GetFakeBlackType(const char* funcName, uint32_t texUnit, FakeBlackType* const out_fakeBlack){ const char* incompleteReason; bool initFailed = false; if (!IsComplete(funcName, texUnit, &incompleteReason, &initFailed)) { if (initFailed) { mContext->ErrorOutOfMemory("%s: Failed to initialize texture data.", funcName); return false; // The world just exploded. } if (incompleteReason) { mContext->GenerateWarning("%s: Active texture %u for target 0x%04x is" " 'incomplete', and will be rendered as" " RGBA(0,0,0,1), as per the GLES 2.0.24 $3.8.2: %s", funcName, texUnit, mTarget.get(), incompleteReason); } *out_fakeBlack = FakeBlackType::RGBA0001; return true; } *out_fakeBlack = FakeBlackType::None; return true;}
开发者ID:alphan102,项目名称:gecko-dev,代码行数:28,
示例4: AddFragment/*! Reassembles the fragments to the specified buffer /a to. This buffer must have been added via AddFragment() before.*/status_tFragmentPacket::Reassemble(net_buffer* to){ if (!IsComplete()) return B_ERROR; net_buffer* buffer = NULL; net_buffer* fragment; while ((fragment = fFragments.RemoveHead()) != NULL) { if (buffer != NULL) { status_t status; if (to == fragment) { status = gBufferModule->merge(fragment, buffer, false); buffer = fragment; } else status = gBufferModule->merge(buffer, fragment, true); if (status != B_OK) return status; } else buffer = fragment; } if (buffer != to) panic("ipv6 packet reassembly did not work correctly."); to->index = fIndex; // reset the buffer's device index return B_OK;}
开发者ID:Barrett17,项目名称:haiku-contacts-kit-old,代码行数:34,
示例5: NotifyIfComplete void NotifyIfComplete() { if (IsComplete()) { Complete.notify_all(); } }
开发者ID:djdron,项目名称:zxtune,代码行数:7,
示例6: GetComponents//-----------------------------------------------------------------------------////-----------------------------------------------------------------------------void CDmeSingleIndexedComponent::GetComponents( CUtlVector< int > &components, CUtlVector< float > &weights ) const{ if ( IsComplete() ) { const int nComponents = Count(); int *pComponents = reinterpret_cast< int * >( alloca( nComponents * sizeof( int ) ) ); float *pWeights = reinterpret_cast< float * >( alloca( nComponents * sizeof( float ) ) ); for ( int i = 0; i < nComponents; ++i ) { pComponents[ i ] = i; pWeights[ i ] = 1.0f; } components.CopyArray( pComponents, nComponents ); weights.CopyArray( pWeights, nComponents ); } else { components.RemoveAll(); components.CopyArray( m_Components.Base(), m_Components.Count() ); weights.RemoveAll(); weights.CopyArray( m_Weights.Base(), m_Weights.Count() ); }}
开发者ID:DeadZoneLuna,项目名称:SourceEngine2007,代码行数:30,
|