All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
buffer_pool.hpp
Go to the documentation of this file.
//
// Copyright 2011-2011 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
#ifndef INCLUDED_UHD_TRANSPORT_BUFFER_POOL_HPP
#define INCLUDED_UHD_TRANSPORT_BUFFER_POOL_HPP
#include <uhd/config.hpp>
#include <boost/utility.hpp>
#include <boost/shared_ptr.hpp>
namespace uhd{ namespace transport{
class UHD_API buffer_pool : boost::noncopyable{
public:
typedef boost::shared_ptr<buffer_pool> sptr;
typedef void * ptr_type;
static sptr make(
const size_t num_buffs,
const size_t buff_size,
const size_t alignment = 16
);
virtual ptr_type at(const size_t index) const = 0;
virtual size_t size(void) const = 0;
};
}} //namespace
#endif /* INCLUDED_UHD_TRANSPORT_BUFFER_POOL_HPP */