gr::hier_block2
gr::basic_block
gr::channels::channel_model
gr::channels::channel_model2
gr::channels::dynamic_channel_model
gr::digital::cpmmod_bc
gr::digital::ofdm_sync_sc_cfb
gr::top_block
gnuradio/hier_block2.h
basic_block_sptr basic_block_sptr gr::hier_block2::opaque_self opaque_self gr::hier_block2::opaque_self

typedef for object returned from self().

This type is only guaranteed to be passable to connect and disconnect. No other assumptions should be made about it.

class friend class hier_block2_detail hier_block2_detail gr::hier_block2::hier_block2_detail hier_block2_detail
std::unique_ptr< hier_block2_detail > std::unique_ptr<hier_block2_detail> gr::hier_block2::d_detail d_detail gr::hier_block2::d_detail

Private implementation details of gr::hier_block2.

This is a pointer in order to not break ABI when implementation object changes.

pmt::pmt_t pmt::pmt_t gr::hier_block2::hier_message_ports_in hier_message_ports_in gr::hier_block2::hier_message_ports_in
pmt::pmt_t pmt::pmt_t gr::hier_block2::hier_message_ports_out hier_message_ports_out gr::hier_block2::hier_message_ports_out
gr::hier_block2::hier_block2
()
hier_block2
gr::hier_block2::hier_block2
gr::hier_block2::hier_block2
(const std::string &name, gr::io_signature::sptr input_signature, gr::io_signature::sptr output_signature)
hier_block2
gr::hier_block2::hier_block2
const std::string & name
gr::io_signature::sptr input_signature
gr::io_signature::sptr output_signature
gr::hier_block2::~hier_block2
() override
~hier_block2
gr::hier_block2::~hier_block2
opaque_self opaque_self gr::hier_block2::self () self gr::hier_block2::self

Return an object, representing the current block, which can be passed to connect.

The returned object may only be used as an argument to connect or disconnect. Any other use of self() results in unspecified (erroneous) behavior.

void void gr::hier_block2::connect (basic_block_sptr block) connect gr::hier_block2::connect basic_block_sptr block

Add a stand-alone (possibly hierarchical) block to internal graph.

This adds a gr-block or hierarchical block to the internal graph without wiring it to anything else.

void void gr::hier_block2::connect (basic_block_sptr src, int src_port, basic_block_sptr dst, int dst_port) connect gr::hier_block2::connect basic_block_sptr src int src_port basic_block_sptr dst int dst_port

Add gr-blocks or hierarchical blocks to internal graph and wire together.

This adds (if not done earlier by another connect) a pair of gr-blocks or hierarchical blocks to the internal flowgraph, and wires the specified output port to the specified input port.

void void gr::hier_block2::msg_connect (basic_block_sptr src, pmt::pmt_t srcport, basic_block_sptr dst, pmt::pmt_t dstport) msg_connect gr::hier_block2::msg_connect basic_block_sptr src pmt::pmt_t srcport basic_block_sptr dst pmt::pmt_t dstport

Add gr-blocks or hierarchical blocks to internal graph and wire together.

This adds (if not done earlier by another connect) a pair of gr-blocks or hierarchical blocks to the internal message port subscription

void void gr::hier_block2::msg_connect (basic_block_sptr src, std::string srcport, basic_block_sptr dst, std::string dstport) msg_connect gr::hier_block2::msg_connect basic_block_sptr src std::string srcport basic_block_sptr dst std::string dstport
void void gr::hier_block2::msg_disconnect (basic_block_sptr src, pmt::pmt_t srcport, basic_block_sptr dst, pmt::pmt_t dstport) msg_disconnect gr::hier_block2::msg_disconnect basic_block_sptr src pmt::pmt_t srcport basic_block_sptr dst pmt::pmt_t dstport
void void gr::hier_block2::msg_disconnect (basic_block_sptr src, std::string srcport, basic_block_sptr dst, std::string dstport) msg_disconnect gr::hier_block2::msg_disconnect basic_block_sptr src std::string srcport basic_block_sptr dst std::string dstport
void void gr::hier_block2::disconnect (basic_block_sptr block) disconnect gr::hier_block2::disconnect basic_block_sptr block

Remove a gr-block or hierarchical block from the internal flowgraph.

This removes a gr-block or hierarchical block from the internal flowgraph, disconnecting it from other blocks as needed.

void void gr::hier_block2::disconnect (basic_block_sptr src, int src_port, basic_block_sptr dst, int dst_port) disconnect gr::hier_block2::disconnect basic_block_sptr src int src_port basic_block_sptr dst int dst_port

Disconnect a pair of gr-blocks or hierarchical blocks in internal flowgraph.

This disconnects the specified input port from the specified output port of a pair of gr-blocks or hierarchical blocks.

void void gr::hier_block2::disconnect_all () disconnect_all gr::hier_block2::disconnect_all

Disconnect all connections in the internal flowgraph.

This call removes all output port to input port connections in the internal flowgraph.

void virtual void gr::hier_block2::lock () lock gr::hier_block2::lock lock

Lock a flowgraph in preparation for reconfiguration. When an equal number of calls to lock() and unlock() have occurred, the flowgraph will be reconfigured.

N.B. lock() and unlock() may not be called from a flowgraph thread (E.g., gr::block::work method) or deadlock will occur when reconfiguration happens.

void virtual void gr::hier_block2::unlock () unlock gr::hier_block2::unlock unlock

Unlock a flowgraph in preparation for reconfiguration. When an equal number of calls to lock() and unlock() have occurred, the flowgraph will be reconfigured.

N.B. lock() and unlock() may not be called from a flowgraph thread (E.g., gr::block::work method) or deadlock will occur when reconfiguration happens.

int int gr::hier_block2::max_output_buffer (size_t port=0) max_output_buffer gr::hier_block2::max_output_buffer size_t port 0

Returns max buffer size (itemcount) on output port `i`.

void void gr::hier_block2::set_max_output_buffer (int max_output_buffer) set_max_output_buffer gr::hier_block2::set_max_output_buffer int max_output_buffer

Sets max buffer size (itemcount) on all output ports.

void void gr::hier_block2::set_max_output_buffer (size_t port, int max_output_buffer) set_max_output_buffer gr::hier_block2::set_max_output_buffer size_t port int max_output_buffer

Sets max buffer size (itemcount) on output port `port`.

int int gr::hier_block2::min_output_buffer (size_t port=0) min_output_buffer gr::hier_block2::min_output_buffer size_t port 0

Returns min buffer size (itemcount) on output port `i`.

void void gr::hier_block2::set_min_output_buffer (int min_output_buffer) set_min_output_buffer gr::hier_block2::set_min_output_buffer int min_output_buffer

Sets min buffer size (itemcount) on all output ports.

void void gr::hier_block2::set_min_output_buffer (size_t port, int min_output_buffer) set_min_output_buffer gr::hier_block2::set_min_output_buffer size_t port int min_output_buffer

Sets min buffer size (itemcount) on output port `port`.

flat_flowgraph_sptr flat_flowgraph_sptr gr::hier_block2::flatten () const flatten gr::hier_block2::flatten
hier_block2_sptr hier_block2_sptr gr::hier_block2::to_hier_block2 () to_hier_block2 gr::hier_block2::to_hier_block2
bool bool gr::hier_block2::has_msg_port (pmt::pmt_t which_port) override has_msg_port gr::hier_block2::has_msg_port has_msg_port pmt::pmt_t which_port
bool bool gr::hier_block2::message_port_is_hier (pmt::pmt_t port_id) override message_port_is_hier gr::hier_block2::message_port_is_hier message_port_is_hier pmt::pmt_t port_id
bool bool gr::hier_block2::message_port_is_hier_in (pmt::pmt_t port_id) override message_port_is_hier_in gr::hier_block2::message_port_is_hier_in message_port_is_hier_in pmt::pmt_t port_id pmt::list_has
bool bool gr::hier_block2::message_port_is_hier_out (pmt::pmt_t port_id) override message_port_is_hier_out gr::hier_block2::message_port_is_hier_out message_port_is_hier_out pmt::pmt_t port_id pmt::list_has
void void gr::hier_block2::message_port_register_hier_in (pmt::pmt_t port_id) message_port_register_hier_in gr::hier_block2::message_port_register_hier_in pmt::pmt_t port_id pmt::list_add pmt::list_has
void void gr::hier_block2::message_port_register_hier_out (pmt::pmt_t port_id) message_port_register_hier_out gr::hier_block2::message_port_register_hier_out pmt::pmt_t port_id pmt::dict_has_key pmt::list_add pmt::list_has
void void gr::hier_block2::set_processor_affinity (const std::vector< int > &mask) override set_processor_affinity gr::hier_block2::set_processor_affinity set_processor_affinity const std::vector< int > & mask

Set the affinity of all blocks in hier_block2 to processor core `n`.

mask

a vector of ints of the core numbers available to this block.

void void gr::hier_block2::unset_processor_affinity () override unset_processor_affinity gr::hier_block2::unset_processor_affinity unset_processor_affinity

Remove processor affinity for all blocks in hier_block2.

std::vector< int > std::vector< int > gr::hier_block2::processor_affinity () override processor_affinity gr::hier_block2::processor_affinity processor_affinity

Get the current processor affinity.

This returns the processor affinity value for the first block in the hier_block2's list of blocks with the assumption that they have always only been set through the hier_block2's interface. If any block has been individually set, then this call could be misleading.

void void gr::hier_block2::set_log_level (const std::string &level) override set_log_level gr::hier_block2::set_log_level set_log_level const std::string & level

Set the logger's output level.

Sets the level of the logger for all connected blocks. This takes a string that is translated to the standard levels and can be (case insensitive):

- off , notset

- debug

- info

- notice

- warn

- error

- crit

- alert

- fatal

- emerg

std::string std::string gr::hier_block2::log_level () override log_level gr::hier_block2::log_level log_level

Get the logger's output level.

bool bool gr::hier_block2::all_min_output_buffer_p (void) all_min_output_buffer_p gr::hier_block2::all_min_output_buffer_p void

Get if all block min buffers should be set.

this returns whether all the block min output buffers should be set or just the block ports connected to the hier ports.

bool bool gr::hier_block2::all_max_output_buffer_p (void) all_max_output_buffer_p gr::hier_block2::all_max_output_buffer_p void

Get if all block max buffers should be set.

this returns whether all the block max output buffers should be set or just the block ports connected to the hier ports.

Hierarchical container class for gr::block's and gr::hier_block2's.

gr::basic_block
gr::channels::channel_model
gr::channels::channel_model2
gr::channels::dynamic_channel_model
gr::digital::cpmmod_bc
gr::digital::ofdm_sync_sc_cfb
gr::hier_block2
gr::messages::msg_accepter
gr::msg_accepter
gr::top_block
std::enable_shared_from_this< basic_block >
T
gr::basic_block
d_name
d_symbol_alias
d_symbol_name
d_input_signature
d_output_signature
d_debug_logger
d_logger
msg_queue
d_rpc_vars
d_message_subscribers
gr::hier_block2
hier_message_ports_in
hier_message_ports_out
gr::io_signature
gr::messages::msg_accepter
gr::msg_accepter
std::basic_string< Char >
std::deque< T >
elements
std::enable_shared_from_this< basic_block >
std::map< pmt::pmt_t, msg_queue_t, msg_queue_comparator >
keys
elements
std::shared_ptr< T >
ptr
std::shared_ptr< io_signature >
ptr
std::shared_ptr< logger >
std::shared_ptr< pmt_base >
std::string
std::vector< rpcbasic_sptr >
elements
p
- gr::hier_block2
  _post
- gr::hier_block2
  alias
- gr::hier_block2
  alias_pmt
- gr::hier_block2
  alias_set
- gr::hier_block2
  all_max_output_buffer_p
- gr::hier_block2
  all_min_output_buffer_p
- gr::hier_block2
  basic_block
- gr::hier_block2
  basic_block
- gr::hier_block2
  BLACK
- gr::hier_block2
  check_topology
- gr::hier_block2
  color
- gr::hier_block2
  connect
- gr::hier_block2
  connect
- gr::hier_block2
  d_color
- gr::hier_block2
  d_debug_logger
- gr::hier_block2
  d_detail
- gr::hier_block2
  d_input_signature
- gr::hier_block2
  d_logger
- gr::hier_block2
  d_message_subscribers
- gr::hier_block2
  d_name
- gr::hier_block2
  d_output_signature
- gr::hier_block2
  d_rpc_set
- gr::hier_block2
  d_rpc_vars
- gr::hier_block2
  d_symbol_alias
- gr::hier_block2
  d_symbol_name
- gr::hier_block2
  d_symbolic_id
- gr::hier_block2
  d_unique_id
- gr::hier_block2
  delete_head_nowait
- gr::hier_block2
  disconnect
- gr::hier_block2
  disconnect
- gr::hier_block2
  disconnect_all
- gr::hier_block2
  dispatch_msg
- gr::hier_block2
  empty_handled_p
- gr::hier_block2
  empty_handled_p
- gr::hier_block2
  empty_p
- gr::hier_block2
  empty_p
- gr::hier_block2
  erase_msg
- gr::hier_block2
  flatten
- gr::hier_block2
  get_iterator
- gr::hier_block2
  get_msg_map
- gr::hier_block2
  GREY
- gr::hier_block2
  has_msg_handler
- gr::hier_block2
  has_msg_port
- gr::hier_block2
  hier_block2
- gr::hier_block2
  hier_block2
- gr::hier_block2
  hier_block2_detail
- gr::hier_block2
  hier_message_ports_in
- gr::hier_block2
  hier_message_ports_out
- gr::hier_block2
  identifier
- gr::hier_block2
  input_signature
- gr::hier_block2
  insert_tail
- gr::hier_block2
  is_rpc_set
- gr::hier_block2
  lock
- gr::hier_block2
  log_level
- gr::hier_block2
  max_output_buffer
- gr::hier_block2
  message_port_is_hier
- gr::hier_block2
  message_port_is_hier_in
- gr::hier_block2
  message_port_is_hier_out
- gr::hier_block2
  message_port_pub
- gr::hier_block2
  message_port_register_hier_in
- gr::hier_block2
  message_port_register_hier_out
- gr::hier_block2
  message_port_register_in
- gr::hier_block2
  message_port_register_out
- gr::hier_block2
  message_port_sub
- gr::hier_block2
  message_port_unsub
- gr::hier_block2
  message_ports_in
- gr::hier_block2
  message_ports_out
- gr::hier_block2
  message_subscribers
- gr::hier_block2
  min_output_buffer
- gr::hier_block2
  msg_accepter
- gr::hier_block2
  msg_connect
- gr::hier_block2
  msg_connect
- gr::hier_block2
  msg_disconnect
- gr::hier_block2
  msg_disconnect
- gr::hier_block2
  msg_queue
- gr::hier_block2
  name
- gr::hier_block2
  nmsgs
- gr::hier_block2
  opaque_self
- gr::hier_block2
  output_signature
- gr::hier_block2
  post
- gr::hier_block2
  processor_affinity
- gr::hier_block2
  rpc_set
- gr::hier_block2
  self
- gr::hier_block2
  set_block_alias
- gr::hier_block2
  set_color
- gr::hier_block2
  set_input_signature
- gr::hier_block2
  set_log_level
- gr::hier_block2
  set_max_output_buffer
- gr::hier_block2
  set_max_output_buffer
- gr::hier_block2
  set_min_output_buffer
- gr::hier_block2
  set_min_output_buffer
- gr::hier_block2
  set_msg_handler
- gr::hier_block2
  set_output_signature
- gr::hier_block2
  set_processor_affinity
- gr::hier_block2
  setup_rpc
- gr::hier_block2
  shared_from_base
- gr::hier_block2
  symbol_name
- gr::hier_block2
  symbolic_id
- gr::hier_block2
  to_basic_block
- gr::hier_block2
  to_hier_block2
- gr::hier_block2
  unique_id
- gr::hier_block2
  unlock
- gr::hier_block2
  unset_processor_affinity
- gr::hier_block2
  vcolor
- gr::hier_block2
  WHITE
- gr::hier_block2
  ~basic_block
- gr::hier_block2
  ~hier_block2
- gr::hier_block2
  ~msg_accepter