|
Oolite
|
#include <OOCacheManager.h>
Instance Methods | |
| (id) | - objectForKey:inCache: |
| (void) | - setObject:forKey:inCache: |
| (void) | - removeObjectForKey:inCache: |
| (void) | - clearCache: |
| (void) | - clearAllCaches |
| (void) | - reloadAllCaches |
| (void) | - setAllowCacheWrites: |
| (NSString *) | - cacheDirectoryPathCreatingIfNecessary: |
| (void) | - flush |
| (void) | - finishOngoingFlush |
| (id) | - init [implementation] |
| (void) | - dealloc [implementation] |
| (NSString *) | - description [implementation] |
| (NSString *) | - cachePathCreatingIfNecessary: [implementation] |
| (void) | - loadCache [implementation] |
| (void) | - write [implementation] |
| (void) | - clear [implementation] |
| (BOOL) | - dirty [implementation] |
| (void) | - markClean [implementation] |
| (NSDictionary *) | - loadDict [implementation] |
| (BOOL) | - writeDict: [implementation] |
| (void) | - buildCachesFromDictionary: [implementation] |
| (NSDictionary *) | - dictionaryOfCaches [implementation] |
| (BOOL) | - directoryExists:create: [implementation] |
| (id) | - copyWithZone: [implementation] |
| (id) | - retain [implementation] |
| (NSUInteger) | - retainCount [implementation] |
| (void) | - release [implementation] |
| (id) | - autorelease [implementation] |
Class Methods | |
| (OOCacheManager *) | + sharedCache |
| (Octree *) | + octreeForModel: |
| (void) | + setOctree:forModel: |
| (static void) | + VFRAddFace [implementation] |
| (static NSUInteger) | + VFRGetCount [implementation] |
| (static NSUInteger) | + VFRGetFaceAtIndex [implementation] |
| (NSDictionary *) | + meshDataForName: [implementation] |
| (void) | + setMeshData:forName: [implementation] |
| (id) | + allocWithZone: [implementation] |
Private Attributes | |
| NSMutableDictionary * | _caches |
| id | _scheduledWrite |
| BOOL | _permitWrites |
| BOOL | _dirty |
Definition at line 34 of file OOCacheManager.h.
|
implementation |
Provided by category OOCacheManager(Singleton).
Definition at line 594 of file OOCacheManager.m.
|
implementation |
Provided by category OOCacheManager(Singleton).
Definition at line 622 of file OOCacheManager.m.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 513 of file OOCacheManager.m.
Referenced by OOCacheManager(Private)::loadCache.
| - (NSString *) cacheDirectoryPathCreatingIfNecessary: | (BOOL) | create |
Definition at line 256 of file OOCacheManager.m.
References nil.
Referenced by OOCacheManager(Private)::cachePathCreatingIfNecessary:, OOOXZManager(NSURLConnectionDataDelegate)::downloadPath, and OOOXZManager(NSURLConnectionDataDelegate)::manifestPath.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 567 of file OOCacheManager.m.
References cacheDirectoryPathCreatingIfNecessary:.
Referenced by OOCacheManager(Private)::loadDict, and OOCacheManager(Private)::writeDict:.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 417 of file OOCacheManager.m.
Referenced by clearAllCaches, dealloc, OOCacheManager(Private)::loadCache, and reloadAllCaches.
| - (void) clearAllCaches |
Definition at line 223 of file OOCacheManager.m.
References _caches, _dirty, clear, and clearAllCaches.
Referenced by ResourceManager::checkCacheUpToDateForPaths:, clearAllCaches, and ResourceManager::setUseAddOns:.
| - (void) clearCache: | (NSString*) | inCacheKey |
Definition at line 210 of file OOCacheManager.m.
References _caches, _dirty, kOOLogDataCacheClearSuccess, nil, and OODebugLog.
|
implementation |
Provided by category OOCacheManager(Singleton).
Definition at line 603 of file OOCacheManager.m.
|
implementation |
Definition at line 122 of file OOCacheManager.m.
References clear, and dealloc.
Referenced by dealloc.
|
implementation |
Definition at line 129 of file OOCacheManager.m.
References description, and dirty.
Referenced by description.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 537 of file OOCacheManager.m.
Referenced by OOCacheManager(Private)::write.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 542 of file OOCacheManager.m.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 423 of file OOCacheManager.m.
Referenced by description, and flush.
| - (void) finishOngoingFlush |
Definition at line 244 of file OOCacheManager.m.
References finishOngoingFlush, OOAsyncWorkManager::sharedAsyncWorkManager, and OOAsyncWorkManager::waitForTaskToComplete:.
Referenced by GameController::applicationShouldTerminate:, and finishOngoingFlush.
| - (void) flush |
Definition at line 236 of file OOCacheManager.m.
References _permitWrites, _scheduledWrite, dirty, flush, markClean, nil, and write.
Referenced by Universe::dealloc, PlayerEntity::docked, flush, OOOXPVerifier(OOPrivate)::run, and PlayerEntity::setGuiToIntroFirstGo:.
|
implementation |
Definition at line 112 of file OOCacheManager.m.
References _permitWrites, init, loadCache, and nil.
Referenced by init.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 285 of file OOCacheManager.m.
Referenced by init, and reloadAllCaches.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 433 of file OOCacheManager.m.
Referenced by OOCacheManager(Private)::loadCache.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 428 of file OOCacheManager.m.
Referenced by flush, OOCacheManager(Private)::loadCache, and OOCacheManager(Private)::write.
|
implementation |
Provided by category OOCacheManager(OOMesh).
Definition at line 2006 of file OOMesh.m.
Referenced by OOMesh(Private)::loadData:scaleFactor:.
| - (id) objectForKey: | (NSString*) | inKey | |
| inCache: | (NSString*) | inCacheKey |
Definition at line 144 of file OOCacheManager.m.
References kOOLogDataCacheRetrieveFailed, kOOLogDataCacheRetrieveSuccess, nil, and OODebugLog.
Referenced by ResourceManager::arrayFromFilesNamed:inFolder:andMerge:cache:, CachedCompiledScript(), ResourceManager::checkCacheUpToDateForPaths:, OOMaterial(OOConvenienceCreators)::defaultShaderMaterialWithName:cacheKey:configuration:macros:bindingTarget:, ResourceManager::dictionaryFromFilesNamed:inFolder:mergeMode:cache:, OOShipRegistry::init, OOShipRegistry(OODataLoader)::loadCachedRoleProbabilitySets, Universe::loadConditionScripts, LoadScriptWithName(), AI(OOPrivate)::loadStateMachine:jsName:, OOCacheManager(OOMesh)::meshDataForName:, OOCacheManager(Octree)::octreeForModel:, ResourceManager::pathForFileNamed:inFolder:cache:, ResourceManager::preloadFilePathFor:inFolder:atPath:, OOPListScript::scriptsInPListFile:, and Universe::soundNameForCustomSoundKey:.
| + (Octree *) octreeForModel: | (NSString*) | inKey |
Provided by category OOCacheManager(Octree).
Definition at line 2024 of file OOMesh.m.
|
implementation |
Provided by category OOCacheManager(Singleton).
Definition at line 618 of file OOCacheManager.m.
| - (void) reloadAllCaches |
Definition at line 230 of file OOCacheManager.m.
References clear, loadCache, and reloadAllCaches.
Referenced by reloadAllCaches, and ResourceManager::setUseAddOns:.
| - (void) removeObjectForKey: | (NSString*) | inKey | |
| inCache: | (NSString*) | inCacheKey |
Definition at line 190 of file OOCacheManager.m.
References _dirty, kOOLogDataCacheRemoveSuccess, nil, and OODebugLog.
|
implementation |
Provided by category OOCacheManager(Singleton).
Definition at line 608 of file OOCacheManager.m.
|
implementation |
Provided by category OOCacheManager(Singleton).
Definition at line 613 of file OOCacheManager.m.
| - (void) setAllowCacheWrites: | (BOOL) | flag |
Definition at line 251 of file OOCacheManager.m.
References _permitWrites.
Referenced by OOOXPVerifier(OOPrivate)::run, and ResourceManager::setUseAddOns:.
|
implementation |
Provided by category OOCacheManager(OOMesh).
Definition at line 2011 of file OOMesh.m.
Referenced by OOMesh(Private)::loadData:scaleFactor:.
| - (void) setObject: | (id) | inElement | |
| forKey: | (NSString*) | inKey | |
| inCache: | (NSString*) | inCacheKey |
Definition at line 166 of file OOCacheManager.m.
References _caches, _dirty, EXPECT_NOT, kOOLogDataCacheSetFailed, kOOLogDataCacheSetSuccess, nil, and OODebugLog.
Referenced by ResourceManager::arrayFromFilesNamed:inFolder:andMerge:cache:, OOShipRegistry(OODataLoader)::buildRoleProbabilitySets, CacheCompiledScript(), ResourceManager::checkCacheUpToDateForPaths:, OOMaterial(OOConvenienceCreators)::defaultShaderMaterialWithName:cacheKey:configuration:macros:bindingTarget:, ResourceManager::dictionaryFromFilesNamed:inFolder:mergeMode:cache:, OOShipRegistry(OODataLoader)::loadAndMergeShipyard:, OOShipRegistry(OODataLoader)::loadDemoShipConditions, OOEquipmentType::loadEquipment, LoadScriptWithName(), OOShipRegistry(OODataLoader)::loadShipData, AI(OOPrivate)::loadStateMachine:jsName:, ResourceManager::pathForFileNamed:inFolder:cache:, ResourceManager::preloadFilePathFor:inFolder:atPath:, OOShipRegistry(OODataLoader)::sanitizeConditions:, OOPListScript(SetUp)::scriptsFromDictionaryOfScripts:filePath:, OOCacheManager(OOMesh)::setMeshData:forName:, OOCacheManager(Octree)::setOctree:forModel:, and Universe::soundNameForCustomSoundKey:.
| + (void) setOctree: | (Octree*) | inOctree | |
| forModel: | (NSString*) | inKey |
Provided by category OOCacheManager(Octree).
Definition at line 2041 of file OOMesh.m.
| + (OOCacheManager *) sharedCache |
Definition at line 134 of file OOCacheManager.m.
References nil, sharedCache, and sSingleton.
Referenced by GameController::applicationShouldTerminate:, ResourceManager::arrayFromFilesNamed:inFolder:andMerge:cache:, OOShipRegistry(OODataLoader)::buildRoleProbabilitySets, CacheCompiledScript(), CachedCompiledScript(), ResourceManager::checkCacheUpToDateForPaths:, Universe::dealloc, OOMaterial(OOConvenienceCreators)::defaultShaderMaterialWithName:cacheKey:configuration:macros:bindingTarget:, ResourceManager::dictionaryFromFilesNamed:inFolder:mergeMode:cache:, PlayerEntity::docked, OOOXZManager(NSURLConnectionDataDelegate)::downloadPath, OOShipRegistry::init, Universe::initWithGameView:, OOShipRegistry(OODataLoader)::loadAndMergeShipyard:, OOShipRegistry(OODataLoader)::loadCachedRoleProbabilitySets, Universe::loadConditionScripts, OOShipRegistry(OODataLoader)::loadDemoShipConditions, OOEquipmentType::loadEquipment, LoadScriptWithName(), OOShipRegistry(OODataLoader)::loadShipData, AI(OOPrivate)::loadStateMachine:jsName:, OOOXZManager(NSURLConnectionDataDelegate)::manifestPath, OOCacheManager(OOMesh)::meshDataForName:, OOCacheManager(Octree)::octreeForModel:, ResourceManager::pathForFileNamed:inFolder:cache:, ResourceManager::preloadFilePathFor:inFolder:atPath:, OOOXPVerifier(OOPrivate)::run, OOShipRegistry(OODataLoader)::sanitizeConditions:, OOPListScript(SetUp)::scriptsFromDictionaryOfScripts:filePath:, OOPListScript::scriptsInPListFile:, PlayerEntity::setGuiToIntroFirstGo:, OOCacheManager(OOMesh)::setMeshData:forName:, OOCacheManager(Octree)::setOctree:forModel:, ResourceManager::setUseAddOns:, sharedCache, and Universe::soundNameForCustomSoundKey:.
|
implementation |
Provided by category OOCacheManager(Octree).
Definition at line 2048 of file OOMesh.m.
|
implementation |
Provided by category OOCacheManager(Octree).
Definition at line 2061 of file OOMesh.m.
|
implementation |
Provided by category OOCacheManager(Octree).
Definition at line 2068 of file OOMesh.m.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 348 of file OOCacheManager.m.
Referenced by flush.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 472 of file OOCacheManager.m.
|
private |
Definition at line 36 of file OOCacheManager.h.
Referenced by clearAllCaches, clearCache:, and setObject:forKey:inCache:.
|
private |
Definition at line 39 of file OOCacheManager.h.
Referenced by clearAllCaches, clearCache:, removeObjectForKey:inCache:, and setObject:forKey:inCache:.
|
private |
Definition at line 38 of file OOCacheManager.h.
Referenced by flush, init, and setAllowCacheWrites:.
|
private |
Definition at line 37 of file OOCacheManager.h.
Referenced by flush.