Guiliani  Version 2.6 revision 7293 (documentation build 12)
CGUIImageCacheReplacementManager Class Referenceabstract

Replacement manager for the image cache. More...

#include <GUIImageCacheReplacementManager.h>

Inheritance diagram for CGUIImageCacheReplacementManager:

Public Member Functions

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
 

Detailed Description

Replacement manager for the image cache.

Provides the methods used by replacement policies to provide image cache implementation specific services.

Member Function Documentation

◆ AddAtFront()

virtual eC_Bool CGUIImageCacheReplacementManager::AddAtFront ( const ImageResource_t eImageID,
eC_UInt  uiSize 
)
pure virtual

Adds an image as the "first" item

Parameters
eImageIDthe ID of the image to be added.
uiSizethe size of the image to be added
Returns
True if the image could be added

Implemented in CGUIImageCacheReplacementManagerImpl.

◆ AddSortedBySize()

virtual eC_Bool CGUIImageCacheReplacementManager::AddSortedBySize ( const ImageResource_t eImageID,
eC_UInt  uiSize 
)
pure virtual

Adds an image sorted by size

Parameters
eImageIDthe ID of the image to be added
uiSizethe size of the image to be added
Returns
True if the image could be added

Implemented in CGUIImageCacheReplacementManagerImpl.

◆ BringToFront()

virtual eC_Bool CGUIImageCacheReplacementManager::BringToFront ( const ImageResource_t eImageID)
pure virtual

Moves an image to be the first item

Parameters
eImageIDthe ID of the image to be moved
Returns
True if the image could be moved

Implemented in CGUIImageCacheReplacementManagerImpl.

◆ Contains()

virtual eC_Bool CGUIImageCacheReplacementManager::Contains ( const ImageResource_t eImageID) const
pure virtual

Determines if an image resides in the part of the cache managed by the manager

Parameters
eImageIDthe image's ID
Returns
True if the image resides in the manager's part of the cache

Implemented in CGUIImageCacheReplacementManagerImpl.

◆ GetQuantity()

virtual eC_UInt CGUIImageCacheReplacementManager::GetQuantity ( ) const
pure virtual

Determines the number of items the part of the cache managed by the manager

Returns
the number of items in the manager's part of the cache

Implemented in CGUIImageCacheReplacementManagerImpl.

◆ GetSize()

virtual eC_UInt CGUIImageCacheReplacementManager::GetSize ( ) const
pure virtual

Determines the size of the part of the cache managed by the manager

Returns
the size of the manager's part of the cache

Implemented in CGUIImageCacheReplacementManagerImpl.

◆ IsEmpty()

virtual eC_Bool CGUIImageCacheReplacementManager::IsEmpty ( ) const
pure virtual

Determines if the part of the cache managed by the manager is empty

Returns
True if the manager's part of the cache is empty

Implemented in CGUIImageCacheReplacementManagerImpl.

◆ Remove()

virtual eC_Bool CGUIImageCacheReplacementManager::Remove ( const ImageResource_t eImageID)
pure virtual

Removes a specific image

Parameters
eImageIDthe ID of the image to be removed
Returns
True if the image was successfully removed

Implemented in CGUIImageCacheReplacementManagerImpl.

◆ RemoveFromEnd()

virtual ImageResource_t CGUIImageCacheReplacementManager::RemoveFromEnd ( )
pure virtual

Removes the "last" image

Returns
the removed image's ID (or DUMMY_IMAGE if no image could be removed)

Implemented in CGUIImageCacheReplacementManagerImpl.


The documentation for this class was generated from the following file: