UHD
003.005.004-0-ga219f16c
|
#include <ranges.hpp>
Public Member Functions | |
meta_range_t (void) | |
A default constructor for an empty meta-range. More... | |
template<typename InputIterator > | |
meta_range_t (InputIterator first, InputIterator last) | |
meta_range_t (double start, double stop, double step=0) | |
double | start (void) const |
Get the overall start value for this meta-range. More... | |
double | stop (void) const |
Get the overall stop value for this meta-range. More... | |
double | step (void) const |
Get the overall step value for this meta-range. More... | |
double | clip (double value, bool clip_step=false) const |
const std::string | to_pp_string (void) const |
Convert this meta-range to a printable string. More... | |
A meta-range object holds a list of individual ranges.
uhd::meta_range_t::meta_range_t | ( | void | ) |
A default constructor for an empty meta-range.
|
inline |
Input iterator constructor: Makes boost::assign::list_of work.
first | the begin iterator |
last | the end iterator |
uhd::meta_range_t::meta_range_t | ( | double | start, |
double | stop, | ||
double | step = 0 |
||
) |
A convenience constructor for a single range. A step size of zero implies infinite precision.
start | the minimum value for this range |
stop | the maximum value for this range |
step | the step size for this range |
double uhd::meta_range_t::clip | ( | double | value, |
bool | clip_step = false |
||
) | const |
Clip the target value to a possible range value.
value | the value to clip to this range |
clip_step | if true, clip to steps as well |
double uhd::meta_range_t::start | ( | void | ) | const |
Get the overall start value for this meta-range.
double uhd::meta_range_t::step | ( | void | ) | const |
Get the overall step value for this meta-range.
double uhd::meta_range_t::stop | ( | void | ) | const |
Get the overall stop value for this meta-range.
const std::string uhd::meta_range_t::to_pp_string | ( | void | ) | const |
Convert this meta-range to a printable string.