Mercurial > hg > octave-nkf
diff src/ov-range.h @ 10313:f3b65e1ae355
untabify src header files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 11 Feb 2010 12:16:43 -0500 |
parents | cd96d29c5efa |
children | 1834132fb50b |
line wrap: on
line diff
--- a/src/ov-range.h +++ b/src/ov-range.h @@ -61,15 +61,15 @@ octave_range (double base, double limit, double inc) : octave_base_value (), range (base, limit, inc), idx_cache () { - if (range.nelem () < 0) - ::error ("invalid range"); + if (range.nelem () < 0) + ::error ("invalid range"); } octave_range (const Range& r) : octave_base_value (), range (r), idx_cache () { - if (range.nelem () < 0 && range.nelem () != -2) - ::error ("invalid range"); + if (range.nelem () < 0 && range.nelem () != -2) + ::error ("invalid range"); } octave_range (const octave_range& r) @@ -97,14 +97,14 @@ octave_base_value *try_narrowing_conversion (void); octave_value subsref (const std::string& type, - const std::list<octave_value_list>& idx); + const std::list<octave_value_list>& idx); octave_value_list subsref (const std::string& type, - const std::list<octave_value_list>& idx, int) + const std::list<octave_value_list>& idx, int) { return subsref (type, idx); } octave_value do_index_op (const octave_value_list& idx, - bool resize_ok = false); + bool resize_ok = false); idx_vector index_vector (void) const { return idx_cache ? *idx_cache : set_idx_cache (idx_vector (range)); } @@ -146,7 +146,7 @@ { return range.sort (dim, mode); } octave_value sort (Array<octave_idx_type>& sidx, octave_idx_type dim = 0, - sortmode mode = ASCENDING) const + sortmode mode = ASCENDING) const { return range.sort (sidx, dim, mode); } sortmode is_sorted (sortmode mode = UNSORTED) const @@ -273,7 +273,7 @@ bool save_binary (std::ostream& os, bool& save_as_floats); bool load_binary (std::istream& is, bool swap, - oct_mach_info::float_format fmt); + oct_mach_info::float_format fmt); #if defined (HAVE_HDF5) bool save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats); @@ -282,14 +282,14 @@ #endif int write (octave_stream& os, int block_size, - oct_data_conv::data_type output_type, int skip, - oct_mach_info::float_format flt_fmt) const + oct_data_conv::data_type output_type, int skip, + oct_mach_info::float_format flt_fmt) const { // FIXME -- could be more memory efficient by having a // special case of the octave_stream::write method for ranges. return os.write (matrix_value (), block_size, output_type, skip, - flt_fmt); + flt_fmt); } mxArray *as_mxArray (void) const;