gr-baz Package
gr::blocks::regenerate_bb_impl Class Reference

#include <regenerate_bb_impl.h>

Inheritance diagram for gr::blocks::regenerate_bb_impl:
gr::blocks::regenerate_bb gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

Public Member Functions

 regenerate_bb_impl (int period, unsigned int max_regen=500)
 ~regenerate_bb_impl ()
void set_max_regen (unsigned int regen)
 Reset the maximum regeneration count; this will reset the current regen.
void set_period (int period)
 Reset the period of regenerations; this will reset the current regen.
unsigned int max_regen () const
 return the maximum regeneration count.
int period () const
 return the regeneration period.
int work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
 just like gr_block::general_work, only this arranges to call consume_each for you

Additional Inherited Members

- Public Types inherited from gr::blocks::regenerate_bb
typedef boost::shared_ptr
< regenerate_bb
sptr
- Static Public Member Functions inherited from gr::blocks::regenerate_bb
static sptr make (int period, unsigned int max_regen=500)
 Make a regenerate block.
- Protected Types inherited from gr_basic_block
enum  vcolor { WHITE, GREY, BLACK }
- Protected Member Functions inherited from gr_sync_block
 gr_sync_block (void)
 gr_sync_block (const std::string &name, gr_io_signature_sptr input_signature, gr_io_signature_sptr output_signature)
- Protected Attributes inherited from gr_block
std::vector< long > d_max_output_buffer
std::vector< long > d_min_output_buffer
gruel::mutex d_setlock

Constructor & Destructor Documentation

gr::blocks::regenerate_bb_impl::regenerate_bb_impl ( int  period,
unsigned int  max_regen = 500 
)
gr::blocks::regenerate_bb_impl::~regenerate_bb_impl ( )

Member Function Documentation

unsigned int gr::blocks::regenerate_bb_impl::max_regen ( ) const
inlinevirtual

return the maximum regeneration count.

Implements gr::blocks::regenerate_bb.

int gr::blocks::regenerate_bb_impl::period ( ) const
inlinevirtual

return the regeneration period.

Implements gr::blocks::regenerate_bb.

void gr::blocks::regenerate_bb_impl::set_max_regen ( unsigned int  regen)
virtual

Reset the maximum regeneration count; this will reset the current regen.

Implements gr::blocks::regenerate_bb.

void gr::blocks::regenerate_bb_impl::set_period ( int  period)
virtual

Reset the period of regenerations; this will reset the current regen.

Implements gr::blocks::regenerate_bb.

int gr::blocks::regenerate_bb_impl::work ( int  noutput_items,
gr_vector_const_void_star input_items,
gr_vector_void_star output_items 
)
virtual

just like gr_block::general_work, only this arranges to call consume_each for you

The user must override work to define the signal processing code

Implements gr_sync_block.


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