![]() |
Oolite 1.91.0.7665-250419-c535bfe
|
#include <OOCache.h>
Instance Methods | |
(id) | - init |
(id) | - initWithPList: |
(id) | - pListRepresentation |
(id) | - objectForKey: |
(void) | - setObject:forKey: |
(void) | - removeObjectForKey: |
(void) | - setPruneThreshold: |
(unsigned) | - pruneThreshold |
(void) | - setAutoPrune: |
(BOOL) | - autoPrune |
(void) | - prune |
(BOOL) | - dirty |
(void) | - markClean |
(NSString *) | - name |
(void) | - setName: |
(NSArray *) | - objectsByAge |
(void) | - dealloc [implementation] |
(NSString *) | - description [implementation] |
(void) | - loadFromArray: [implementation] |
Private Attributes | |
struct OOCacheImpl * | cache |
unsigned | pruneThreshold |
BOOL | autoPrune |
BOOL | dirty |
|
implementation |
Definition at line 170 of file OOCache.m.
References cache, CacheFree(), CHECK_INTEGRITY, and dealloc.
Referenced by dealloc.
|
implementation |
Definition at line 179 of file OOCache.m.
References description, and name.
Referenced by description.
- (BOOL) dirty |
- (id) init |
Definition at line 185 of file OOCache.m.
References init, and initWithPList:.
Referenced by init.
- (id) initWithPList: | (id) | pList |
Definition at line 191 of file OOCache.m.
References autoPrune, cache, CacheAllocate(), kOOCacheDefaultPruneThreshold, loadFromArray:, nil, and pruneThreshold.
Referenced by init.
|
implementation |
Provided by category OOCache(Private).
Definition at line 364 of file OOCache.m.
Referenced by initWithPList:.
- (void) markClean |
- (NSString *) name |
Definition at line 342 of file OOCache.m.
References cache, CacheGetName(), and name.
Referenced by description, dirty, name, and setName:.
- (id) objectForKey: | (id) | key |
Definition at line 233 of file OOCache.m.
References cache, CacheRetrieve(), CHECK_INTEGRITY, and nil.
Referenced by OOEncodingConverter::convertString:.
- (NSArray *) objectsByAge |
Definition at line 354 of file OOCache.m.
References cache, CacheArrayOfContentsByAge(), and objectsByAge.
Referenced by OOTexture::cachedTexturesByAge, dirty, and objectsByAge.
- (id) pListRepresentation |
Definition at line 225 of file OOCache.m.
References cache, CacheArrayOfNodesByAge(), nil, and pListRepresentation.
Referenced by pListRepresentation.
- (void) prune |
Definition at line 306 of file OOCache.m.
References autoPrune, cache, CacheGetCount(), CacheGetName(), CacheRemoveOldest(), count, kOOCacheNoPrune, OOLog, OOLogIndentIf, OOLogOutdentIf, prune, and pruneThreshold.
Referenced by autoPrune, prune, setAutoPrune:, setObject:forKey:, and setPruneThreshold:.
- (unsigned) pruneThreshold |
References pruneThreshold.
- (void) removeObjectForKey: | (id) | key |
Definition at line 262 of file OOCache.m.
References cache, CacheRemove(), CHECK_INTEGRITY, and dirty.
Referenced by OOTexture(SubclassInterface)::removeFromCaches.
- (void) setAutoPrune: | (BOOL) | flag |
- (void) setName: | (NSString *) | name |
Definition at line 348 of file OOCache.m.
References cache, CacheSetName(), and name.
Referenced by OOTexture(OOPrivate)::addToCaches, and OOEncodingConverter::initWithEncoding:substitutions:.
- (void) setObject: | (id) | value | |
forKey: | (id) | key |
Definition at line 248 of file OOCache.m.
References autoPrune, cache, CacheInsert(), CHECK_INTEGRITY, dirty, and prune.
Referenced by OOTexture(OOPrivate)::addToCaches, PlayerEntity::commanderDataDictionary, OOEncodingConverter::convertString:, OOShipRegistry(OODataLoader)::loadCachedRoleProbabilitySets, and OOCache(Private)::loadFromArray:.
- (void) setPruneThreshold: | (unsigned) | threshold |
Definition at line 272 of file OOCache.m.
References autoPrune, kOOCacheMinimumPruneThreshold, MAX, prune, and pruneThreshold.
Referenced by OOTexture(OOPrivate)::addToCaches, and OOEncodingConverter::initWithEncoding:substitutions:.
|
private |
Definition at line 300 of file OOCache.m.
Referenced by autoPrune, initWithPList:, prune, setAutoPrune:, setObject:forKey:, and setPruneThreshold:.
|
private |
Definition at line 60 of file OOCache.h.
Referenced by dealloc, initWithPList:, name, objectForKey:, objectsByAge, pListRepresentation, prune, removeObjectForKey:, setName:, and setObject:forKey:.
|
private |
Definition at line 330 of file OOCache.m.
Referenced by dirty, markClean, removeObjectForKey:, and setObject:forKey:.
|
private |
Definition at line 283 of file OOCache.m.
Referenced by initWithPList:, prune, pruneThreshold, and setPruneThreshold:.