Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

VrInterpolatingSigProc< iType, oType > Class Template Reference

#include <VrInterpolatingSigProc.h>

Inheritance diagram for VrInterpolatingSigProc< iType, oType >:

VrHistoryProc< iType, oType > VrSigProc GrWeaverModHead< iType, oType > GrZOH< iType, oType > VrDigMod< iType, oType > List of all members.

Public Member Functions

virtual int forecast (VrSampleRange output, VrSampleRange inputs[])
 map output range to required input ranges
virtual void pre_initialize ()
 Set sampling frequency based on upstream sampling freq.
 VrInterpolatingSigProc ()
 VrInterpolatingSigProc (int outputs)
 VrInterpolatingSigProc (int outputs, int i)
virtual ~VrInterpolatingSigProc ()
virtual int work (VrSampleRange output, void *ao[], VrSampleRange inputs[], void *ai[])
 Generate up to output.size output points at o[output#][sample#] using data at the inputptrs[input#][sample#].

Protected Attributes

int interp

template<class iType, class oType>
class VrInterpolatingSigProc< iType, oType >


Constructor & Destructor Documentation

template<class iType, class oType>
VrInterpolatingSigProc< iType, oType >::VrInterpolatingSigProc  )  [inline]
 

template<class iType, class oType>
VrInterpolatingSigProc< iType, oType >::VrInterpolatingSigProc int  outputs  )  [inline]
 

template<class iType, class oType>
VrInterpolatingSigProc< iType, oType >::VrInterpolatingSigProc int  outputs,
int  i
[inline]
 

template<class iType, class oType>
virtual VrInterpolatingSigProc< iType, oType >::~VrInterpolatingSigProc  )  [inline, virtual]
 


Member Function Documentation

template<class iType, class oType>
int VrInterpolatingSigProc< iType, oType >::forecast VrSampleRange  output,
VrSampleRange  inputs[]
[virtual]
 

map output range to required input ranges

Reimplemented from VrHistoryProc< iType, oType >.

template<class iType, class oType>
void VrInterpolatingSigProc< iType, oType >::pre_initialize  )  [virtual]
 

Set sampling frequency based on upstream sampling freq.

This method handles automatically setting the sampling frequency for this module based on the sampling frequency of the upstream modules. For most modules, our sampling frequency is the same as our upstream neighbor. VrInterpolatingSigProc and VrDecimatingSigProc override this.

This method is called immediately prior to initialize.

Reimplemented from VrSigProc.

template<class iType, class oType>
int VrInterpolatingSigProc< iType, oType >::work VrSampleRange  output,
void *  ao[],
VrSampleRange  inputs[],
void *  ai[]
[virtual]
 

Generate up to output.size output points at o[output#][sample#] using data at the inputptrs[input#][sample#].

Pointers start at corresponding VrSampleIndex in the range params. output.size is a multiple of outputSize. Returns the number of outputs (<= output.size) that it was able to compute with the given input ranges. If this value is < output.size, forecast() will need to be called again.

Implements VrSigProc.

Reimplemented in VrDigMod< iType, oType >, GrWeaverModHead< iType, oType >, and GrZOH< iType, oType >.


Member Data Documentation

template<class iType, class oType>
int VrInterpolatingSigProc< iType, oType >::interp [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Aug 4 02:22:19 2004 for GNU Radio by doxygen 1.3.8