Ardour  9.0-pre0-386-g96ef4d20f2
AudioGrapher::ListedSource< T > Class Template Reference

An generic Source that uses a std::list for managing outputs. More...

#include <listed_source.h>

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

Public Member Functions

void add_output (typename Source< T >::SinkPtr output)
 
void clear_outputs ()
 Removes all outputs added. More...
 
void remove_output (typename Source< T >::SinkPtr output)
 
- Public Member Functions inherited from AudioGrapher::Source< DefaultSampleType >
virtual ~Source ()
 
virtual void add_output (SinkPtr output)=0
 Adds an output to this source. All data generated is forwarded to output. More...
 
virtual void remove_output (SinkPtr output)=0
 Removes a specific output from this source. More...
 

Protected Types

typedef std::list< typename Source< T >::SinkPtrSinkList
 

Protected Member Functions

void output (ProcessContext< T > const &c)
 Helper for derived classes. More...
 
void output (ProcessContext< T > &c)
 
bool output_size_is_one ()
 

Protected Attributes

SinkList outputs
 

Additional Inherited Members

- Public Types inherited from AudioGrapher::Source< DefaultSampleType >
typedef std::shared_ptr< Sink< DefaultSampleType > > SinkPtr
 

Detailed Description

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

An generic Source that uses a std::list for managing outputs.

Definition at line 16 of file listed_source.h.

Member Typedef Documentation

◆ SinkList

template<typename T = DefaultSampleType>
typedef std::list<typename Source<T>::SinkPtr> AudioGrapher::ListedSource< T >::SinkList
protected

Definition at line 25 of file listed_source.h.

Member Function Documentation

◆ add_output()

template<typename T = DefaultSampleType>
void AudioGrapher::ListedSource< T >::add_output ( typename Source< T >::SinkPtr  output)
inline

Definition at line 19 of file listed_source.h.

◆ clear_outputs()

template<typename T = DefaultSampleType>
void AudioGrapher::ListedSource< T >::clear_outputs ( )
inlinevirtual

Removes all outputs added.

Implements AudioGrapher::Source< DefaultSampleType >.

Definition at line 20 of file listed_source.h.

◆ output() [1/2]

template<typename T = DefaultSampleType>
void AudioGrapher::ListedSource< T >::output ( ProcessContext< T > &  c)
inlineprotected

Definition at line 35 of file listed_source.h.

◆ output() [2/2]

template<typename T = DefaultSampleType>
void AudioGrapher::ListedSource< T >::output ( ProcessContext< T > const &  c)
inlineprotected

Helper for derived classes.

Definition at line 28 of file listed_source.h.

◆ output_size_is_one()

template<typename T = DefaultSampleType>
bool AudioGrapher::ListedSource< T >::output_size_is_one ( )
inlineprotected

Definition at line 45 of file listed_source.h.

◆ remove_output()

template<typename T = DefaultSampleType>
void AudioGrapher::ListedSource< T >::remove_output ( typename Source< T >::SinkPtr  output)
inline

Definition at line 21 of file listed_source.h.

Member Data Documentation

◆ outputs

template<typename T = DefaultSampleType>
SinkList AudioGrapher::ListedSource< T >::outputs
protected

Definition at line 47 of file listed_source.h.


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