USRP Hardware Driver and USRP Manual  Version: 3.13.0.HEAD-0-gf114cfa0
UHD and USRP Manual
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; boost::shared_ptr<_name>
34 
42 #define UHD_PIMPL_MAKE(_name, _args) \
43  boost::shared_ptr<_name>(new _name _args)
44 
45 #endif /* INCLUDED_UHD_UTILS_PIMPL_HPP */