Loading [MathJax]/extensions/tex2jax.js
USRP Hardware Driver and USRP Manual  Version: 4.8.0.0
UHD and USRP Manual
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
buffer_pool.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2011,2014 Ettus Research LLC
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #pragma once
9 
10 #include <uhd/config.hpp>
12 #include <cstddef>
13 #include <memory>
14 
15 namespace uhd { namespace transport {
16 
22 {
23 public:
24  typedef std::shared_ptr<buffer_pool> sptr;
25  typedef void* ptr_type;
26 
27  virtual ~buffer_pool(void) = 0;
28 
36  static sptr make(
37  const size_t num_buffs, const size_t buff_size, const size_t alignment = 16);
38 
40  virtual ptr_type at(const size_t index) const = 0;
41 
43  virtual size_t size(void) const = 0;
44 };
45 
46 }} // namespace uhd::transport
uhd::transport::buffer_pool::sptr
std::shared_ptr< buffer_pool > sptr
Definition: buffer_pool.hpp:24
config.hpp
UHD_API
#define UHD_API
Definition: config.h:87
noncopyable.hpp
uhd
Definition: build_info.hpp:12
uhd::transport::buffer_pool::ptr_type
void * ptr_type
Definition: buffer_pool.hpp:25
uhd::noncopyable
boost::noncopyable noncopyable
Definition: noncopyable.hpp:45
uhd::transport::buffer_pool
Definition: buffer_pool.hpp:21