USRP Hardware Driver and USRP Manual  Version: 003.010.000.HEAD-0-g6e1ac3fc
UHD and USRP Manual
graph.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2016 Ettus Research LLC
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef INCLUDED_LIBUHD_RFNOC_GRAPH_HPP
19 #define INCLUDED_LIBUHD_RFNOC_GRAPH_HPP
20 
21 #include <boost/noncopyable.hpp>
22 #include <uhd/rfnoc/block_id.hpp>
23 
24 namespace uhd { namespace rfnoc {
25 
26 class graph : boost::noncopyable
27 {
28 public:
29  typedef boost::shared_ptr<uhd::rfnoc::graph> sptr;
30 
39  virtual void connect(
40  const block_id_t &src_block,
41  size_t src_block_port,
42  const block_id_t &dst_block,
43  size_t dst_block_port,
44  const size_t pkt_size = 0
45  ) = 0;
46 
51  virtual void connect(
52  const block_id_t &src_block,
53  const block_id_t &dst_block
54  ) = 0;
55 
56  virtual std::string get_name() const = 0;
57 };
58 
59 }}; /* name space uhd::rfnoc */
60 
61 #endif /* INCLUDED_LIBUHD_RFNOC_GRAPH_HPP */
62 // vim: sw=4 et:
virtual std::string get_name() const =0
boost::shared_ptr< uhd::rfnoc::graph > sptr
Definition: graph.hpp:29
Definition: block_id.hpp:49
virtual void connect(const block_id_t &src_block, size_t src_block_port, const block_id_t &dst_block, size_t dst_block_port, const size_t pkt_size=0)=0
Definition: build_info.hpp:25
Definition: graph.hpp:26