comparison src/ov.cc @ 7885:f336dd8e96d0

eliminate streamoff type
author John W. Eaton <jwe@octave.org>
date Thu, 12 Jun 2008 10:42:56 -0400
parents 87865ed7405f
children 7ca2735d74c2
comparison
equal deleted inserted replaced
7884:e88411265a75 7885:f336dd8e96d0
58 #include "ov-ch-mat.h" 58 #include "ov-ch-mat.h"
59 #include "ov-str-mat.h" 59 #include "ov-str-mat.h"
60 #include "ov-range.h" 60 #include "ov-range.h"
61 #include "ov-struct.h" 61 #include "ov-struct.h"
62 #include "ov-class.h" 62 #include "ov-class.h"
63 #include "ov-streamoff.h"
64 #include "ov-list.h" 63 #include "ov-list.h"
65 #include "ov-cs-list.h" 64 #include "ov-cs-list.h"
66 #include "ov-colon.h" 65 #include "ov-colon.h"
67 #include "ov-builtin.h" 66 #include "ov-builtin.h"
68 #include "ov-dld-fcn.h" 67 #include "ov-dld-fcn.h"
972 octave_value::octave_value (const Octave_map& m, const std::string& id) 971 octave_value::octave_value (const Octave_map& m, const std::string& id)
973 : rep (new octave_class (m, id)) 972 : rep (new octave_class (m, id))
974 { 973 {
975 } 974 }
976 975
977 octave_value::octave_value (const streamoff_array& off)
978 : rep (new octave_streamoff (off))
979 {
980 }
981
982 octave_value::octave_value (const ArrayN<std::streamoff>& inda)
983 : rep (new octave_streamoff (inda))
984 {
985 }
986
987 octave_value::octave_value (const octave_value_list& l, bool is_csl) 976 octave_value::octave_value (const octave_value_list& l, bool is_csl)
988 : rep (is_csl 977 : rep (is_csl
989 ? dynamic_cast<octave_base_value *> (new octave_cs_list (l)) 978 ? dynamic_cast<octave_base_value *> (new octave_cs_list (l))
990 : dynamic_cast<octave_base_value *> (new octave_list (l))) 979 : dynamic_cast<octave_base_value *> (new octave_list (l)))
991 { 980 {
1240 1229
1241 Octave_map 1230 Octave_map
1242 octave_value::map_value (void) const 1231 octave_value::map_value (void) const
1243 { 1232 {
1244 return rep->map_value (); 1233 return rep->map_value ();
1245 }
1246
1247 std::streamoff
1248 octave_value::streamoff_value (void) const
1249 {
1250 return rep->streamoff_value ();
1251 }
1252
1253 streamoff_array
1254 octave_value::streamoff_array_value (void) const
1255 {
1256 return rep->streamoff_array_value ();
1257 } 1234 }
1258 1235
1259 octave_function * 1236 octave_function *
1260 octave_value::function_value (bool silent) 1237 octave_value::function_value (bool silent)
1261 { 1238 {
2728 octave_builtin::register_type (); 2705 octave_builtin::register_type ();
2729 octave_user_function::register_type (); 2706 octave_user_function::register_type ();
2730 octave_dld_function::register_type (); 2707 octave_dld_function::register_type ();
2731 octave_fcn_handle::register_type (); 2708 octave_fcn_handle::register_type ();
2732 octave_fcn_inline::register_type (); 2709 octave_fcn_inline::register_type ();
2733 octave_streamoff::register_type ();
2734 octave_float_scalar::register_type (); 2710 octave_float_scalar::register_type ();
2735 octave_float_complex::register_type (); 2711 octave_float_complex::register_type ();
2736 octave_float_matrix::register_type (); 2712 octave_float_matrix::register_type ();
2737 octave_float_complex_matrix::register_type (); 2713 octave_float_complex_matrix::register_type ();
2738 } 2714 }