USRP Hardware Driver and USRP Manual
Version: 3.15.0.0-2+b1
UHD and USRP Manual
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
#ifndef INCLUDED_UHD_TRANSPORT_BUFFER_POOL_HPP
9
#define INCLUDED_UHD_TRANSPORT_BUFFER_POOL_HPP
10
11
#include <
uhd/config.hpp
>
12
#include <
uhd/utils/noncopyable.hpp
>
13
#include <boost/shared_ptr.hpp>
14
15
namespace
uhd
{
namespace
transport {
16
21
class
UHD_API
buffer_pool
:
uhd::noncopyable
22
{
23
public
:
24
typedef
boost::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
47
48
49
#endif
/* INCLUDED_UHD_TRANSPORT_BUFFER_POOL_HPP */
config.hpp
UHD_API
#define UHD_API
Definition:
config.h:68
noncopyable.hpp
uhd
Definition:
build_info.hpp:13
uhd::transport::buffer_pool::ptr_type
void * ptr_type
Definition:
buffer_pool.hpp:25
uhd::transport::buffer_pool::sptr
boost::shared_ptr< buffer_pool > sptr
Definition:
buffer_pool.hpp:24
uhd::noncopyable
boost::noncopyable noncopyable
Definition:
noncopyable.hpp:46
uhd::transport::buffer_pool
Definition:
buffer_pool.hpp:21
include
uhd
transport
buffer_pool.hpp
Generated by
1.8.16