Ardour  9.0-pre0-427-gd2a3450e2f
AudioGrapher::AllocatingProcessContext< T > Class Template Reference

A process context that allocates and owns it's data buffer. More...

#include <process_context.h>

Inheritance diagram for AudioGrapher::AllocatingProcessContext< T >:
[legend]

Public Member Functions

 AllocatingProcessContext (samplecnt_t samples, ChannelCount channels)
 Allocates uninitialized memory. More...
 
 AllocatingProcessContext (T const *data, samplecnt_t samples, ChannelCount channels)
 Allocates and copies data from raw buffer. More...
 
 AllocatingProcessContext (ProcessContext< T > const &other)
 Copy constructor, copies data from other ProcessContext. More...
 
template<typename Y >
 AllocatingProcessContext (ProcessContext< Y > const &other, samplecnt_t samples, ChannelCount channels)
 "Copy constructor" with uninitialized data, unique sample and channel count, but copies flags More...
 
template<typename Y >
 AllocatingProcessContext (ProcessContext< Y > const &other, samplecnt_t samples)
 "Copy constructor" with uninitialized data, unique sample count, but copies channel count and flags More...
 
template<typename Y >
 AllocatingProcessContext (ProcessContext< Y > const &other)
 "Copy constructor" uninitialized data, that copies sample and channel count + flags More...
 
 ~AllocatingProcessContext ()
 
- Public Member Functions inherited from AudioGrapher::ProcessContext< DefaultSampleType >
 ProcessContext (DefaultSampleType *data, samplecnt_t samples, ChannelCount channels)
 Basic constructor with data, sample and channel count. More...
 
 ProcessContext (ProcessContext< DefaultSampleType > const &other)
 Normal copy constructor. More...
 
 ProcessContext (ProcessContext< Y > const &other, DefaultSampleType *data, samplecnt_t samples, ChannelCount channels)
 "Copy constructor" with unique data, sample and channel count, but copies flags More...
 
 ProcessContext (ProcessContext< Y > const &other, DefaultSampleType *data, samplecnt_t samples)
 "Copy constructor" with unique data and sample count, but copies channel count and flags More...
 
 ProcessContext (ProcessContext< Y > const &other, DefaultSampleType *data)
 "Copy constructor" with unique data, but copies sample and channel count + flags More...
 
ProcessContext beginning (samplecnt_t samples)
 Make new Context out of the beginning of this context. More...
 
virtual ~ProcessContext ()
 
DefaultSampleType const * data () const
 data points to the array of data to process More...
 
DefaultSampleTypedata ()
 
samplecnt_t const & samples () const
 samples tells how many samples the array pointed by data contains More...
 
ChannelCount const & channels () const
 
samplecnt_t samples_per_channel () const
 Returns the amount of samples per channel. More...
 
bool has_flag (Flag flag) const
 
void set_flag (Flag flag) const
 
void remove_flag (Flag flag) const
 
FlagField const & flags () const
 

Additional Inherited Members

- Public Types inherited from AudioGrapher::ProcessContext< DefaultSampleType >
enum  Flags
 
typedef FlagField::Flag Flag
 
- Protected Member Functions inherited from AudioGrapher::Throwing< L >
 Throwing ()
 
bool throw_level (ThrowLevel level)
 
- Protected Attributes inherited from AudioGrapher::ProcessContext< DefaultSampleType >
DefaultSampleType *const _data
 
samplecnt_t _samples
 
ChannelCount _channels
 
FlagField _flags
 

Detailed Description

template<typename T = DefaultSampleType>
class AudioGrapher::AllocatingProcessContext< T >

A process context that allocates and owns it's data buffer.

Definition at line 123 of file process_context.h.

Constructor & Destructor Documentation

◆ AllocatingProcessContext() [1/6]

template<typename T = DefaultSampleType>
AudioGrapher::AllocatingProcessContext< T >::AllocatingProcessContext ( samplecnt_t  samples,
ChannelCount  channels 
)
inline

Allocates uninitialized memory.

Definition at line 127 of file process_context.h.

◆ AllocatingProcessContext() [2/6]

template<typename T = DefaultSampleType>
AudioGrapher::AllocatingProcessContext< T >::AllocatingProcessContext ( T const *  data,
samplecnt_t  samples,
ChannelCount  channels 
)
inline

Allocates and copies data from raw buffer.

Definition at line 131 of file process_context.h.

◆ AllocatingProcessContext() [3/6]

template<typename T = DefaultSampleType>
AudioGrapher::AllocatingProcessContext< T >::AllocatingProcessContext ( ProcessContext< T > const &  other)
inline

Copy constructor, copies data from other ProcessContext.

Definition at line 136 of file process_context.h.

◆ AllocatingProcessContext() [4/6]

template<typename T = DefaultSampleType>
template<typename Y >
AudioGrapher::AllocatingProcessContext< T >::AllocatingProcessContext ( ProcessContext< Y > const &  other,
samplecnt_t  samples,
ChannelCount  channels 
)
inline

"Copy constructor" with uninitialized data, unique sample and channel count, but copies flags

Definition at line 142 of file process_context.h.

◆ AllocatingProcessContext() [5/6]

template<typename T = DefaultSampleType>
template<typename Y >
AudioGrapher::AllocatingProcessContext< T >::AllocatingProcessContext ( ProcessContext< Y > const &  other,
samplecnt_t  samples 
)
inline

"Copy constructor" with uninitialized data, unique sample count, but copies channel count and flags

Definition at line 147 of file process_context.h.

◆ AllocatingProcessContext() [6/6]

template<typename T = DefaultSampleType>
template<typename Y >
AudioGrapher::AllocatingProcessContext< T >::AllocatingProcessContext ( ProcessContext< Y > const &  other)
inline

"Copy constructor" uninitialized data, that copies sample and channel count + flags

Definition at line 152 of file process_context.h.

◆ ~AllocatingProcessContext()

template<typename T = DefaultSampleType>
AudioGrapher::AllocatingProcessContext< T >::~AllocatingProcessContext ( )
inline

Definition at line 155 of file process_context.h.


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