13 namespace uhd {
namespace rfnoc {
51 return !(*
this == rhs);
57 const std::string type_repr = type ==
USER ?
"USER" 61 return type_repr +
":" + std::to_string(instance);
83 struct hash<
uhd::rfnoc::res_source_info>
87 const size_t hash_type = std::hash<size_t>{}(src_info.
type);
88 const size_t hash_inst = std::hash<size_t>{}(src_info.
instance);
89 return hash_type ^ (hash_inst << 1);
static source_t invert_edge(const source_t edge_direction)
Definition: res_source_info.hpp:72
std::string to_string() const
Returns a string representation of the source.
Definition: res_source_info.hpp:55
#define UHD_ASSERT_THROW(code)
Definition: exception.hpp:321
size_t operator()(const uhd::rfnoc::res_source_info &src_info) const
Definition: res_source_info.hpp:85
res_source_info(source_t source_type, size_t instance_=0)
Definition: res_source_info.hpp:31
Definition: build_info.hpp:12
source_t
Definition: res_source_info.hpp:21
source_t type
The type of source (user or edge)
Definition: res_source_info.hpp:38
The user API sources this resource.
Definition: res_source_info.hpp:22
Definition: res_source_info.hpp:17
bool operator==(const res_source_info &rhs) const
Definition: res_source_info.hpp:44
bool operator!=(const res_source_info &rhs) const
Definition: res_source_info.hpp:49
This is a special resource, only accessed by the framework.
Definition: res_source_info.hpp:25
size_t instance
The instance of the source. For resource that is sourced by a edge, it.
Definition: res_source_info.hpp:42
An input edge sources this resource.
Definition: res_source_info.hpp:23
An input edge sources this resource.
Definition: res_source_info.hpp:24