Lynkeos
|
This class caches any kind of object. More...
#import <LynkeosObjectCache.h>
Instance Methods | |
(id) | - initWithStrategy:capacity:policy: |
Initializer. More... | |
(void) | - setObject:forKey: |
Put an object in the cache. More... | |
(NSObject *) | - getObjectForKey: |
Retrieve an object from the cache. More... | |
(void) | - setCapacity: |
Adapt the cache to a new size. More... | |
Class Methods | |
(void) | + setMovieCache: |
Common cache for movie classes. More... | |
(void) | + setImageProcessingCache: |
Common cache for processing images. More... | |
(LynkeosObjectCache *) | + movieCache |
Common cache for movie classes. More... | |
(LynkeosObjectCache *) | + imageProcessingCache |
Common cache for processing images. More... | |
This class caches any kind of object.
- (NSObject *) getObjectForKey: | (id) | key |
Retrieve an object from the cache.
key | the key for this object |
+ (LynkeosObjectCache *) imageProcessingCache |
Common cache for processing images.
Referenced by ProcessStackManager::getParameterForItem:andParam:, and ProcessStackManager::nextParameterToProcess:.
- (id) initWithStrategy: | (CacheCapacityStrategy_t) | strategy | |
capacity: | (u_long) | capacity | |
policy: | (u_short) | policy | |
Initializer.
When first added to the cache, objects are always at the top, whatever the policy
strategy | Caching strategy (memory size or number of objects) |
capacity | The maximum number of objects, or maximum memory in the cache |
policy | The refresh policy of the cache |
+ (LynkeosObjectCache *) movieCache |
Common cache for movie classes.
Referenced by FFmpegReader(Private)::getFrame:, and MyQuickTimeReader(Private)::getPixelBufferAtIndex:.
- (void) setCapacity: | (u_long) | capacity |
Adapt the cache to a new size.
capacity | The new size |
+ (void) setImageProcessingCache: | (LynkeosObjectCache*) | cache |
Common cache for processing images.
cache | The new image processing cache |
+ (void) setMovieCache: | (LynkeosObjectCache*) | cache |
Common cache for movie classes.
cache | The new movie cache |
- (void) setObject: | (NSObject*) | obj | |
forKey: | (id) | key | |
Put an object in the cache.
The object is retained by the cache and released when deleted from it
obj | The object to add to the cache |
key | The key to identify this object |
Referenced by FFmpegReader(Private)::getFrame:, MyQuickTimeReader(Private)::getPixelBufferAtIndex:, and ProcessStackManager::nextParameterToProcess:.