GNU Radio 3.6.5 C++ API

gr_block_gateway Class Reference

#include <gr_block_gateway.h>

Inheritance diagram for gr_block_gateway:
gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Member Functions

virtual gr_block_gw_message_typegr_block_message (void)=0
 Provide access to the shared message object.
long gr_block__unique_id (void) const
std::string gr_block__name (void) const
unsigned gr_block__history (void) const
void gr_block__set_history (unsigned history)
void gr_block__set_fixed_rate (bool fixed_rate)
bool gr_block__fixed_rate (void) const
void gr_block__set_output_multiple (int multiple)
int gr_block__output_multiple (void) const
void gr_block__consume (int which_input, int how_many_items)
void gr_block__consume_each (int how_many_items)
void gr_block__produce (int which_output, int how_many_items)
void gr_block__set_relative_rate (double relative_rate)
double gr_block__relative_rate (void) const
uint64_t gr_block__nitems_read (unsigned int which_input)
uint64_t gr_block__nitems_written (unsigned int which_output)
gr_block::tag_propagation_policy_t gr_block__tag_propagation_policy (void)
void gr_block__set_tag_propagation_policy (gr_block::tag_propagation_policy_t p)
void gr_block__add_item_tag (unsigned int which_output, const gr_tag_t &tag)
void gr_block__add_item_tag (unsigned int which_output, uint64_t abs_offset, const pmt::pmt_t &key, const pmt::pmt_t &value, const pmt::pmt_t &srcid=pmt::PMT_F)
std::vector< gr_tag_tgr_block__get_tags_in_range (unsigned int which_input, uint64_t abs_start, uint64_t abs_end)
std::vector< gr_tag_tgr_block__get_tags_in_range (unsigned int which_input, uint64_t abs_start, uint64_t abs_end, const pmt::pmt_t &key)
void gr_block__message_port_register_in (pmt::pmt_t port_id)
void gr_block__message_port_register_out (pmt::pmt_t port_id)
void gr_block__message_port_pub (pmt::pmt_t port_id, pmt::pmt_t msg)
void gr_block__message_port_sub (pmt::pmt_t port_id, pmt::pmt_t target)
void gr_block__message_port_unsub (pmt::pmt_t port_id, pmt::pmt_t target)
pmt::pmt_t gr_block__message_ports_in ()
pmt::pmt_t gr_block__message_ports_out ()
void set_msg_handler_feval (pmt::pmt_t which_port, gr_feval_p *msg_handler)

Protected Types

typedef std::map< pmt::pmt_t,
gr_feval_p
*, pmt::pmt_comperator
msg_handlers_feval_t

Protected Member Functions

void dispatch_msg (pmt::pmt_t which_port, pmt::pmt_t msg)

Protected Attributes

msg_handlers_feval_t d_msg_handlers_feval

Detailed Description

The gateway block which performs all the magic.

The gateway provides access to all the gr_block routines. The methods prefixed with gr_block__ are renamed to class methods without the prefix in python.


Member Typedef Documentation


Member Function Documentation

void gr_block_gateway::dispatch_msg ( pmt::pmt_t  which_port,
pmt::pmt_t  msg 
) [inline, protected, virtual]

Reimplemented from gr_basic_block.

References gr_basic_block::dispatch_msg().

void gr_block_gateway::gr_block__add_item_tag ( unsigned int  which_output,
uint64_t  abs_offset,
const pmt::pmt_t key,
const pmt::pmt_t value,
const pmt::pmt_t srcid = pmt::PMT_F 
) [inline]
void gr_block_gateway::gr_block__add_item_tag ( unsigned int  which_output,
const gr_tag_t tag 
) [inline]
void gr_block_gateway::gr_block__consume ( int  which_input,
int  how_many_items 
) [inline]

References gr_block::consume().

void gr_block_gateway::gr_block__consume_each ( int  how_many_items) [inline]
bool gr_block_gateway::gr_block__fixed_rate ( void  ) const [inline]
std::vector<gr_tag_t> gr_block_gateway::gr_block__get_tags_in_range ( unsigned int  which_input,
uint64_t  abs_start,
uint64_t  abs_end 
) [inline]
std::vector<gr_tag_t> gr_block_gateway::gr_block__get_tags_in_range ( unsigned int  which_input,
uint64_t  abs_start,
uint64_t  abs_end,
const pmt::pmt_t key 
) [inline]
unsigned gr_block_gateway::gr_block__history ( void  ) const [inline]

References gr_block::history().

void gr_block_gateway::gr_block__message_port_pub ( pmt::pmt_t  port_id,
pmt::pmt_t  msg 
) [inline]
void gr_block_gateway::gr_block__message_port_register_in ( pmt::pmt_t  port_id) [inline]
void gr_block_gateway::gr_block__message_port_register_out ( pmt::pmt_t  port_id) [inline]
void gr_block_gateway::gr_block__message_port_sub ( pmt::pmt_t  port_id,
pmt::pmt_t  target 
) [inline]
void gr_block_gateway::gr_block__message_port_unsub ( pmt::pmt_t  port_id,
pmt::pmt_t  target 
) [inline]
pmt::pmt_t gr_block_gateway::gr_block__message_ports_in ( ) [inline]
pmt::pmt_t gr_block_gateway::gr_block__message_ports_out ( ) [inline]
std::string gr_block_gateway::gr_block__name ( void  ) const [inline]
uint64_t gr_block_gateway::gr_block__nitems_read ( unsigned int  which_input) [inline]
uint64_t gr_block_gateway::gr_block__nitems_written ( unsigned int  which_output) [inline]
int gr_block_gateway::gr_block__output_multiple ( void  ) const [inline]
void gr_block_gateway::gr_block__produce ( int  which_output,
int  how_many_items 
) [inline]

References gr_block::produce().

double gr_block_gateway::gr_block__relative_rate ( void  ) const [inline]
void gr_block_gateway::gr_block__set_fixed_rate ( bool  fixed_rate) [inline]
void gr_block_gateway::gr_block__set_history ( unsigned  history) [inline]
void gr_block_gateway::gr_block__set_output_multiple ( int  multiple) [inline]
void gr_block_gateway::gr_block__set_relative_rate ( double  relative_rate) [inline]
void gr_block_gateway::gr_block__set_tag_propagation_policy ( gr_block::tag_propagation_policy_t  p) [inline]
gr_block::tag_propagation_policy_t gr_block_gateway::gr_block__tag_propagation_policy ( void  ) [inline]
long gr_block_gateway::gr_block__unique_id ( void  ) const [inline]
virtual gr_block_gw_message_type& gr_block_gateway::gr_block_message ( void  ) [pure virtual]

Provide access to the shared message object.

void gr_block_gateway::set_msg_handler_feval ( pmt::pmt_t  which_port,
gr_feval_p msg_handler 
) [inline]

Member Data Documentation


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