Oolite 1.91.0.7644-241112-7f5034b
|
Go to the source code of this file.
Classes | |
protocol | <OOCacheComparable> |
category | OOCache(Private) |
struct | OOCacheImpl |
struct | OOCacheNode |
Macros | |
#define | OOCACHE_PERFORM_INTEGRITY_CHECKS 0 |
#define | CHECK_INTEGRITY(context) |
Typedefs | |
typedef struct OOCacheImpl | OOCacheImpl |
typedef struct OOCacheNode | OOCacheNode |
Enumerations | |
enum | { kCountUnknown = -1U } |
Functions | |
static OOCacheImpl * | CacheAllocate (void) |
static void | CacheFree (OOCacheImpl *cache) |
static BOOL | CacheInsert (OOCacheImpl *cache, id key, id value) |
static BOOL | CacheRemove (OOCacheImpl *cache, id key) |
static BOOL | CacheRemoveOldest (OOCacheImpl *cache, NSString *logKey) |
static id | CacheRetrieve (OOCacheImpl *cache, id key) |
static unsigned | CacheGetCount (OOCacheImpl *cache) |
static NSArray * | CacheArrayOfContentsByAge (OOCacheImpl *cache) |
static NSArray * | CacheArrayOfNodesByAge (OOCacheImpl *cache) |
static NSString * | CacheGetName (OOCacheImpl *cache) |
static void | CacheSetName (OOCacheImpl *cache, NSString *name) |
static OOCacheNode * | CacheNodeAllocate (id< OOCacheComparable > key, id value) |
static void | CacheNodeFree (OOCacheImpl *cache, OOCacheNode *node) |
static id | CacheNodeGetValue (OOCacheNode *node) |
static void | CacheNodeSetValue (OOCacheNode *node, id value) |
static OOCacheNode * | TreeSplay (OOCacheNode **root, id< OOCacheComparable > key) |
static OOCacheNode * | TreeInsert (OOCacheImpl *cache, id< OOCacheComparable > key, id value) |
static void | AgeListMakeYoungest (OOCacheImpl *cache, OOCacheNode *node) |
static void | AgeListRemove (OOCacheImpl *cache, OOCacheNode *node) |
Variables | |
static NSString *const | kSerializedEntryKeyKey = @"@"key" |
static NSString *const | kSerializedEntryKeyValue = @"@"value" |
anonymous enum |
|
static |
Definition at line 904 of file OOCache.m.
References AgeListRemove(), OOCacheNode::older, OOCacheImpl::oldest, OOCacheNode::younger, and OOCacheImpl::youngest.
Referenced by CacheInsert(), and CacheRetrieve().
|
static |
Definition at line 917 of file OOCache.m.
Referenced by AgeListMakeYoungest(), CacheNodeFree(), and CacheRemove().
|
static |
|
static |
Definition at line 533 of file OOCache.m.
References OOCacheImpl::count, nil, OOCacheNode::older, and OOCacheImpl::youngest.
|
static |
Definition at line 550 of file OOCache.m.
References OOCacheImpl::count, nil, OOCacheImpl::oldest, and OOCacheNode::younger.
|
static |
Definition at line 451 of file OOCache.m.
References CacheNodeFree(), and OOCacheImpl::root.
|
static |
Definition at line 580 of file OOCache.m.
References OOCacheImpl::count.
|
static |
Definition at line 567 of file OOCache.m.
References OOCacheImpl::name.
|
static |
Definition at line 461 of file OOCache.m.
References AgeListMakeYoungest(), nil, and TreeInsert().
|
static |
Definition at line 610 of file OOCache.m.
References OOCacheNode::key, nil, and OOCacheNode::value.
Referenced by TreeInsert().
|
static |
Definition at line 628 of file OOCache.m.
References AgeListRemove(), CacheNodeFree(), OOCacheNode::key, OOCacheNode::leftChild, nil, OOCacheNode::rightChild, and OOCacheNode::value.
Referenced by CacheFree(), CacheNodeFree(), CacheRemove(), and TreeInsert().
|
static |
Definition at line 652 of file OOCache.m.
References nil, and OOCacheNode::value.
Referenced by CacheRetrieve().
|
static |
Definition at line 661 of file OOCache.m.
References OOCacheNode::value.
Referenced by TreeInsert().
|
static |
Definition at line 477 of file OOCache.m.
References AgeListRemove(), CacheNodeFree(), OOCacheImpl::count, OOCacheNode::leftChild, OOCacheNode::rightChild, OOCacheImpl::root, and TreeSplay().
Referenced by CacheRemoveOldest().
|
static |
Definition at line 506 of file OOCache.m.
References CacheRemove(), OOCacheNode::key, OOCacheImpl::name, OOCacheImpl::oldest, and OOLog.
|
static |
Definition at line 516 of file OOCache.m.
References AgeListMakeYoungest(), CacheNodeGetValue(), nil, OOCacheImpl::root, and TreeSplay().
|
static |
Definition at line 573 of file OOCache.m.
References OOCacheImpl::name.
|
static |
Definition at line 770 of file OOCache.m.
References CacheNodeAllocate(), CacheNodeFree(), CacheNodeSetValue(), OOCacheImpl::count, EXPECT_NOT, OOCacheNode::leftChild, OOCacheImpl::name, nil, OOLog, OOCacheNode::rightChild, OOCacheImpl::root, and TreeSplay().
Referenced by CacheInsert().
|
static |
Definition at line 691 of file OOCache.m.
References OOCacheNode::key, OOCacheNode::leftChild, nil, OOLog, and OOCacheNode::rightChild.
Referenced by CacheRemove(), CacheRetrieve(), and TreeInsert().