osmosdr::meta_range_t
std::vector< range_t >
ranges.h
osmosdr::meta_range_t::meta_range_t
(void)
meta_range_t
osmosdr::meta_range_t::meta_range_t
void

A default constructor for an empty meta-range.

typename InputIterator
osmosdr::meta_range_t::meta_range_t
(InputIterator first, InputIterator last)
meta_range_t
osmosdr::meta_range_t::meta_range_t
InputIterator first
InputIterator last

Input iterator constructor: Makes boost::assign::list_of work. first

the begin iterator

last

the end iterator

osmosdr::meta_range_t::meta_range_t
(double start, double stop, double step=0)
meta_range_t
osmosdr::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 double osmosdr::meta_range_t::start (void) const start osmosdr::meta_range_t::start void

Get the overall start value for this meta-range.

double double osmosdr::meta_range_t::stop (void) const stop osmosdr::meta_range_t::stop void

Get the overall stop value for this meta-range.

double double osmosdr::meta_range_t::step (void) const step osmosdr::meta_range_t::step void

Get the overall step value for this meta-range.

double double osmosdr::meta_range_t::clip (double value, bool clip_step=false) const clip osmosdr::meta_range_t::clip double value bool clip_step false

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

a value that is in one of the ranges

std::vector< double > std::vector< double > osmosdr::meta_range_t::values () const values osmosdr::meta_range_t::values

return a vector containing all values of the range

const std::string const std::string osmosdr::meta_range_t::to_pp_string (void) const to_pp_string osmosdr::meta_range_t::to_pp_string void

Convert this meta-range to a printable string.

A meta-range object holds a list of individual ranges.

osmosdr::meta_range_t
std::vector< T >
T
osmosdr::meta_range_t
std::vector< T >
elements
- osmosdr::meta_range_t
  clip
- osmosdr::meta_range_t
  elements
- osmosdr::meta_range_t
  meta_range_t
- osmosdr::meta_range_t
  meta_range_t
- osmosdr::meta_range_t
  meta_range_t
- osmosdr::meta_range_t
  start
- osmosdr::meta_range_t
  step
- osmosdr::meta_range_t
  stop
- osmosdr::meta_range_t
  to_pp_string
- osmosdr::meta_range_t
  values