![]() |
Oolite 1.91.0.7659-250410-0031890
|
#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 35 of file OOCacheManager.h.
|
implementation |
Provided by category OOCacheManager(Singleton).
Definition at line 665 of file OOCacheManager.m.
|
implementation |
Provided by category OOCacheManager(Singleton).
Definition at line 698 of file OOCacheManager.m.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 576 of file OOCacheManager.m.
Referenced by OOCacheManager(Private)::loadCache.
- (NSString *) cacheDirectoryPathCreatingIfNecessary: | (BOOL) | create |
Definition at line 302 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 637 of file OOCacheManager.m.
References cacheDirectoryPathCreatingIfNecessary:.
Referenced by OOCacheManager(Private)::loadDict, and OOCacheManager(Private)::writeDict:.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 475 of file OOCacheManager.m.
Referenced by clearAllCaches, dealloc, OOCacheManager(Private)::loadCache, and reloadAllCaches.
- (void) clearAllCaches |
Definition at line 263 of file OOCacheManager.m.
References _caches, _dirty, and clear.
Referenced by ResourceManager::checkCacheUpToDateForPaths:, OODebugController::clearAllCachesAction:, and ResourceManager::setUseAddOns:.
- (void) clearCache: | (NSString *) | inCacheKey |
Definition at line 246 of file OOCacheManager.m.
References _caches, _dirty, kOOLogDataCacheClearSuccess, nil, and OODebugLog.
|
implementation |
Provided by category OOCacheManager(Singleton).
Definition at line 676 of file OOCacheManager.m.
|
implementation |
Definition at line 137 of file OOCacheManager.m.
References clear.
|
implementation |
Definition at line 145 of file OOCacheManager.m.
References dirty.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 603 of file OOCacheManager.m.
Referenced by OOCacheManager(Private)::write.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 609 of file OOCacheManager.m.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 482 of file OOCacheManager.m.
Referenced by description, and flush.
- (void) finishOngoingFlush |
Definition at line 288 of file OOCacheManager.m.
References OOAsyncWorkManager::sharedAsyncWorkManager, and OOAsyncWorkManager::waitForTaskToComplete:.
Referenced by GameController::applicationShouldTerminate:.
- (void) flush |
Definition at line 278 of file OOCacheManager.m.
References _permitWrites, _scheduledWrite, dirty, markClean, nil, and write.
Referenced by Universe::dealloc, PlayerEntity::docked, OOOXPVerifier(OOPrivate)::run, and PlayerEntity::setGuiToIntroFirstGo:.
|
implementation |
Definition at line 125 of file OOCacheManager.m.
References _permitWrites, loadCache, and nil.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 330 of file OOCacheManager.m.
Referenced by init, and reloadAllCaches.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 494 of file OOCacheManager.m.
Referenced by OOCacheManager(Private)::loadCache.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 488 of file OOCacheManager.m.
Referenced by flush, OOCacheManager(Private)::loadCache, and OOCacheManager(Private)::write.
|
implementation |
Provided by category OOCacheManager(OOMesh).
Definition at line 2218 of file OOMesh.m.
Referenced by OOMesh(Private)::loadData:scaleFactor:.
- (id) objectForKey: | (NSString *) | inKey | |
inCache: | (NSString *) | inCacheKey |
Definition at line 163 of file OOCacheManager.m.
References kOOLogDataCacheRetrieveFailed, kOOLogDataCacheRetrieveSuccess, nil, and OODebugLog.
Referenced by ResourceManager::arrayFromFilesNamed:inFolder:andMerge:cache:, 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 2239 of file OOMesh.m.
|
implementation |
Provided by category OOCacheManager(Singleton).
Definition at line 694 of file OOCacheManager.m.
- (void) reloadAllCaches |
Definition at line 271 of file OOCacheManager.m.
References clear, and loadCache.
Referenced by ResourceManager::setUseAddOns:.
- (void) removeObjectForKey: | (NSString *) | inKey | |
inCache: | (NSString *) | inCacheKey |
Definition at line 219 of file OOCacheManager.m.
References _dirty, kOOLogDataCacheRemoveSuccess, nil, and OODebugLog.
|
implementation |
Provided by category OOCacheManager(Singleton).
Definition at line 682 of file OOCacheManager.m.
|
implementation |
Provided by category OOCacheManager(Singleton).
Definition at line 688 of file OOCacheManager.m.
- (void) setAllowCacheWrites: | (BOOL) | flag |
Definition at line 296 of file OOCacheManager.m.
References _permitWrites.
Referenced by OOOXPVerifier(OOPrivate)::run, and ResourceManager::setUseAddOns:.
|
implementation |
Provided by category OOCacheManager(OOMesh).
Definition at line 2224 of file OOMesh.m.
Referenced by OOMesh(Private)::loadData:scaleFactor:.
- (void) setObject: | (id) | inElement | |
forKey: | (NSString *) | inKey | |
inCache: | (NSString *) | inCacheKey |
Definition at line 193 of file OOCacheManager.m.
References _caches, _dirty, EXPECT_NOT, kOOLogDataCacheSetFailed, kOOLogDataCacheSetSuccess, nil, and OODebugLog.
Referenced by ResourceManager::arrayFromFilesNamed:inFolder:andMerge:cache:, OOShipRegistry(OODataLoader)::buildRoleProbabilitySets, 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 2257 of file OOMesh.m.
+ (OOCacheManager *) sharedCache |
Definition at line 151 of file OOCacheManager.m.
References nil, and sSingleton.
Referenced by GameController::applicationShouldTerminate:, ResourceManager::arrayFromFilesNamed:inFolder:andMerge:cache:, OOShipRegistry(OODataLoader)::buildRoleProbabilitySets, ResourceManager::checkCacheUpToDateForPaths:, OODebugController::clearAllCachesAction:, 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:, and Universe::soundNameForCustomSoundKey:.
|
implementation |
Provided by category OOCacheManager(Octree).
Definition at line 2266 of file OOMesh.m.
|
implementation |
Provided by category OOCacheManager(Octree).
Definition at line 2282 of file OOMesh.m.
|
implementation |
Provided by category OOCacheManager(Octree).
Definition at line 2290 of file OOMesh.m.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 404 of file OOCacheManager.m.
Referenced by flush.
|
implementation |
Provided by category OOCacheManager(Private).
Definition at line 534 of file OOCacheManager.m.
|
private |
Definition at line 38 of file OOCacheManager.h.
Referenced by clearAllCaches, clearCache:, and setObject:forKey:inCache:.
|
private |
Definition at line 41 of file OOCacheManager.h.
Referenced by clearAllCaches, clearCache:, removeObjectForKey:inCache:, and setObject:forKey:inCache:.
|
private |
Definition at line 40 of file OOCacheManager.h.
Referenced by flush, init, and setAllowCacheWrites:.
|
private |
Definition at line 39 of file OOCacheManager.h.
Referenced by flush.