HARDT - The Ham Radio DSP Toolkit
Public Member Functions | List of all members
HPassThrough< T > Class Template Reference

#include <hpassthrough.h>

Inheritance diagram for HPassThrough< T >:
Inheritance graph
[legend]
Collaboration diagram for HPassThrough< T >:
Collaboration graph
[legend]

Public Member Functions

 HPassThrough (HWriter< T > *writer, size_t blocksize, HProbe< T > *probe=NULL)
 
 HPassThrough (HWriterConsumer< T > *consumer, size_t blocksize, HProbe< T > *probe=NULL)
 
 HPassThrough (HReader< T > *reader, size_t blocksize, HProbe< T > *probe=NULL)
 
 ~HPassThrough ()
 
virtual void Filter (T *src, T *dest, size_t blocksize)
 
- Public Member Functions inherited from HFilter< T >
 ~HFilter ()
 
int Write (T *src, size_t blocksize)
 
int Read (T *dest, size_t blocksize)
 
bool Start ()
 
bool Stop ()
 
bool Command (HCommand *command)
 
void Enable ()
 
void Disable ()
 
bool GetEnabled ()
 
- Public Member Functions inherited from HObject
 HObject ()
 
- Public Member Functions inherited from HWriter< T >
virtual ~HWriter ()=default
 
HWriter< T > * Writer ()
 
- Public Member Functions inherited from HReader< T >
virtual ~HReader ()=default
 
HReader< T > * Reader ()
 
- Public Member Functions inherited from HWriterConsumer< T >
HWriterConsumer< T > * Consumer ()
 

Additional Inherited Members

- Static Public Member Functions inherited from HFilter< T >
static std::vector< float > ReadCoeffsFromFile (std::string filename)
 
static std::vector< float > ReadCoeffsFromFile (char *filename)
 
- Protected Member Functions inherited from HFilter< T >
 HFilter (HWriter< T > *writer, size_t blocksize, HProbe< T > *probe=NULL)
 
 HFilter (HWriterConsumer< T > *consumer, size_t blocksize, HProbe< T > *probe=NULL)
 
 HFilter (HReader< T > *reader, size_t blocksize, HProbe< T > *probe=NULL)
 
void SetWriter (HWriter< T > *writer)
 
- Protected Attributes inherited from HFilter< T >
int _blocksize
 

Detailed Description

template<class T>
class HPassThrough< T >

A filter providing strict passthrough feeding of the signal. Can be used if you want to define a component in a chain that is to be replaced by a more usable component later on, but mostly used if you want to attach a probe to a signal somewhere in the chain where there is no other component that accepts a probe.

Constructor & Destructor Documentation

◆ HPassThrough() [1/3]

template<class T >
HPassThrough< T >::HPassThrough ( HWriter< T > *  writer,
size_t  blocksize,
HProbe< T > *  probe = NULL 
)

Construct a new HPassThrough object that writes to a writer

◆ HPassThrough() [2/3]

template<class T >
HPassThrough< T >::HPassThrough ( HWriterConsumer< T > *  consumer,
size_t  blocksize,
HProbe< T > *  probe = NULL 
)

Construct a new HPassThrough object that registers with an upstream writer

◆ HPassThrough() [3/3]

template<class T >
HPassThrough< T >::HPassThrough ( HReader< T > *  reader,
size_t  blocksize,
HProbe< T > *  probe = NULL 
)

Construct a new HPassThrough object that reads from a reader

◆ ~HPassThrough()

template<class T >
HPassThrough< T >::~HPassThrough

Default destructor

Member Function Documentation

◆ Filter()

template<class T >
void HPassThrough< T >::Filter ( T *  src,
T *  dest,
size_t  blocksize 
)
virtual

Run a block of samples through the passthrough filter

Implements HFilter< T >.


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