USRP Hardware Driver and USRP Manual Version: 3.15.0.0-MacPorts-Release
UHD and USRP Manual
 
Loading...
Searching...
No Matches
pimpl.hpp
Go to the documentation of this file.
1//
2// Copyright 2010 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_UTILS_PIMPL_HPP
9#define INCLUDED_UHD_UTILS_PIMPL_HPP
10
11#include <uhd/config.hpp>
12#include <boost/shared_ptr.hpp>
13
32#define UHD_PIMPL_DECL(_name) \
33 struct _name; \
34 boost::shared_ptr<_name>
35
43#define UHD_PIMPL_MAKE(_name, _args) boost::shared_ptr<_name>(new _name _args)
44
45#endif /* INCLUDED_UHD_UTILS_PIMPL_HPP */