Guiliani  Version 2.5 revision 7293 (documentation build 13)
CGUIImageCacheReplacementManagerImpl Class Reference

Replacement manager for the image cache. More...

#include <GUIImageCacheReplacementManagerImpl.h>

Inheritance diagram for CGUIImageCacheReplacementManagerImpl:

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 ()
 
- Public Member Functions inherited from CGUIImageCacheReplacementManager
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.

Constructor & Destructor Documentation

◆ CGUIImageCacheReplacementManagerImpl()

CGUIImageCacheReplacementManagerImpl::CGUIImageCacheReplacementManagerImpl ( )

Constructor.

◆ ~CGUIImageCacheReplacementManagerImpl()

CGUIImageCacheReplacementManagerImpl::~CGUIImageCacheReplacementManagerImpl ( )

Destructor.

Member Function Documentation

◆ AddAtFront()

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

Adds an image as the first item of the list.

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

Implements CGUIImageCacheReplacementManager.

◆ AddSortedBySize()

eC_Bool CGUIImageCacheReplacementManagerImpl::AddSortedBySize ( const ImageResource_t eImageID,
eC_UInt  uiSize 
)
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

Implements CGUIImageCacheReplacementManager.

◆ BringToFront()

eC_Bool CGUIImageCacheReplacementManagerImpl::BringToFront ( const ImageResource_t eImageID)
virtual

Moves an image to the front of the list

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

Implements CGUIImageCacheReplacementManager.

◆ Contains()

eC_Bool CGUIImageCacheReplacementManagerImpl::Contains ( const ImageResource_t eImageID) const
virtual

Determines if an image resides in the list

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

Implements CGUIImageCacheReplacementManager.

◆ GetQuantity()

eC_UInt CGUIImageCacheReplacementManagerImpl::GetQuantity ( ) const
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

Implements CGUIImageCacheReplacementManager.

◆ GetSize()

eC_UInt CGUIImageCacheReplacementManagerImpl::GetSize ( ) const
virtual

Determines the size of the list

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

Implements CGUIImageCacheReplacementManager.

◆ IsEmpty()

eC_Bool CGUIImageCacheReplacementManagerImpl::IsEmpty ( ) const
virtual

Determines if the list is empty

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

Implements CGUIImageCacheReplacementManager.

◆ Remove()

eC_Bool CGUIImageCacheReplacementManagerImpl::Remove ( const ImageResource_t eImageID)
virtual

Removes a specific image

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

Implements CGUIImageCacheReplacementManager.

◆ RemoveFromEnd()

ImageResource_t CGUIImageCacheReplacementManagerImpl::RemoveFromEnd ( )
virtual

Removes the last image of the list

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

Implements CGUIImageCacheReplacementManager.


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