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

#include <wave_view_private.h>

Public Member Functions

 WaveViewCacheGroup (WaveViewCache &parent_cache)
 
 ~WaveViewCacheGroup ()
 
std::shared_ptr< WaveViewImagelookup_image (WaveViewProperties const &)
 
void add_image (std::shared_ptr< WaveViewImage >)
 
bool full () const
 
void clear_cache ()
 

Static Public Member Functions

static uint32_t max_size ()
 

Private Types

typedef std::list< std::shared_ptr< WaveViewImage > > ImageCache
 

Private Attributes

WaveViewCache_parent_cache
 
ImageCache _cached_images
 

Detailed Description

Definition at line 222 of file wave_view_private.h.

Member Typedef Documentation

◆ ImageCache

typedef std::list<std::shared_ptr<WaveViewImage> > ArdourWaveView::WaveViewCacheGroup::ImageCache
private

Definition at line 251 of file wave_view_private.h.

Constructor & Destructor Documentation

◆ WaveViewCacheGroup()

ArdourWaveView::WaveViewCacheGroup::WaveViewCacheGroup ( WaveViewCache parent_cache)

◆ ~WaveViewCacheGroup()

ArdourWaveView::WaveViewCacheGroup::~WaveViewCacheGroup ( )

Member Function Documentation

◆ add_image()

void ArdourWaveView::WaveViewCacheGroup::add_image ( std::shared_ptr< WaveViewImage )

◆ clear_cache()

void ArdourWaveView::WaveViewCacheGroup::clear_cache ( )

◆ full()

bool ArdourWaveView::WaveViewCacheGroup::full ( ) const
inline

Definition at line 236 of file wave_view_private.h.

◆ lookup_image()

std::shared_ptr<WaveViewImage> ArdourWaveView::WaveViewCacheGroup::lookup_image ( WaveViewProperties const &  )

◆ max_size()

static uint32_t ArdourWaveView::WaveViewCacheGroup::max_size ( )
inlinestatic

Definition at line 238 of file wave_view_private.h.

Member Data Documentation

◆ _cached_images

ImageCache ArdourWaveView::WaveViewCacheGroup::_cached_images
private

Definition at line 252 of file wave_view_private.h.

◆ _parent_cache

WaveViewCache& ArdourWaveView::WaveViewCacheGroup::_parent_cache
private

At time of writing we don't strictly need a reference to the parent cache as there is only a single global cache but if the image cache ever becomes a per canvas cache then a using a reference is handy.

Definition at line 249 of file wave_view_private.h.


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