SPUC  3.0
Public Member Functions | Public Attributes | Protected Attributes | List of all members
SPUC::delay< Numeric > Class Template Reference

Template class for Delay line. More...

#include <delay.h>

Public Member Functions

 delay (long n=0)
 Constructor. More...
 
delayoperator= (const delay &rhs)
 Assignment. More...
 
 ~delay (void)
 Destructor. More...
 
void reset (void)
 
Numeric check (long i)
 Get delay at tap i. More...
 
Numeric checkback (long i)
 Look back in delay line by i samples. More...
 
Numeric last ()
 Get last tap. More...
 
void set_size (long n=2)
 Set size of delay. More...
 
Numeric input (Numeric in)
 Clock in new input sample. More...
 
Numeric update (Numeric in)
 Clock in new sample and get output from delay line. More...
 

Public Attributes

long num_taps
 

Protected Attributes

std::vector< Numeric > z
 

Detailed Description

template<class Numeric>
class SPUC::delay< Numeric >

Template class for Delay line.

Template class for a Delay line (primitive used in other classes) Allows user to check at various points in delay line, but default use is a pure delay.

Author
Tony Kirke
delay.png
delay.gif

Constructor & Destructor Documentation

template<class Numeric>
SPUC::delay< Numeric >::delay ( long  n = 0)
inline

Constructor.

template<class Numeric>
SPUC::delay< Numeric >::~delay ( void  )
inline

Destructor.

Member Function Documentation

template<class Numeric>
Numeric SPUC::delay< Numeric >::check ( long  i)
inline
template<class Numeric>
Numeric SPUC::delay< Numeric >::checkback ( long  i)
inline

Look back in delay line by i samples.

Referenced by SPUC::qpsk< Numeric >::clock().

template<class Numeric>
Numeric SPUC::delay< Numeric >::input ( Numeric  in)
inline
template<class Numeric>
Numeric SPUC::delay< Numeric >::last ( )
inline
template<class Numeric>
delay& SPUC::delay< Numeric >::operator= ( const delay< Numeric > &  rhs)
inline

Assignment.

template<class Numeric>
void SPUC::delay< Numeric >::reset ( void  )
inline
template<class Numeric>
void SPUC::delay< Numeric >::set_size ( long  n = 2)
inline
template<class Numeric>
Numeric SPUC::delay< Numeric >::update ( Numeric  in)
inline

Clock in new sample and get output from delay line.

Referenced by main().

Member Data Documentation

template<class Numeric>
long SPUC::delay< Numeric >::num_taps
template<class Numeric>
std::vector<Numeric> SPUC::delay< Numeric >::z
protected

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