Replacement manager for the image cache. More...
#include <GUIImageCacheReplacementManagerImpl.h>
Public Member Functions | |
CGUIImageCacheReplacementManagerImpl () | |
~CGUIImageCacheReplacementManagerImpl () | |
eC_Bool | AddAtFront (const ImageResource_t &eImageID, eC_UInt uiSize) |
eC_Bool | AddSortedBySize (const ImageResource_t &eImageID, eC_UInt uiSize) |
eC_Bool | BringToFront (const ImageResource_t &eImageID) |
eC_Bool | Contains (const ImageResource_t &eImageID) const |
eC_UInt | GetQuantity () const |
eC_UInt | GetSize () const |
eC_Bool | IsEmpty () const |
eC_Bool | Remove (const ImageResource_t &eImageID) |
ImageResource_t | RemoveFromEnd () |
![]() | |
virtual | ~CGUIImageCacheReplacementManager () |
Destructor. | |
virtual eC_Bool | AddAtFront (const ImageResource_t &eImageID, eC_UInt uiSize)=0 |
virtual eC_Bool | AddSortedBySize (const ImageResource_t &eImageID, eC_UInt uiSize)=0 |
virtual eC_Bool | BringToFront (const ImageResource_t &eImageID)=0 |
virtual eC_Bool | Contains (const ImageResource_t &eImageID) const =0 |
virtual eC_UInt | GetQuantity () const =0 |
virtual eC_UInt | GetSize () const =0 |
virtual eC_Bool | IsEmpty () const =0 |
virtual eC_Bool | Remove (const ImageResource_t &eImageID)=0 |
virtual ImageResource_t | RemoveFromEnd ()=0 |
Replacement manager for the image cache.
Provides the methods used by replacement policies to provide image cache implementation specific services.
CGUIImageCacheReplacementManagerImpl::CGUIImageCacheReplacementManagerImpl | ( | ) |
Constructor.
CGUIImageCacheReplacementManagerImpl::~CGUIImageCacheReplacementManagerImpl | ( | ) |
Destructor.
|
virtual |
Adds an image as the first item of the list.
eImageID | the ID of the image to be added |
uiSize | the size of the image to be added |
Implements CGUIImageCacheReplacementManager.
|
virtual |
Adds an image sorted by size
eImageID | the ID of the image to be added |
uiSize | the size of the image to be added |
Implements CGUIImageCacheReplacementManager.
|
virtual |
Moves an image to the front of the list
eImageID | the ID of the image to be moved |
Implements CGUIImageCacheReplacementManager.
|
virtual |
Determines if an image resides in the list
eImageID | the image's ID |
Implements CGUIImageCacheReplacementManager.
|
virtual |
Determines the number of items the part of the cache managed by the manager
Implements CGUIImageCacheReplacementManager.
|
virtual |
Determines the size of the list
Implements CGUIImageCacheReplacementManager.
|
virtual |
Determines if the list is empty
Implements CGUIImageCacheReplacementManager.
|
virtual |
Removes a specific image
eImageID | the ID of the image to be removed |
Implements CGUIImageCacheReplacementManager.
|
virtual |
Removes the last image of the list
Implements CGUIImageCacheReplacementManager.