Ardour  9.0-pre0-582-g084a23a80d
ArdourWaveView::WaveViewCache Class Reference

#include <wave_view_private.h>

Public Member Functions

uint64_t image_cache_threshold () const
 
void set_image_cache_threshold (uint64_t)
 
void clear_cache ()
 
std::shared_ptr< WaveViewCacheGroupget_cache_group (std::shared_ptr< ARDOUR::AudioSource >)
 
void reset_cache_group (std::shared_ptr< WaveViewCacheGroup > &)
 

Static Public Member Functions

static WaveViewCacheget_instance ()
 

Private Types

typedef std::map< std::shared_ptr< ARDOUR::AudioSource >, std::shared_ptr< WaveViewCacheGroup > > CacheGroups
 

Private Member Functions

 WaveViewCache ()
 
 ~WaveViewCache ()
 
void increase_size (uint64_t bytes)
 
void decrease_size (uint64_t bytes)
 
bool full ()
 

Private Attributes

CacheGroups cache_group_map
 
uint64_t image_cache_size
 
uint64_t _image_cache_threshold
 

Friends

class WaveViewCacheGroup
 

Detailed Description

Definition at line 255 of file wave_view_private.h.

Member Typedef Documentation

◆ CacheGroups

typedef std::map<std::shared_ptr<ARDOUR::AudioSource>, std::shared_ptr<WaveViewCacheGroup> > ArdourWaveView::WaveViewCache::CacheGroups
private

Definition at line 275 of file wave_view_private.h.

Constructor & Destructor Documentation

◆ WaveViewCache()

ArdourWaveView::WaveViewCache::WaveViewCache ( )
private

◆ ~WaveViewCache()

ArdourWaveView::WaveViewCache::~WaveViewCache ( )
private

Member Function Documentation

◆ clear_cache()

void ArdourWaveView::WaveViewCache::clear_cache ( )

◆ decrease_size()

void ArdourWaveView::WaveViewCache::decrease_size ( uint64_t  bytes)
private

◆ full()

bool ArdourWaveView::WaveViewCache::full ( )
inlineprivate

Definition at line 288 of file wave_view_private.h.

◆ get_cache_group()

std::shared_ptr<WaveViewCacheGroup> ArdourWaveView::WaveViewCache::get_cache_group ( std::shared_ptr< ARDOUR::AudioSource )

◆ get_instance()

static WaveViewCache* ArdourWaveView::WaveViewCache::get_instance ( )
static

◆ image_cache_threshold()

uint64_t ArdourWaveView::WaveViewCache::image_cache_threshold ( ) const
inline

Definition at line 260 of file wave_view_private.h.

◆ increase_size()

void ArdourWaveView::WaveViewCache::increase_size ( uint64_t  bytes)
private

◆ reset_cache_group()

void ArdourWaveView::WaveViewCache::reset_cache_group ( std::shared_ptr< WaveViewCacheGroup > &  )

◆ set_image_cache_threshold()

void ArdourWaveView::WaveViewCache::set_image_cache_threshold ( uint64_t  )

Friends And Related Function Documentation

◆ WaveViewCacheGroup

friend class WaveViewCacheGroup
friend

Definition at line 283 of file wave_view_private.h.

Member Data Documentation

◆ _image_cache_threshold

uint64_t ArdourWaveView::WaveViewCache::_image_cache_threshold
private

Definition at line 280 of file wave_view_private.h.

◆ cache_group_map

CacheGroups ArdourWaveView::WaveViewCache::cache_group_map
private

Definition at line 277 of file wave_view_private.h.

◆ image_cache_size

uint64_t ArdourWaveView::WaveViewCache::image_cache_size
private

Definition at line 279 of file wave_view_private.h.


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