Ardour  9.0-pre0-582-g084a23a80d
AppendingVectorSink< T > Class Template Reference

#include <utils.h>

Inheritance diagram for AppendingVectorSink< T >:
[legend]

Public Member Functions

 AppendingVectorSink ()
 
void process (AudioGrapher::ProcessContext< T > const &c)
 
void reset ()
 
- Public Member Functions inherited from VectorSink< T >
void process (AudioGrapher::ProcessContext< T > &c)
 
std::vector< T > const & get_data () const
 
T const * get_array () const
 
void reset ()
 
- Public Member Functions inherited from AudioGrapher::Sink< T >
virtual ~Sink ()
 

Private Attributes

samplecnt_t total_samples
 

Additional Inherited Members

- Protected Attributes inherited from VectorSink< T >
std::vector< T > data
 

Detailed Description

template<typename T>
class AppendingVectorSink< T >

Definition at line 87 of file libs/audiographer/tests/utils.h.

Constructor & Destructor Documentation

◆ AppendingVectorSink()

template<typename T >
AppendingVectorSink< T >::AppendingVectorSink ( )
inline

Definition at line 90 of file libs/audiographer/tests/utils.h.

Member Function Documentation

◆ process()

template<typename T >
void AppendingVectorSink< T >::process ( AudioGrapher::ProcessContext< T > const &  context)
inlinevirtual

Process given data. The data can not be modified, so in-place processing is not allowed. At least this function must be implemented by deriving classes

Reimplemented from VectorSink< T >.

Definition at line 91 of file libs/audiographer/tests/utils.h.

◆ reset()

template<typename T >
void AppendingVectorSink< T >::reset ( )
inline

Definition at line 100 of file libs/audiographer/tests/utils.h.

Member Data Documentation

◆ total_samples

template<typename T >
samplecnt_t AppendingVectorSink< T >::total_samples
private

Definition at line 107 of file libs/audiographer/tests/utils.h.


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