LibreOffice Module sd (master) 1
Public Member Functions | Private Attributes | List of all members
sd::slidesorter::cache::BitmapCache::CacheEntry Class Reference
Collaboration diagram for sd::slidesorter::cache::BitmapCache::CacheEntry:
[legend]

Public Member Functions

 CacheEntry (const BitmapEx &rBitmap, sal_Int32 nLastAccessTime, bool bIsPrecious)
 
 CacheEntry (sal_Int32 nLastAccessTime, bool bIsPrecious)
 
void Recycle (const CacheEntry &rEntry)
 
sal_Int32 GetMemorySize () const
 
void Compress (const std::shared_ptr< BitmapCompressor > &rpCompressor)
 
void Decompress ()
 
bool IsUpToDate () const
 
void SetUpToDate (bool bIsUpToDate)
 
sal_Int32 GetAccessTime () const
 
void SetAccessTime (sal_Int32 nAccessTime)
 
const BitmapExGetPreview () const
 
void SetPreview (const BitmapEx &rPreview)
 
bool HasPreview () const
 
const BitmapExGetMarkedPreview () const
 
void SetMarkedPreview (const BitmapEx &rMarkePreview)
 
bool HasReplacement () const
 
bool HasLosslessReplacement () const
 
void Invalidate ()
 
bool IsPrecious () const
 
void SetPrecious (bool bIsPrecious)
 

Private Attributes

BitmapEx maPreview
 
BitmapEx maMarkedPreview
 
std::shared_ptr< BitmapReplacementmpReplacement
 
std::shared_ptr< BitmapCompressormpCompressor
 
bool mbIsUpToDate
 
sal_Int32 mnLastAccessTime
 
bool mbIsPrecious
 

Detailed Description

Definition at line 39 of file SlsBitmapCache.cxx.

Constructor & Destructor Documentation

◆ CacheEntry() [1/2]

sd::slidesorter::cache::BitmapCache::CacheEntry::CacheEntry ( const BitmapEx rBitmap,
sal_Int32  nLastAccessTime,
bool  bIsPrecious 
)

Definition at line 466 of file SlsBitmapCache.cxx.

◆ CacheEntry() [2/2]

sd::slidesorter::cache::BitmapCache::CacheEntry::CacheEntry ( sal_Int32  nLastAccessTime,
bool  bIsPrecious 
)

Definition at line 457 of file SlsBitmapCache.cxx.

Member Function Documentation

◆ Compress()

void sd::slidesorter::cache::BitmapCache::CacheEntry::Compress ( const std::shared_ptr< BitmapCompressor > &  rpCompressor)

Definition at line 501 of file SlsBitmapCache.cxx.

References NULL, SAL_INFO, and x.

◆ Decompress()

void sd::slidesorter::cache::BitmapCache::CacheEntry::Decompress ( )
inline

Definition at line 526 of file SlsBitmapCache.cxx.

◆ GetAccessTime()

sal_Int32 sd::slidesorter::cache::BitmapCache::CacheEntry::GetAccessTime ( ) const
inline

Definition at line 51 of file SlsBitmapCache.cxx.

References mnLastAccessTime.

◆ GetMarkedPreview()

const BitmapEx & sd::slidesorter::cache::BitmapCache::CacheEntry::GetMarkedPreview ( ) const
inline

Definition at line 58 of file SlsBitmapCache.cxx.

References maMarkedPreview.

◆ GetMemorySize()

sal_Int32 sd::slidesorter::cache::BitmapCache::CacheEntry::GetMemorySize ( ) const
inline

◆ GetPreview()

const BitmapEx & sd::slidesorter::cache::BitmapCache::CacheEntry::GetPreview ( ) const
inline

Definition at line 54 of file SlsBitmapCache.cxx.

References maPreview.

◆ HasLosslessReplacement()

bool sd::slidesorter::cache::BitmapCache::CacheEntry::HasLosslessReplacement ( ) const
inline

Definition at line 555 of file SlsBitmapCache.cxx.

Referenced by Recycle().

◆ HasPreview()

bool sd::slidesorter::cache::BitmapCache::CacheEntry::HasPreview ( ) const

Definition at line 545 of file SlsBitmapCache.cxx.

Referenced by Recycle().

◆ HasReplacement()

bool sd::slidesorter::cache::BitmapCache::CacheEntry::HasReplacement ( ) const
inline

Definition at line 61 of file SlsBitmapCache.cxx.

References mpReplacement.

◆ Invalidate()

void sd::slidesorter::cache::BitmapCache::CacheEntry::Invalidate ( )
inline

Definition at line 63 of file SlsBitmapCache.cxx.

References mbIsUpToDate, mpCompressor, and mpReplacement.

◆ IsPrecious()

bool sd::slidesorter::cache::BitmapCache::CacheEntry::IsPrecious ( ) const
inline

Definition at line 64 of file SlsBitmapCache.cxx.

References mbIsPrecious.

Referenced by sd::slidesorter::cache::BitmapCache::UpdateCacheSize().

◆ IsUpToDate()

bool sd::slidesorter::cache::BitmapCache::CacheEntry::IsUpToDate ( ) const
inline

Definition at line 49 of file SlsBitmapCache.cxx.

References mbIsUpToDate.

◆ Recycle()

void sd::slidesorter::cache::BitmapCache::CacheEntry::Recycle ( const CacheEntry rEntry)
inline

◆ SetAccessTime()

void sd::slidesorter::cache::BitmapCache::CacheEntry::SetAccessTime ( sal_Int32  nAccessTime)
inline

Definition at line 52 of file SlsBitmapCache.cxx.

References mnLastAccessTime.

◆ SetMarkedPreview()

void sd::slidesorter::cache::BitmapCache::CacheEntry::SetMarkedPreview ( const BitmapEx rMarkePreview)
inline

Definition at line 550 of file SlsBitmapCache.cxx.

◆ SetPrecious()

void sd::slidesorter::cache::BitmapCache::CacheEntry::SetPrecious ( bool  bIsPrecious)
inline

Definition at line 65 of file SlsBitmapCache.cxx.

References mbIsPrecious.

◆ SetPreview()

void sd::slidesorter::cache::BitmapCache::CacheEntry::SetPreview ( const BitmapEx rPreview)
inline

Definition at line 537 of file SlsBitmapCache.cxx.

References BitmapEx::SetEmpty().

◆ SetUpToDate()

void sd::slidesorter::cache::BitmapCache::CacheEntry::SetUpToDate ( bool  bIsUpToDate)
inline

Definition at line 50 of file SlsBitmapCache.cxx.

References mbIsUpToDate.

Member Data Documentation

◆ maMarkedPreview

BitmapEx sd::slidesorter::cache::BitmapCache::CacheEntry::maMarkedPreview
private

Definition at line 69 of file SlsBitmapCache.cxx.

Referenced by GetMarkedPreview(), and Recycle().

◆ maPreview

BitmapEx sd::slidesorter::cache::BitmapCache::CacheEntry::maPreview
private

Definition at line 68 of file SlsBitmapCache.cxx.

Referenced by GetPreview(), and Recycle().

◆ mbIsPrecious

bool sd::slidesorter::cache::BitmapCache::CacheEntry::mbIsPrecious
private

Definition at line 76 of file SlsBitmapCache.cxx.

Referenced by IsPrecious(), and SetPrecious().

◆ mbIsUpToDate

bool sd::slidesorter::cache::BitmapCache::CacheEntry::mbIsUpToDate
private

Definition at line 72 of file SlsBitmapCache.cxx.

Referenced by Invalidate(), IsUpToDate(), Recycle(), and SetUpToDate().

◆ mnLastAccessTime

sal_Int32 sd::slidesorter::cache::BitmapCache::CacheEntry::mnLastAccessTime
private

Definition at line 73 of file SlsBitmapCache.cxx.

Referenced by GetAccessTime(), Recycle(), and SetAccessTime().

◆ mpCompressor

std::shared_ptr<BitmapCompressor> sd::slidesorter::cache::BitmapCache::CacheEntry::mpCompressor
private

Definition at line 71 of file SlsBitmapCache.cxx.

Referenced by Invalidate(), and Recycle().

◆ mpReplacement

std::shared_ptr<BitmapReplacement> sd::slidesorter::cache::BitmapCache::CacheEntry::mpReplacement
private

Definition at line 70 of file SlsBitmapCache.cxx.

Referenced by HasReplacement(), Invalidate(), and Recycle().


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