本文整理汇总了C++中NavigationStack::getCache方法的典型用法代码示例。如果您正苦于以下问题:C++ NavigationStack::getCache方法的具体用法?C++ NavigationStack::getCache怎么用?C++ NavigationStack::getCache使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NavigationStack
的用法示例。
在下文中一共展示了NavigationStack::getCache方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PrintDocuments_Cmd
// DEBUG
void UI_Main::PrintDocuments_Cmd( void )
{
int i;
if( !self )
return;
for( i = 0; i < UI_NUM_CONTEXTS; i++ ) {
UI_Navigation &navigation = self->navigations[i];
Com_Printf("Context %i navigation stack:\n", i);
for( UI_Navigation::iterator it = navigation.begin(); it != navigation.end(); ++it ) {
NavigationStack *nav = *it;
nav->printStack();
DocumentCache *cache = nav->getCache();
if( cache ) {
Com_Printf("Document cache:\n");
cache->printCache();
}
Com_Printf("\n");
}
}
}
示例2: reloadUI
void UI_Main::reloadUI( void )
{
int i;
for( i = 0; i < UI_NUM_CONTEXTS; i++ ) {
UI_Navigation &navigation = navigations[i];
NavigationStack *navigator = navigation.front();
while( !navigation.empty() ) {
NavigationStack *stack = navigation.front();
navigation.pop_front();
// clear the navigation stack
stack->popAllDocuments();
stack->getCache()->clearCaches();
if( stack != navigator ) {
__delete__( stack );
}
}
navigation.push_front( navigator );
}
if( serverBrowser ) {
serverBrowser->stopUpdate();
}
if( demos ) {
demos->Reset();
}
destroyDataSources();
createDataSources();
preloadUI();
showUI( true );
}