Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
WaveBitmapCacheElement Class Referenceabstract

An element, that contains a rasterized bitmap matching the WaveDataCacheElement. More...

#include <WaveBitmapCache.h>

Inheritance diagram for WaveBitmapCacheElement:
[legend]
Collaboration diagram for WaveBitmapCacheElement:
[legend]

Public Member Functions

 ~WaveBitmapCacheElement () override
 
virtual uint8_t * Allocate (size_t width, size_t height)=0
 
virtual size_t Width () const =0
 
virtual size_t Height () const =0
 
- Public Member Functions inherited from GraphicsDataCacheElementBase
virtual ~GraphicsDataCacheElementBase ()=default
 
virtual void Dispose ()
 This method is called when the item is evicted from the cache. Default implementation is empty. More...
 
virtual void Smooth (GraphicsDataCacheElementBase *prevElement)
 This method is called during the lookup when new items are inserted. prevElement can be nullptr. Default implementation is empty. More...
 

Public Attributes

size_t AvailableColumns { 0 }
 
- Public Attributes inherited from GraphicsDataCacheElementBase
uint64_t LastCacheAccess { 0 }
 Index filled by GraphicsDataCacheBase to implement LRU eviction policy. More...
 
uint64_t LastUpdate { 0 }
 The last time the item was updated. If (!IsComplete && LastUpdate < LastCacheAccess) the item will be updated. More...
 
bool IsComplete { false }
 Cache implementation is responsible to set this flag when all the data of the item is filled. More...
 
bool AwaitsEviction { false }
 This flag is used to simplify the eviction algorithm. More...
 

Detailed Description

An element, that contains a rasterized bitmap matching the WaveDataCacheElement.

Definition at line 26 of file WaveBitmapCache.h.

Constructor & Destructor Documentation

◆ ~WaveBitmapCacheElement()

WaveBitmapCacheElement::~WaveBitmapCacheElement ( )
overridedefault

Member Function Documentation

◆ Allocate()

virtual uint8_t * WaveBitmapCacheElement::Allocate ( size_t  width,
size_t  height 
)
pure virtual

Implemented in anonymous_namespace{WaveformView.cpp}::WaveBitmapCacheElementWX.

Referenced by WaveBitmapCache::InitializeElement().

Here is the caller graph for this function:

◆ Height()

virtual size_t WaveBitmapCacheElement::Height ( ) const
pure virtual

◆ Width()

virtual size_t WaveBitmapCacheElement::Width ( ) const
pure virtual

Member Data Documentation

◆ AvailableColumns

size_t WaveBitmapCacheElement::AvailableColumns { 0 }

Definition at line 37 of file WaveBitmapCache.h.

Referenced by WaveBitmapCache::InitializeElement().


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