Audacity  3.0.3
Classes | Typedefs | Functions
SampleBlock.h File Reference
#include "audacity/Types.h"
#include <functional>
#include <memory>
#include <unordered_set>
Include dependency graph for SampleBlock.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MinMaxRMS
 
class  SampleBlock
 Abstract class allows access to contents of a block of sound samples, serialization as XML, and reference count management that can suppress reclamation of its storage. More...
 
class  SampleBlockFactory
 abstract base class with methods to produce SampleBlock objects More...
 

Typedefs

using SampleBlockPtr = std::shared_ptr< SampleBlock >
 
using SampleBlockFactoryPtr = std::shared_ptr< SampleBlockFactory >
 
using SampleBlockFactoryFactory = std::function< SampleBlockFactoryPtr(AudacityProject &) >
 
using SampleBlockID = long long
 

Functions

std::function< void(const SampleBlock &) > BlockSpaceUsageAccumulator (unsigned long long &total)
 

Typedef Documentation

◆ SampleBlockFactoryFactory

Definition at line 26 of file SampleBlock.h.

◆ SampleBlockFactoryPtr

using SampleBlockFactoryPtr = std::shared_ptr<SampleBlockFactory>

Definition at line 25 of file SampleBlock.h.

◆ SampleBlockID

using SampleBlockID = long long

Definition at line 29 of file SampleBlock.h.

◆ SampleBlockPtr

using SampleBlockPtr = std::shared_ptr<SampleBlock>

Definition at line 23 of file SampleBlock.h.

Function Documentation

◆ BlockSpaceUsageAccumulator()

std::function< void(const SampleBlock&) > BlockSpaceUsageAccumulator ( unsigned long long &  total)
inline

Definition at line 97 of file SampleBlock.h.

98 {
99  return [&total]( const SampleBlock &block ){
100  total += block.GetSpaceUsage();
101  };
102 };

Referenced by anonymous_namespace{UndoManager.cpp}::CalculateUsage(), ProjectFileIO::GetCurrentUsage(), and ProjectFileIO::ShouldCompact().

Here is the caller graph for this function:
SampleBlock
Abstract class allows access to contents of a block of sound samples, serialization as XML,...
Definition: SampleBlock.h:45