gr-baz Package
baz_native_callback_x Class Reference

square2 a stream of floats. More...

#include <baz_native_callback.h>

Inheritance diagram for baz_native_callback_x:

Public Member Functions

 ~baz_native_callback_x ()
void set_size (int size)
void set_target (baz_native_callback_target_sptr target)
void set_threshold_enable (bool enable)
void set_threshold_level (float threshold_level)
int size () const
bool threshold_enable () const
float threshold_level () const
int work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)

Friends

baz_native_callback_x_sptr baz_make_native_callback_x (int size, baz_native_callback_target_sptr target, bool threshold_enable=false, float threshold_level=0.0)
 Return a shared_ptr to a new instance of baz_native_callback_x.

Detailed Description

square2 a stream of floats.

This uses the preferred technique: subclassing gr::sync_block.

Constructor & Destructor Documentation

◆ ~baz_native_callback_x()

baz_native_callback_x::~baz_native_callback_x ( )

Member Function Documentation

◆ set_size()

void baz_native_callback_x::set_size ( int size)

References size().

◆ set_target()

void baz_native_callback_x::set_target ( baz_native_callback_target_sptr target)

◆ set_threshold_enable()

void baz_native_callback_x::set_threshold_enable ( bool enable)

◆ set_threshold_level()

void baz_native_callback_x::set_threshold_level ( float threshold_level)

References threshold_level().

◆ size()

int baz_native_callback_x::size ( ) const
inline

◆ threshold_enable()

bool baz_native_callback_x::threshold_enable ( ) const
inline

◆ threshold_level()

float baz_native_callback_x::threshold_level ( ) const
inline

◆ work()

int baz_native_callback_x::work ( int noutput_items,
gr_vector_const_void_star & input_items,
gr_vector_void_star & output_items )

◆ baz_make_native_callback_x

baz_native_callback_x_sptr baz_make_native_callback_x ( int size,
baz_native_callback_target_sptr target,
bool threshold_enable = false,
float threshold_level = 0.0 )
friend

Return a shared_ptr to a new instance of baz_native_callback_x.

To avoid accidental use of raw pointers, baz_native_callback_x's constructor is private. howto_make_square2_ff is the public interface for creating new instances.

References size(), threshold_enable(), and threshold_level().


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