GNU Radio 3.6.5 C++ API

gr::blocks::message_debug_impl Class Reference

#include <message_debug_impl.h>

Inheritance diagram for gr::blocks::message_debug_impl:
gr::blocks::message_debug gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Member Functions

 message_debug_impl ()
 ~message_debug_impl ()
int num_messages ()
 Reports the number of messages received by this block.
pmt::pmt_t get_message (int i)
 Get a message (as a PMT) from the message vector at index i.

Constructor & Destructor Documentation

gr::blocks::message_debug_impl::message_debug_impl ( )
gr::blocks::message_debug_impl::~message_debug_impl ( )

Member Function Documentation

pmt::pmt_t gr::blocks::message_debug_impl::get_message ( int  i) [virtual]

Get a message (as a PMT) from the message vector at index i.

Messages passed to the 'store' port will be stored in a vector. This function retrieves those messages by index. They are index in order of when they were received (all messages are just pushed onto the back of a vector). This is mostly useful in debugging message passing graphs and in QA code.

Parameters:
iThe index in the vector for the message to retrieve.
Returns:
a message at index i as a pmt_t.

Implements gr::blocks::message_debug.

int gr::blocks::message_debug_impl::num_messages ( ) [virtual]

Reports the number of messages received by this block.

Implements gr::blocks::message_debug.


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