gr::blocks::selector
gr::block
gnuradio/blocks/selector.h
std::shared_ptr< selector > std::shared_ptr<selector> gr::blocks::selector::sptr sptr gr::blocks::selector::sptr
sptr static sptr gr::blocks::selector::make (size_t itemsize, unsigned int input_index, unsigned int output_index) make gr::blocks::selector::make size_t itemsize unsigned int input_index unsigned int output_index

Create new selector block and return a shared pointer to it

itemsize

size of the input and output items

input_index

the initially active input index

output_index

the initially active output index

void virtual void gr::blocks::selector::set_enabled (bool enable)=0 set_enabled gr::blocks::selector::set_enabled bool enable

When enabled is set to false, no output samples are produced. Otherwise samples are copied to the selected output port

bool virtual bool gr::blocks::selector::enabled () const =0 enabled gr::blocks::selector::enabled
void virtual void gr::blocks::selector::set_input_index (unsigned int input_index)=0 set_input_index gr::blocks::selector::set_input_index unsigned int input_index
int virtual int gr::blocks::selector::input_index () const =0 input_index gr::blocks::selector::input_index
void virtual void gr::blocks::selector::set_output_index (unsigned int output_index)=0 set_output_index gr::blocks::selector::set_output_index unsigned int output_index
int virtual int gr::blocks::selector::output_index () const =0 output_index gr::blocks::selector::output_index

output[output_index][i] = input[input_index][i]

Connect the sink at input index to the source at output index.

Samples from other input ports are consumed and dumped at a rate which is limited by (but not necessarily the same as) the rate of samples copied from the active input to the active output.

Other output ports produce no samples.

gr::basic_block
gr::block
gr::blocks::selector
gr::messages::msg_accepter
gr::msg_accepter
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::block
d_max_output_buffer
d_min_output_buffer
d_pmt_done
d_system_port
gr::blocks::selector
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< long >
std::vector< rpcbasic_sptr >
elements
p
- gr::blocks::selector
  _post
- gr::blocks::selector
  active_thread_priority
- gr::blocks::selector
  add_item_tag
- gr::blocks::selector
  add_item_tag
- gr::blocks::selector
  alias
- gr::blocks::selector
  alias_pmt
- gr::blocks::selector
  alias_set
- gr::blocks::selector
  alignment
- gr::blocks::selector
  allocate_buffer
- gr::blocks::selector
  allocate_detail
- gr::blocks::selector
  basic_block
- gr::blocks::selector
  basic_block
- gr::blocks::selector
  BLACK
- gr::blocks::selector
  blkd_input_timer_value
- gr::blocks::selector
  block
- gr::blocks::selector
  block
- gr::blocks::selector
  check_topology
- gr::blocks::selector
  clear_finished
- gr::blocks::selector
  color
- gr::blocks::selector
  consume
- gr::blocks::selector
  consume_each
- gr::blocks::selector
  d_blkd_input_timer_value
- gr::blocks::selector
  d_color
- gr::blocks::selector
  d_debug_logger
- gr::blocks::selector
  d_input_signature
- gr::blocks::selector
  d_logger
- gr::blocks::selector
  d_max_output_buffer
- gr::blocks::selector
  d_message_subscribers
- gr::blocks::selector
  d_min_output_buffer
- gr::blocks::selector
  d_name
- gr::blocks::selector
  d_output_signature
- gr::blocks::selector
  d_pmt_done
- gr::blocks::selector
  d_rpc_set
- gr::blocks::selector
  d_rpc_vars
- gr::blocks::selector
  d_setlock
- gr::blocks::selector
  d_symbol_alias
- gr::blocks::selector
  d_symbol_name
- gr::blocks::selector
  d_symbolic_id
- gr::blocks::selector
  d_system_port
- gr::blocks::selector
  d_unique_id
- gr::blocks::selector
  declare_sample_delay
- gr::blocks::selector
  declare_sample_delay
- gr::blocks::selector
  delete_head_nowait
- gr::blocks::selector
  detail
- gr::blocks::selector
  dispatch_msg
- gr::blocks::selector
  empty_handled_p
- gr::blocks::selector
  empty_handled_p
- gr::blocks::selector
  empty_p
- gr::blocks::selector
  empty_p
- gr::blocks::selector
  enable_update_rate
- gr::blocks::selector
  enabled
- gr::blocks::selector
  erase_msg
- gr::blocks::selector
  expand_minmax_buffer
- gr::blocks::selector
  finished
- gr::blocks::selector
  fixed_rate
- gr::blocks::selector
  fixed_rate_ninput_to_noutput
- gr::blocks::selector
  fixed_rate_noutput_to_ninput
- gr::blocks::selector
  forecast
- gr::blocks::selector
  general_work
- gr::blocks::selector
  get_iterator
- gr::blocks::selector
  get_msg_map
- gr::blocks::selector
  get_tags_in_range
- gr::blocks::selector
  get_tags_in_range
- gr::blocks::selector
  get_tags_in_window
- gr::blocks::selector
  get_tags_in_window
- gr::blocks::selector
  GREY
- gr::blocks::selector
  has_msg_handler
- gr::blocks::selector
  has_msg_port
- gr::blocks::selector
  history
- gr::blocks::selector
  identifier
- gr::blocks::selector
  input_index
- gr::blocks::selector
  input_signature
- gr::blocks::selector
  insert_tail
- gr::blocks::selector
  is_pc_rpc_set
- gr::blocks::selector
  is_rpc_set
- gr::blocks::selector
  is_set_max_noutput_items
- gr::blocks::selector
  is_unaligned
- gr::blocks::selector
  log_level
- gr::blocks::selector
  make
- gr::blocks::selector
  max_noutput_items
- gr::blocks::selector
  max_output_buffer
- gr::blocks::selector
  message_port_is_hier
- gr::blocks::selector
  message_port_is_hier_in
- gr::blocks::selector
  message_port_is_hier_out
- gr::blocks::selector
  message_port_pub
- gr::blocks::selector
  message_port_register_in
- gr::blocks::selector
  message_port_register_out
- gr::blocks::selector
  message_port_sub
- gr::blocks::selector
  message_port_unsub
- gr::blocks::selector
  message_ports_in
- gr::blocks::selector
  message_ports_out
- gr::blocks::selector
  message_subscribers
- gr::blocks::selector
  min_noutput_items
- gr::blocks::selector
  min_output_buffer
- gr::blocks::selector
  mp_relative_rate
- gr::blocks::selector
  msg_accepter
- gr::blocks::selector
  msg_queue
- gr::blocks::selector
  name
- gr::blocks::selector
  nitems_read
- gr::blocks::selector
  nitems_written
- gr::blocks::selector
  nmsgs
- gr::blocks::selector
  no_pc_rpc
- gr::blocks::selector
  notify_msg_neighbors
- gr::blocks::selector
  output_index
- gr::blocks::selector
  output_multiple
- gr::blocks::selector
  output_multiple_set
- gr::blocks::selector
  output_signature
- gr::blocks::selector
  pc_input_buffers_full
- gr::blocks::selector
  pc_input_buffers_full
- gr::blocks::selector
  pc_input_buffers_full_avg
- gr::blocks::selector
  pc_input_buffers_full_avg
- gr::blocks::selector
  pc_input_buffers_full_var
- gr::blocks::selector
  pc_input_buffers_full_var
- gr::blocks::selector
  pc_noutput_items
- gr::blocks::selector
  pc_noutput_items_avg
- gr::blocks::selector
  pc_noutput_items_var
- gr::blocks::selector
  pc_nproduced
- gr::blocks::selector
  pc_nproduced_avg
- gr::blocks::selector
  pc_nproduced_var
- gr::blocks::selector
  pc_output_buffers_full
- gr::blocks::selector
  pc_output_buffers_full
- gr::blocks::selector
  pc_output_buffers_full_avg
- gr::blocks::selector
  pc_output_buffers_full_avg
- gr::blocks::selector
  pc_output_buffers_full_var
- gr::blocks::selector
  pc_output_buffers_full_var
- gr::blocks::selector
  pc_throughput_avg
- gr::blocks::selector
  pc_work_time
- gr::blocks::selector
  pc_work_time_avg
- gr::blocks::selector
  pc_work_time_total
- gr::blocks::selector
  pc_work_time_var
- gr::blocks::selector
  post
- gr::blocks::selector
  processor_affinity
- gr::blocks::selector
  produce
- gr::blocks::selector
  relative_rate
- gr::blocks::selector
  relative_rate_d
- gr::blocks::selector
  relative_rate_i
- gr::blocks::selector
  remove_item_tag
- gr::blocks::selector
  remove_item_tag
- gr::blocks::selector
  replace_buffer
- gr::blocks::selector
  reset_perf_counters
- gr::blocks::selector
  rpc_set
- gr::blocks::selector
  sample_delay
- gr::blocks::selector
  set_alignment
- gr::blocks::selector
  set_blkd_input_timer_value
- gr::blocks::selector
  set_block_alias
- gr::blocks::selector
  set_color
- gr::blocks::selector
  set_detail
- gr::blocks::selector
  set_enabled
- gr::blocks::selector
  set_fixed_rate
- gr::blocks::selector
  set_history
- gr::blocks::selector
  set_input_index
- gr::blocks::selector
  set_input_signature
- gr::blocks::selector
  set_inverse_relative_rate
- gr::blocks::selector
  set_is_unaligned
- gr::blocks::selector
  set_log_level
- gr::blocks::selector
  set_max_noutput_items
- gr::blocks::selector
  set_max_output_buffer
- gr::blocks::selector
  set_max_output_buffer
- gr::blocks::selector
  set_min_noutput_items
- gr::blocks::selector
  set_min_output_buffer
- gr::blocks::selector
  set_min_output_buffer
- gr::blocks::selector
  set_msg_handler
- gr::blocks::selector
  set_output_index
- gr::blocks::selector
  set_output_multiple
- gr::blocks::selector
  set_output_signature
- gr::blocks::selector
  set_processor_affinity
- gr::blocks::selector
  set_relative_rate
- gr::blocks::selector
  set_relative_rate
- gr::blocks::selector
  set_tag_propagation_policy
- gr::blocks::selector
  set_thread_priority
- gr::blocks::selector
  set_unaligned
- gr::blocks::selector
  setup_pc_rpc
- gr::blocks::selector
  setup_rpc
- gr::blocks::selector
  shared_from_base
- gr::blocks::selector
  sptr
- gr::blocks::selector
  start
- gr::blocks::selector
  stop
- gr::blocks::selector
  symbol_name
- gr::blocks::selector
  symbolic_id
- gr::blocks::selector
  system_handler
- gr::blocks::selector
  tag_propagation_policy
- gr::blocks::selector
  tag_propagation_policy_t
- gr::blocks::selector
  thread_priority
- gr::blocks::selector
  to_basic_block
- gr::blocks::selector
  TPP_ALL_TO_ALL
- gr::blocks::selector
  TPP_CUSTOM
- gr::blocks::selector
  TPP_DONT
- gr::blocks::selector
  TPP_ONE_TO_ONE
- gr::blocks::selector
  unaligned
- gr::blocks::selector
  unique_id
- gr::blocks::selector
  unset_max_noutput_items
- gr::blocks::selector
  unset_processor_affinity
- gr::blocks::selector
  update_rate
- gr::blocks::selector
  vcolor
- gr::blocks::selector
  WHITE
- gr::blocks::selector
  WORK_CALLED_PRODUCE
- gr::blocks::selector
  WORK_DONE
- gr::blocks::selector
  work_return_t
- gr::blocks::selector
  ~basic_block
- gr::blocks::selector
  ~block
- gr::blocks::selector
  ~msg_accepter