Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
SampleTrackCache::Buffer Struct Reference
Collaboration diagram for SampleTrackCache::Buffer:
[legend]

Public Member Functions

 Buffer ()
 
void Free ()
 
sampleCount end () const
 
void swap (Buffer &other)
 

Public Attributes

Floats data
 
sampleCount start
 
sampleCount len
 

Detailed Description

Definition at line 54 of file SampleTrackCache.h.

Constructor & Destructor Documentation

◆ Buffer()

SampleTrackCache::Buffer::Buffer ( )
inline

Definition at line 59 of file SampleTrackCache.h.

59: start(0), len(0) {}

Member Function Documentation

◆ end()

sampleCount SampleTrackCache::Buffer::end ( ) const
inline

Definition at line 61 of file SampleTrackCache.h.

61{ return start + len; }

Referenced by SampleTrackCache::GetFloats().

Here is the caller graph for this function:

◆ Free()

void SampleTrackCache::Buffer::Free ( )
inline

Definition at line 60 of file SampleTrackCache.h.

60{ data.reset(); start = 0; len = 0; }

Referenced by SampleTrackCache::Free().

Here is the caller graph for this function:

◆ swap()

void SampleTrackCache::Buffer::swap ( Buffer other)
inline

Definition at line 63 of file SampleTrackCache.h.

64 {
65 data .swap ( other.data );
66 std::swap( start, other.start );
67 std::swap( len, other.len );
68 }
void swap(std::unique_ptr< Alg_seq > &a, std::unique_ptr< Alg_seq > &b)
Definition: NoteTrack.cpp:752

References data, len, start, and anonymous_namespace{NoteTrack.cpp}::swap().

Referenced by SampleTrackCache::GetFloats().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ data

Floats SampleTrackCache::Buffer::data

◆ len

sampleCount SampleTrackCache::Buffer::len

Definition at line 57 of file SampleTrackCache.h.

Referenced by SampleTrackCache::GetFloats(), and swap().

◆ start

sampleCount SampleTrackCache::Buffer::start

Definition at line 56 of file SampleTrackCache.h.

Referenced by SampleTrackCache::GetFloats(), and swap().


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