Mercurial > octave
diff liboctave/array/Range.h @ 28638:98192ec1621f
replace Range with range<double>
* __magick_read__.cc, cellfun.cc, data.cc, ls-mat4.cc, max.cc,
pr-output.cc, pr-output.h, rand.cc, tril.cc, xpow.cc, xpow.h,
ov-base.cc, ov-base.h, ov-range.cc, ov-range.h, ov.cc, ov.h,
jit-typeinfo.cc, jit-typeinfo.h, pt-eval.cc, pt-jit.cc, idx-vector.cc,
idx-vector.h: Replace all uses of Range with range<double>.
* Range.h: Deprecated Range constructors.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 06 Aug 2020 16:28:30 -0400 |
parents | fb37f50d5ba8 |
children | 7ebe185e3818 |
line wrap: on
line diff
--- a/liboctave/array/Range.h Thu Aug 06 15:36:30 2020 -0400 +++ b/liboctave/array/Range.h Thu Aug 06 16:28:30 2020 -0400 @@ -355,6 +355,7 @@ { public: + OCTAVE_DEPRECATED (7, "use the 'octave::range<double>' class instead") Range (void) : m_base (0), m_limit (0), m_inc (0), m_numel (0) { } @@ -364,6 +365,7 @@ // that mimics the behavior of the other Range class constructors that // reset limit to the computed final value. + OCTAVE_DEPRECATED (7, "use the 'octave::range<double>' class instead") Range (const octave::range<double>& r) : m_base (r.base ()), m_limit (r.final_value ()), m_inc (r.increment ()), m_numel (r.numel ()) @@ -375,6 +377,7 @@ ~Range (void) = default; + OCTAVE_DEPRECATED (7, "use the 'octave::range<double>' class instead") Range (double b, double l) : m_base (b), m_limit (l), m_inc (1), m_numel (numel_internal ()) { @@ -382,6 +385,7 @@ m_limit = limit_internal (); } + OCTAVE_DEPRECATED (7, "use the 'octave::range<double>' class instead") Range (double b, double l, double i) : m_base (b), m_limit (l), m_inc (i), m_numel (numel_internal ()) { @@ -395,6 +399,7 @@ // For operators' usage (to preserve element count) and to create // constant row vectors (obsolete usage). + OCTAVE_DEPRECATED (7, "use the 'octave::range<double>' class instead") Range (double b, double i, octave_idx_type n) : m_base (b), m_limit (b + (n-1) * i), m_inc (i), m_numel (n) {