11#ifndef INCLUDED_GR_RUNTIME_BUFFER_DOUBLE_MAPPED_H
12#define INCLUDED_GR_RUNTIME_BUFFER_DOUBLE_MAPPED_H
35 uint64_t downstream_lcm_nitems,
36 uint32_t downstream_max_out_mult,
37 block_sptr
link = block_sptr(),
38 block_sptr buf_owner = block_sptr());
56 void post_work([[maybe_unused]]
int nitems)
override {}
92 uint64_t downstream_lcm_nitems,
94 block_sptr buf_owner);
98 uint64_t downstream_lcm_nitems,
99 uint32_t downstream_max_out_mult,
101 block_sptr buf_owner);
103 std::unique_ptr<gr::vmcircbuf> d_vmcircbuf;
125 uint64_t downstream_lcm_nitems,
126 uint32_t downstream_max_out_mult,
145 uint64_t downstream_lcm_nitems,
146 uint32_t downstream_max_out_mult,
unsigned index_sub(unsigned a, unsigned b) override
Decrement read or write index for this buffer.
Definition buffer_double_mapped.h:76
unsigned index_add(unsigned a, unsigned b) override
Increment read or write index for this buffer.
Definition buffer_double_mapped.h:65
friend GR_RUNTIME_API buffer_sptr make_buffer(int nitems, size_t sizeof_item, uint64_t downstream_lcm_nitems, block_sptr link, block_sptr buf_owner)
friend GR_RUNTIME_API buffer_sptr make_buffer_double_mapped(int nitems, size_t sizeof_item, uint64_t downstream_lcm_nitems, uint32_t downstream_max_out_mult, block_sptr link, block_sptr buf_owner)
~buffer_double_mapped() override
bool allocate_buffer(int nitems) override
buffer_double_mapped(int nitems, size_t sizeof_item, uint64_t downstream_lcm_nitems, uint32_t downstream_max_out_mult, block_sptr link)
constructor is protected. Use gr_make_buffer to create instances.
buffer_double_mapped(int nitems, size_t sizeof_item, uint64_t downstream_lcm_nitems, uint32_t downstream_max_out_mult, block_sptr link, defer_alloc_t)
Protected constructor that defers buffer allocation.
friend class buffer_reader
Definition buffer_double_mapped.h:88
buffer_type get_buffer_type() const override
return the buffer's buffer_type
Definition buffer_double_mapped.h:45
static 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())
defer_alloc_t
Tag type for derived-class constructors that handle their own buffer allocation (skipping the default...
Definition buffer_double_mapped.h:133
static buffer_type type
Definition buffer_double_mapped.h:31
int space_available() override
return number of items worth of space available for writing
void post_work(int nitems) override
Definition buffer_double_mapped.h:56
unsigned int d_bufsize
Definition buffer.h:311
block_sptr link()
Return the block that writes to this buffer.
Definition buffer.h:126
buffer(buffer_mapping_type buftype, int nitems, size_t sizeof_item, uint64_t downstream_lcm_nitems, uint32_t downstream_max_out_mult, block_sptr link)
constructor is private. Use gr_make_buffer to create instances.
#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