51        return !(*
this == rhs);
 
 
   57        const std::string type_repr = 
type == 
USER          ? 
"USER" 
   61        return type_repr + 
":" + std::to_string(
instance);
 
 
 
   83struct 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);
 
 
 
#define UHD_ASSERT_THROW(code)
Definition exception.hpp:322
Definition actions.hpp:24
Definition build_info.hpp:12
size_t operator()(const uhd::rfnoc::res_source_info &src_info) const
Definition res_source_info.hpp:85
Definition res_source_info.hpp:18
bool operator!=(const res_source_info &rhs) const
Definition res_source_info.hpp:49
size_t instance
The instance of the source. For resource that is sourced by a edge, it.
Definition res_source_info.hpp:42
bool operator==(const res_source_info &rhs) const
Definition res_source_info.hpp:44
source_t type
The type of source (user or edge)
Definition res_source_info.hpp:38
source_t
Definition res_source_info.hpp:21
@ INPUT_EDGE
An input edge sources this resource.
Definition res_source_info.hpp:23
@ FRAMEWORK
This is a special resource, only accessed by the framework.
Definition res_source_info.hpp:25
@ OUTPUT_EDGE
An input edge sources this resource.
Definition res_source_info.hpp:24
@ USER
The user API sources this resource.
Definition res_source_info.hpp:22
res_source_info(source_t source_type, size_t instance_=0)
Definition res_source_info.hpp:31
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