11 #ifndef INCLUDED_GR_RUNTIME_CUSTOM_BUFFER_TYPE_H
12 #define INCLUDED_GR_RUNTIME_CUSTOM_BUFFER_TYPE_H
44 return d_name == other.
d_name;
49 return d_name != other.
d_name;
60 const std::string&
name()
const {
return d_name; }
67 [[maybe_unused]]
size_t sizeof_item,
68 [[maybe_unused]] uint64_t downstream_lcm_nitems,
69 [[maybe_unused]] uint32_t downstream_max_out_mult,
70 [[maybe_unused]] block_sptr link = block_sptr(),
71 [[maybe_unused]] block_sptr buf_owner = block_sptr())
const
93 template <
typename classname,
typename factory_
class>
99 uint64_t downstream_lcm_nitems,
100 uint32_t downstream_max_out_mult,
101 block_sptr link = block_sptr(),
102 block_sptr buf_owner = block_sptr())
const override
106 downstream_lcm_nitems,
107 downstream_max_out_mult,
Base class for describing a buffer's type.
Definition: buffer_type.h:28
const std::string d_name
Definition: buffer_type.h:80
const std::string & name() const
Get the human-readable name of the type.
Definition: buffer_type.h:60
bool operator>=(const buffer_type_base &other)=delete
bool operator<=(const buffer_type_base &other)=delete
bool operator!=(const buffer_type_base &other) const
Definition: buffer_type.h:47
buffer_type_base(const std::string name)
Definition: buffer_type.h:82
virtual buffer_sptr make_buffer([[maybe_unused]] int nitems, [[maybe_unused]] size_t sizeof_item, [[maybe_unused]] uint64_t downstream_lcm_nitems, [[maybe_unused]] uint32_t downstream_max_out_mult, [[maybe_unused]] block_sptr link=block_sptr(), [[maybe_unused]] block_sptr buf_owner=block_sptr()) const
Make and return a buffer subclass of the corresponding type.
Definition: buffer_type.h:66
bool operator<(const buffer_type_base &other)=delete
buffer_type_base(buffer_type_base const &other)
Definition: buffer_type.h:37
virtual ~buffer_type_base()
Definition: buffer_type.h:30
bool operator>(const buffer_type_base &other)=delete
void operator=(buffer_type_base const &)=delete
bool operator==(const buffer_type_base &other) const
Definition: buffer_type.h:42
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29
const buffer_type_base & buffer_type
Definition: buffer_type.h:85
std::vector< std::reference_wrapper< const buffer_type_base > > gr_vector_buffer_type
Definition: buffer_type.h:86
GR_RUNTIME_API buffer_sptr make_buffer(int nitems, size_t sizeof_item, uint64_t downstream_lcm_nitems, uint32_t downstream_max_out_mult, block_sptr link=block_sptr(), block_sptr buf_owner=block_sptr())
Allocate a buffer that holds at least nitems of size sizeof_item.
Template used to create buffer types. Note that the factory_class parameter must contain a static fun...
Definition: buffer_type.h:94
buffer_sptr make_buffer(int nitems, size_t sizeof_item, uint64_t downstream_lcm_nitems, uint32_t downstream_max_out_mult, block_sptr link=block_sptr(), block_sptr buf_owner=block_sptr()) const override
Definition: buffer_type.h:97
buftype()
Definition: buffer_type.h:112
factory_class factory
Definition: buffer_type.h:96