i/o signature for input and output ports. More...
#include <gnuradio/io_signature.h>
Public Types | |
typedef std::shared_ptr< io_signature > | sptr |
using | default_buftype = buffer_double_mapped |
Public Member Functions | |
~io_signature () | |
int | min_streams () const |
int | max_streams () const |
int | sizeof_stream_item (int index) const |
std::vector< int > | sizeof_stream_items () const |
buffer_type | stream_buffer_type (size_t index) const |
gr_vector_buffer_type | stream_buffer_types () const |
Static Public Member Functions | |
static sptr | make (int min_streams, int max_streams, int sizeof_stream_item, buffer_type buftype=default_buftype::type) |
Create an i/o signature. More... | |
static sptr | make (int min_streams, int max_streams, const std::vector< size_t > &sizeof_stream_items, const gr::gr_vector_buffer_type &buftypes=gr::gr_vector_buffer_type(1, default_buftype::type)) |
Create an i/o signature. More... | |
static sptr | make2 (int min_streams, int max_streams, int sizeof_stream_item1, int sizeof_stream_item2, buffer_type buftype1=default_buftype::type, buffer_type buftype2=default_buftype::type) |
Create an i/o signature. More... | |
static sptr | make3 (int min_streams, int max_streams, int sizeof_stream_item1, int sizeof_stream_item2, int sizeof_stream_item3, buffer_type buftype1=default_buftype::type, buffer_type buftype2=default_buftype::type, buffer_type buftype3=default_buftype::type) |
Create an i/o signature. More... | |
static sptr | makev (int min_streams, int max_streams, const std::vector< int > &sizeof_stream_items) |
Create an i/o signature. More... | |
static sptr | makev (int min_streams, int max_streams, const std::vector< int > &sizeof_stream_items, const gr_vector_buffer_type &buftypes) |
Create an i/o signature. More... | |
Static Public Attributes | |
static constexpr int | IO_INFINITE = -1 |
Friends | |
bool | operator== (const io_signature &lhs, const io_signature &rhs) |
i/o signature for input and output ports.
misc
typedef std::shared_ptr<io_signature> gr::io_signature::sptr |
gr::io_signature::~io_signature | ( | ) |
|
static |
Create an i/o signature.
min_streams | specify minimum number of streams (>= 0) |
max_streams | specify maximum number of streams (>= min_streams or -1 -> infinite) |
sizeof_stream_item1 | specify the size of the items in the first stream |
sizeof_stream_item2 | specify the size of the items in the second and subsequent streams |
buftype1 | type of buffers the first stream should use (defaults to standard host double mapped buffer) |
buftype2 | type of buffers the second and subsequent streams should use (defaults to standard host double mapped buffer) |
|
static |
Create an i/o signature.
min_streams | specify minimum number of streams (>= 0) |
max_streams | specify maximum number of streams (>= min_streams or -1 -> infinite) |
sizeof_stream_item1 | specify the size of the items in the first stream |
sizeof_stream_item2 | specify the size of the items in the second stream |
sizeof_stream_item3 | specify the size of the items in the third and subsequent streams |
buftype1 | type of buffers the first stream should use (defaults to standard host double mapped buffer) |
buftype2 | type of buffers the second stream should use (defaults to standard host double mapped buffer) |
buftype3 | type of buffers the third and subsequent streams should use (defaults to standard host double mapped buffer) |
|
static |
Create an i/o signature.
min_streams | specify minimum number of streams (>= 0) |
max_streams | specify maximum number of streams (>= min_streams or -1 -> infinite) |
sizeof_stream_items | specify the size of the items in the streams |
If there are more streams than there are entries in sizeof_stream_items, the value of the last entry in sizeof_stream_items is used for the missing values. sizeof_stream_items must contain at least 1 entry.
|
static |
Create an i/o signature.
min_streams | specify minimum number of streams (>= 0) |
max_streams | specify maximum number of streams (>= min_streams or -1 -> infinite) |
sizeof_stream_items | specify the size of the items in the streams |
buftypes | the type of buffer each stream will should use |
If there are more streams than there are entries in sizeof_stream_items, the value of the last entry in sizeof_stream_items is used for the missing values. sizeof_stream_items must contain at least 1 entry.
|
inline |
|
inline |
int gr::io_signature::sizeof_stream_item | ( | int | index | ) | const |
std::vector<int> gr::io_signature::sizeof_stream_items | ( | ) | const |
buffer_type gr::io_signature::stream_buffer_type | ( | size_t | index | ) | const |
gr_vector_buffer_type gr::io_signature::stream_buffer_types | ( | ) | const |
|
friend |
|
staticconstexpr |