Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

GrArbFunc< iType, oType > Class Template Reference

#include <GrArbFunc.h>

List of all members.


Detailed Description

template<class iType, class oType>
class GrArbFunc< iType, oType >

Arbitrary Function Block.

Pass this block a pointer to a function. The function should return type oType, and take a single argument of type "const iType &" For example, to make a bock which returns the angle of a gr_complex input, invoke: GrArbFunc<gr_complex,float>(&arg)


Public Member Functions

 GrArbFunc (oType(*f)(const iType &))
virtual const char * name ()
virtual int work (VrSampleRange output, void *o[], VrSampleRange inputs[], void *i[])

Protected Attributes

oType(* func )(const iType &)


Constructor & Destructor Documentation

template<class iType, class oType>
GrArbFunc< iType, oType >::GrArbFunc oType(*)(const iType &)  f  )  [inline]
 


Member Function Documentation

template<class iType, class oType>
virtual const char* GrArbFunc< iType, oType >::name  )  [inline, virtual]
 

template<class iType, class oType>
int GrArbFunc< iType, oType >::work VrSampleRange  output,
void *  o[],
VrSampleRange  inputs[],
void *  i[]
[virtual]
 


Member Data Documentation

template<class iType, class oType>
oType(* GrArbFunc< iType, oType >::func)(const iType &) [protected]
 


The documentation for this class was generated from the following file:
Generated on Sun Sep 18 08:22:06 2005 for GNU Radio 2.x by  doxygen 1.4.4