Abstract replacement policy for use with the Guiliani image cache. More...
#include <GUIImageCacheReplacementPolicy.h>

Public Member Functions | |
| virtual | ~CGUIImageCacheReplacementPolicy () |
| Destructor. | |
| virtual eC_Bool | Add (const ImageResource_t &eImageID, eC_UInt uiSize)=0 |
| virtual eC_Bool | Bump (const ImageResource_t &eImageID) |
| CGUIImageCacheReplacementManager * | GetImageCacheReplacementManager (void) |
| virtual ReplacementPolicyType_t | GetPolicyType () const =0 |
| virtual ImageResource_t | Remove ()=0 |
Static Public Member Functions | |
| static CGUIImageCacheReplacementPolicy * | CreateReplacementPolicyForType (const ReplacementPolicyType_t &eType, CGUIImageCacheReplacementManager *pManager) |
Protected Attributes | |
| CGUIImageCacheReplacementManager * | m_pCacheManager |
| The replacement manager (bridge implementation) | |
Abstract replacement policy for use with the Guiliani image cache.
|
pure virtual |
Adds an image to the pool of replaceable images The image has to be added in the appropriate way for the implemented replacement policy
| eImageID | the image's ID |
| uiSize | the image's size |
Implemented in CGUIImageCacheReplacementDummy, CGUIImageCacheReplacementFifo, CGUIImageCacheReplacementGreedy, and CGUIImageCacheReplacementLru.
|
virtual |
Marks an image as recently used, if supported by the replacement policy (Only valid for LRU replacement)
| eImageID | the image's ID |
Reimplemented in CGUIImageCacheReplacementLru.
|
static |
Creates a replacement policy object for a specific policy type
| eType | the type of replacement policy |
| pManager | the replacement manager object to be used with the new policy |
| CGUIImageCacheReplacementManager * CGUIImageCacheReplacementPolicy::GetImageCacheReplacementManager | ( | void | ) |
Get the image cache replacement manager of the policy
|
pure virtual |
Returns the type of this replacement policy
Implemented in CGUIImageCacheReplacementDummy, CGUIImageCacheReplacementFifo, CGUIImageCacheReplacementGreedy, and CGUIImageCacheReplacementLru.
|
pure virtual |
Removes an image from the pool of replaceable images The image to be removed is selected in accordance to the replacement policy
Implemented in CGUIImageCacheReplacementDummy, CGUIImageCacheReplacementFifo, CGUIImageCacheReplacementGreedy, and CGUIImageCacheReplacementLru.