GNU Radio 3.7.1 C++ API
gr::feval_dd Class Reference

base class for evaluating a function: double -> doubleThis class is designed to be subclassed in Python or C++ and is callable from both places. It uses SWIG's "director" feature to implement the magic. More...

#include <feval.h>

Inheritance diagram for gr::feval_dd:

List of all members.

Public Member Functions

 feval_dd ()
virtual ~feval_dd ()
virtual double calleval (double x)

Protected Member Functions

virtual double eval (double x)
 override this to define the function

Detailed Description

base class for evaluating a function: double -> double

This class is designed to be subclassed in Python or C++ and is callable from both places. It uses SWIG's "director" feature to implement the magic.

It's slow. Don't use it in a performance critical path.

Override eval to define the behavior. Use calleval to invoke eval (this kludge is required to allow a python specific "shim" to be inserted.


Constructor & Destructor Documentation

gr::feval_dd::feval_dd ( ) [inline]
virtual gr::feval_dd::~feval_dd ( ) [virtual]

Member Function Documentation

virtual double gr::feval_dd::calleval ( double  x) [virtual]

Reimplemented in gr::py_feval_dd.

virtual double gr::feval_dd::eval ( double  x) [protected, virtual]

override this to define the function


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