本文整理汇总了C++中TemporaryStorageArray::ClearChanges方法的典型用法代码示例。如果您正苦于以下问题:C++ TemporaryStorageArray::ClearChanges方法的具体用法?C++ TemporaryStorageArray::ClearChanges怎么用?C++ TemporaryStorageArray::ClearChanges使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TemporaryStorageArray
的用法示例。
在下文中一共展示了TemporaryStorageArray::ClearChanges方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
/**
* ResolverObject (re)entry point.
* This cannot be made a call to a virtual function because virtual functions
* do not like NULL and checking for NULL *everywhere* is more cumbersome than
* this little helper function.
* @param group the group to resolve for
* @param object information needed to resolve the group
* @param top_level true if this is a top-level SpriteGroup, false if used nested in another SpriteGroup.
* @return the resolved group
*/
/* static */ const SpriteGroup *SpriteGroup::Resolve(const SpriteGroup *group, ResolverObject &object, bool top_level)
{
if (group == NULL) return NULL;
if (top_level) {
_temp_store.ClearChanges();
}
return group->Resolve(object);
}