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

GrKeepOneInN Class Reference

#include <GrKeepOneInN.h>

Inheritance diagram for GrKeepOneInN:

VrSigProc List of all members.

Public Member Functions

 GrKeepOneInN (int item_size, int N)
 ~GrKeepOneInN ()
virtual const char * name ()
 default name for a module (override with actual name)
virtual void pre_initialize ()
 Set sampling frequency based on upstream sampling freq.
virtual int forecast (VrSampleRange output, VrSampleRange inputs[])
 map output range to required input ranges
virtual int work (VrSampleRange output, void *o[], VrSampleRange inputs[], void *i[])
 Generate up to output.size output points at o[output#][sample#] using data at the inputptrs[input#][sample#].

Private Attributes

int d_item_size
int d_N

Constructor & Destructor Documentation

GrKeepOneInN::GrKeepOneInN int  item_size,
int  N
 

GrKeepOneInN::~GrKeepOneInN  ) 
 


Member Function Documentation

int GrKeepOneInN::forecast VrSampleRange  output,
VrSampleRange  inputs[]
[virtual]
 

map output range to required input ranges

Reimplemented from VrSigProc.

virtual const char* GrKeepOneInN::name  )  [inline, virtual]
 

default name for a module (override with actual name)

Reimplemented from VrSigProc.

void GrKeepOneInN::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.

int GrKeepOneInN::work VrSampleRange  output,
void *  o[],
VrSampleRange  inputs[],
void *  i[]
[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.


Member Data Documentation

int GrKeepOneInN::d_item_size [private]
 

int GrKeepOneInN::d_N [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Mar 15 23:55:37 2005 for GNU Radio by  doxygen 1.4.0