GNU Radio Manual and C++ API Reference  3.7.12.0
The Free & Open Software Radio Ecosystem
Base classes for GR Blocks

All C++ blocks are derived from these base classes. More...

Classes

class  gr::block
 The abstract base class for all 'terminal' processing blocks.A signal processing flow is constructed by creating a tree of hierarchical blocks, which at any level may also contain terminal nodes that actually implement signal processing functions. This is the base class for all such leaf nodes. More...
 
class  gr::hier_block2
 Hierarchical container class for gr::block's and gr::hier_block2's. More...
 
class  gr::sync_block
 synchronous 1:1 input to output with historyOverride work to provide the signal processing implementation. More...
 
class  gr::sync_decimator
 synchronous N:1 input to output with historyOverride work to provide the signal processing implementation. More...
 
class  gr::sync_interpolator
 synchronous 1:N input to output with historyOverride work to provide the signal processing implementation. More...
 
class  gr::tagged_stream_block
 Block that operates on PDUs in form of tagged streamsOverride work to provide the signal processing implementation. More...
 

Enumerations

enum  { gr::block::WORK_CALLED_PRODUCE = -2, gr::block::WORK_DONE = -1 }
 Magic return values from general_work. More...
 
enum  gr::block::tag_propagation_policy_t { gr::block::TPP_DONT = 0, gr::block::TPP_ALL_TO_ALL = 1, gr::block::TPP_ONE_TO_ONE = 2, gr::block::TPP_CUSTOM = 3 }
 enum to represent different tag propagation policies. More...
 

Detailed Description

All C++ blocks are derived from these base classes.

Enumeration Type Documentation

anonymous enum

Magic return values from general_work.

Enumerator
WORK_CALLED_PRODUCE 
WORK_DONE 

enum to represent different tag propagation policies.

Enumerator
TPP_DONT 

Scheduler doesn't propagate tags from in- to output. The block itself is free to insert tags as it wants.

TPP_ALL_TO_ALL 

Propagate tags from all in- to all outputs. The scheduler takes care of that.

TPP_ONE_TO_ONE 

Propagate tags from n. input to n. output. Requires same number of in- and outputs

TPP_CUSTOM 

Like TPP_DONT, but signals the block it should implement application-specific forwarding behaviour.