USRP Hardware Driver and USRP Manual  Version: 4.4.0.HEAD-0-g5fac246b
UHD and USRP Manual
expert_container.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2016 Ettus Research
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #pragma once
9 
10 #include <uhd/config.hpp>
13 #include <memory>
14 #include <mutex>
15 
16 namespace uhd { namespace experts {
17 
23 };
24 
26 {
27 public: // Methods
28  typedef std::shared_ptr<expert_container> sptr;
29 
30  ~expert_container() override{};
31 
35  virtual const std::string& get_name() const = 0;
36 
51  virtual void resolve_all(bool force = false) = 0;
52 
69  virtual void resolve_from(const std::string& node_name) = 0;
70 
87  virtual void resolve_to(const std::string& node_name) = 0;
88 
92  virtual const node_retriever_t& node_retriever() const = 0;
93 
101  virtual std::string to_dot() const = 0;
102 
110  virtual void debug_audit() const = 0;
111 
112 private:
124  const dag_vertex_t& lookup(const std::string& name) const override = 0;
125  dag_vertex_t& retrieve(const std::string& name) const override = 0;
126 
138  friend class expert_factory;
139 
146  static sptr make(const std::string& name);
147 
156  virtual std::recursive_mutex& resolve_mutex() = 0;
157 
168  virtual void add_data_node(
169  dag_vertex_t* data_node, auto_resolve_mode_t resolve_mode = AUTO_RESOLVE_OFF) = 0;
170 
180  virtual void add_worker(worker_node_t* worker) = 0;
181 
190  virtual void clear() = 0;
191 };
192 
193 }} // namespace uhd::experts
uhd::experts::expert_factory
Definition: expert_factory.hpp:31
expert_nodes.hpp
config.hpp
uhd::experts::expert_container::sptr
std::shared_ptr< expert_container > sptr
Definition: expert_container.hpp:28
uhd::experts::worker_node_t
Definition: expert_nodes.hpp:467
uhd::experts::AUTO_RESOLVE_OFF
@ AUTO_RESOLVE_OFF
Definition: expert_container.hpp:19
UHD_API
#define UHD_API
Definition: config.h:87
noncopyable.hpp
uhd::experts::AUTO_RESOLVE_ON_READ
@ AUTO_RESOLVE_ON_READ
Definition: expert_container.hpp:20
uhd::experts::expert_container::~expert_container
~expert_container() override
Definition: expert_container.hpp:30
uhd
Definition: build_info.hpp:12
uhd::experts::node_retriever_t
Definition: expert_nodes.hpp:271
uhd::experts::auto_resolve_mode_t
auto_resolve_mode_t
Definition: expert_container.hpp:18
uhd::experts::AUTO_RESOLVE_ON_WRITE
@ AUTO_RESOLVE_ON_WRITE
Definition: expert_container.hpp:21
uhd::experts::dag_vertex_t
Definition: expert_nodes.hpp:38
uhd::noncopyable
boost::noncopyable noncopyable
Definition: noncopyable.hpp:45
uhd::experts::expert_container
Definition: expert_container.hpp:25
uhd::experts::AUTO_RESOLVE_ON_READ_WRITE
@ AUTO_RESOLVE_ON_READ_WRITE
Definition: expert_container.hpp:22