11#ifndef INCLUDED_GR_RUNTIME_CUSTOM_BUFFER_TYPE_H
12#define INCLUDED_GR_RUNTIME_CUSTOM_BUFFER_TYPE_H
46 return d_name == other.
d_name;
51 return d_name != other.
d_name;
62 const std::string&
name()
const {
return d_name; }
69 [[maybe_unused]]
size_t sizeof_item,
70 [[maybe_unused]] uint64_t downstream_lcm_nitems,
71 [[maybe_unused]] uint32_t downstream_max_out_mult,
72 [[maybe_unused]] block_sptr link = block_sptr(),
73 [[maybe_unused]] block_sptr buf_owner = block_sptr())
const
95template <
typename classname,
typename factory_
class>
101 uint64_t downstream_lcm_nitems,
102 uint32_t downstream_max_out_mult,
103 block_sptr link = block_sptr(),
104 block_sptr buf_owner = block_sptr())
const override
108 downstream_lcm_nitems,
109 downstream_max_out_mult,
Base class for describing a buffer's type.
Definition: buffer_type.h:30
virtual 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
Make and return a buffer subclass of the corresponding type.
Definition: buffer_type.h:68
const std::string d_name
Definition: buffer_type.h:82
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:49
buffer_type_base(const std::string name)
Definition: buffer_type.h:84
const std::string & name() const
Get the human-readable name of the type.
Definition: buffer_type.h:62
bool operator<(const buffer_type_base &other)=delete
buffer_type_base(buffer_type_base const &other)
Definition: buffer_type.h:39
virtual ~buffer_type_base()
Definition: buffer_type.h:32
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:44
#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:87
std::vector< std::reference_wrapper< const buffer_type_base > > gr_vector_buffer_type
Definition: buffer_type.h:88
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:96
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
Make and return a buffer subclass of the corresponding type.
Definition: buffer_type.h:99
buftype()
Definition: buffer_type.h:114
factory_class factory
Definition: buffer_type.h:98