Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
anonymous_namespace{GraphicsDataCacheTests.cpp}::CacheElement Struct Reference
Inheritance diagram for anonymous_namespace{GraphicsDataCacheTests.cpp}::CacheElement:
[legend]
Collaboration diagram for anonymous_namespace{GraphicsDataCacheTests.cpp}::CacheElement:
[legend]

Public Member Functions

CacheElementoperator= (GraphicsDataCacheKey key)
 
void Dispose () override
 This method is called when the item is evicted from the cache. Default implementation is empty. More...
 
- 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

GraphicsDataCacheKey Key
 
- 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

Definition at line 22 of file GraphicsDataCacheTests.cpp.

Member Function Documentation

◆ Dispose()

void anonymous_namespace{GraphicsDataCacheTests.cpp}::CacheElement::Dispose ( )
inlineoverridevirtual

This method is called when the item is evicted from the cache. Default implementation is empty.

Reimplemented from GraphicsDataCacheElementBase.

Definition at line 30 of file GraphicsDataCacheTests.cpp.

◆ operator=()

CacheElement & anonymous_namespace{GraphicsDataCacheTests.cpp}::CacheElement::operator= ( GraphicsDataCacheKey  key)
inline

Definition at line 24 of file GraphicsDataCacheTests.cpp.

25 {
26 Key = key;
27 return *this;
28 }
static const AudacityProject::AttachedObjects::RegisteredFactory key

References key.

Member Data Documentation

◆ Key

GraphicsDataCacheKey anonymous_namespace{GraphicsDataCacheTests.cpp}::CacheElement::Key

Definition at line 35 of file GraphicsDataCacheTests.cpp.


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