GNU Radio 3.7.1 C++ API
gr::blocks::stream_mux Class Reference

Stream muxing block to multiplex many streams into one with a specified format. More...

#include <stream_mux.h>

Inheritance diagram for gr::blocks::stream_mux:

List of all members.

Public Types

typedef boost::shared_ptr
< stream_mux
sptr

Static Public Member Functions

static sptr make (size_t itemsize, const std::vector< int > &lengths)
 Creates a stream muxing block to multiplex many streams into one with a specified format.

Detailed Description

Stream muxing block to multiplex many streams into one with a specified format.

Muxes N streams together producing an output stream that contains N0 items from the first stream, N1 items from the second, etc. and repeats:

[N0, N1, N2, ..., Nm, N0, N1, ...]


Member Typedef Documentation


Member Function Documentation

static sptr gr::blocks::stream_mux::make ( size_t  itemsize,
const std::vector< int > &  lengths 
) [static]

Creates a stream muxing block to multiplex many streams into one with a specified format.

Parameters:
itemsizethe item size of the stream
lengthsa vector (list/tuple) specifying the number of items from each stream the mux together. Warning: this requires that at least as many items per stream are available or the system will wait indefinitely for the items.

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