comparison libinterp/octave-value/ov.h @ 19428:b39cbe9f3bb0

allow ranges to be disabled * ov.cc, ov.h: Allow creation of range object to be disabled. Also allow range objects to be forced, even when generally disabled. * pt-exp.h (tree_expression::for_cmd_expr): New member variable. (tree_expression::mark_as_for_cmd_expr, tree_expression::is_for_cmd_expr): New functions. * oct-parse.in.yy: Mark for command expressions. * pt-colon.cc (tree_colon_expression::make_range): Force creation of range if expression is a for command expression. * basics.txi, numbers.txi: Document changes.
author John W. Eaton <jwe@octave.org>
date Mon, 08 Dec 2014 12:59:47 -0500
parents fa48651fbb8a
children 76478d2da117
comparison
equal deleted inserted replaced
19427:9464cfeede2b 19428:b39cbe9f3bb0
279 octave_value (const Array<octave_idx_type>& inda, 279 octave_value (const Array<octave_idx_type>& inda,
280 bool zero_based = false, bool cache_index = false); 280 bool zero_based = false, bool cache_index = false);
281 octave_value (const Array<std::string>& cellstr); 281 octave_value (const Array<std::string>& cellstr);
282 octave_value (const idx_vector& idx, bool lazy = true); 282 octave_value (const idx_vector& idx, bool lazy = true);
283 octave_value (double base, double limit, double inc); 283 octave_value (double base, double limit, double inc);
284 octave_value (const Range& r); 284 octave_value (const Range& r, bool force_range = false);
285 octave_value (const octave_map& m); 285 octave_value (const octave_map& m);
286 octave_value (const octave_scalar_map& m); 286 octave_value (const octave_scalar_map& m);
287 octave_value (const octave_map& m, const std::string& id, 287 octave_value (const octave_map& m, const std::string& id,
288 const std::list<std::string>& plist); 288 const std::list<std::string>& plist);
289 octave_value (const octave_scalar_map& m, const std::string& id, 289 octave_value (const octave_scalar_map& m, const std::string& id,