 |
USRP Hardware Driver and USRP Manual
Version: 3.15.0.0-4build1
UHD and USRP Manual
|
|
Go to the documentation of this file.
8 #ifndef INCLUDED_UHD_TRANSPORT_BUFFER_POOL_HPP
9 #define INCLUDED_UHD_TRANSPORT_BUFFER_POOL_HPP
13 #include <boost/shared_ptr.hpp>
15 namespace uhd {
namespace transport {
24 typedef boost::shared_ptr<buffer_pool>
sptr;
37 const size_t num_buffs,
const size_t buff_size,
const size_t alignment = 16);
43 virtual size_t size(
void)
const = 0;
virtual ~buffer_pool(void)=0
static sptr make(const size_t num_buffs, const size_t buff_size, const size_t alignment=16)
#define UHD_API
Definition: config.h:68
Definition: build_info.hpp:13
void * ptr_type
Definition: buffer_pool.hpp:25
virtual size_t size(void) const =0
Get the number of buffers in this pool.
boost::shared_ptr< buffer_pool > sptr
Definition: buffer_pool.hpp:24
boost::noncopyable noncopyable
Definition: noncopyable.hpp:46
virtual ptr_type at(const size_t index) const =0
Get a pointer to the buffer start at the specified index.
Definition: buffer_pool.hpp:22