#include <uhd/rfnoc/property.hpp>
Public Types | |
| using | value_type = data_t |
| We want to be good C++ citizens. | |
Public Types inherited from uhd::rfnoc::property_base_t | |
| enum | access_t { NONE , RO = 0x1 , RW = 0x3 , RWLOCKED = 0x5 } |
Public Member Functions | |
| property_t (const std::string &id, data_t &&value, const res_source_info &source_info) | |
| property_t (const std::string &id, const data_t &value, const res_source_info &source_info) | |
| property_t (const std::string &id, const res_source_info &source_info) | |
| property_t (const property_t< data_t > &prop)=default | |
| bool | is_dirty () const override |
| Returns the dirty state of this property. | |
| bool | is_valid () const override |
| Query this property's valid flag. | |
| bool | equal (property_base_t *rhs) const override |
| Return true if rhs has the same type and value. | |
| std::unique_ptr< property_base_t > | clone (res_source_info new_src_info) override |
| Create a copy of this property. | |
| void | set_from_str (const std::string &new_val_str) override |
| void | set (const data_t &value) |
| Returns the source info for the property. | |
| void | force_dirty () override |
| const data_t & | get () const |
| Get the value of this property. | |
| operator const data_t & () const | |
| bool | operator== (const data_t &rhs) |
| property_t< data_t > & | operator= (const data_t &value) |
Public Member Functions inherited from uhd::rfnoc::property_base_t | |
| property_base_t (const std::string &id, const res_source_info &source_info) | |
| virtual | ~property_base_t () |
| const std::string & | get_id () const |
| Gets the ID (name) of this property. | |
| const res_source_info & | get_src_info () const |
| Return the source info for this property. | |
| bool | read_access_granted () const |
| Returns true if this property can be read. | |
| bool | write_access_granted () const |
| Returns true if this property can be written to. | |
| access_t | get_access_mode () const |
| Return the current access mode. | |
An encapsulation class for a block property.
| using uhd::rfnoc::property_t< data_t >::value_type = data_t |
We want to be good C++ citizens.
| uhd::rfnoc::property_t< data_t >::property_t | ( | const std::string & | id, |
| data_t && | value, | ||
| const res_source_info & | source_info ) |
| uhd::rfnoc::property_t< data_t >::property_t | ( | const std::string & | id, |
| const data_t & | value, | ||
| const res_source_info & | source_info ) |
| uhd::rfnoc::property_t< data_t >::property_t | ( | const std::string & | id, |
| const res_source_info & | source_info ) |
|
default |
|
inlineoverridevirtual |
Create a copy of this property.
Reimplemented from uhd::rfnoc::property_base_t.
|
inlineoverridevirtual |
Return true if rhs has the same type and value.
Implements uhd::rfnoc::property_base_t.
|
inlineoverridevirtual |
Implements uhd::rfnoc::property_base_t.
|
inline |
Get the value of this property.
|
inlineoverridevirtual |
Returns the dirty state of this property.
Implements uhd::rfnoc::property_base_t.
|
inlineoverridevirtual |
Query this property's valid flag.
Implements uhd::rfnoc::property_base_t.
|
inline |
|
inline |
|
inline |
|
inline |
Returns the source info for the property.
Set the value of this property
|
inlineoverridevirtual |
Set this property's value using a string
This requires the underlying property type to be convertible from a string.
| uhd::runtime_error | if the underlying type has no conversion from a string |
Implements uhd::rfnoc::property_base_t.