Mercurial > octave-nkf
comparison src/ov-base.h @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | fd0a3ac60b0e |
children | a21a3875ca83 |
comparison
equal
deleted
inserted
replaced
11585:1473d0cf86d2 | 11586:12df7854fa7c |
---|---|
77 btyp_func_handle, | 77 btyp_func_handle, |
78 btyp_unknown, | 78 btyp_unknown, |
79 btyp_num_types = btyp_unknown | 79 btyp_num_types = btyp_unknown |
80 }; | 80 }; |
81 | 81 |
82 extern OCTINTERP_API std::string | 82 extern OCTINTERP_API std::string |
83 btyp_class_name [btyp_num_types]; | 83 btyp_class_name [btyp_num_types]; |
84 | 84 |
85 extern OCTINTERP_API string_vector | 85 extern OCTINTERP_API string_vector |
86 get_builtin_classes (void); | 86 get_builtin_classes (void); |
87 | 87 |
88 inline bool btyp_isnumeric (builtin_type_t btyp) | 88 inline bool btyp_isnumeric (builtin_type_t btyp) |
89 { return btyp <= btyp_uint64; } | 89 { return btyp <= btyp_uint64; } |
90 | 90 |
91 inline bool btyp_isinteger (builtin_type_t btyp) | 91 inline bool btyp_isinteger (builtin_type_t btyp) |
190 public: | 190 public: |
191 type_conv_info (type_conv_fcn f = 0, int t = -1) : _fcn (f), _type_id (t) { } | 191 type_conv_info (type_conv_fcn f = 0, int t = -1) : _fcn (f), _type_id (t) { } |
192 | 192 |
193 operator type_conv_fcn (void) const { return _fcn; } | 193 operator type_conv_fcn (void) const { return _fcn; } |
194 | 194 |
195 octave_base_value * operator () (const octave_base_value &v) const | 195 octave_base_value * operator () (const octave_base_value &v) const |
196 { return (*_fcn) (v); } | 196 { return (*_fcn) (v); } |
197 | 197 |
198 int type_id (void) const { return _type_id; } | 198 int type_id (void) const { return _type_id; } |
199 | 199 |
200 private: | 200 private: |
238 | 238 |
239 virtual octave_base_value *try_narrowing_conversion (void) { return 0; } | 239 virtual octave_base_value *try_narrowing_conversion (void) { return 0; } |
240 | 240 |
241 virtual void maybe_economize (void) { } | 241 virtual void maybe_economize (void) { } |
242 | 242 |
243 virtual Matrix size (void); | 243 virtual Matrix size (void); |
244 | 244 |
245 virtual octave_idx_type numel (const octave_value_list&); | 245 virtual octave_idx_type numel (const octave_value_list&); |
246 | 246 |
247 virtual octave_value | 247 virtual octave_value |
248 subsref (const std::string& type, | 248 subsref (const std::string& type, |
503 virtual SparseBoolMatrix sparse_bool_matrix_value (bool = false) const; | 503 virtual SparseBoolMatrix sparse_bool_matrix_value (bool = false) const; |
504 | 504 |
505 virtual DiagMatrix diag_matrix_value (bool = false) const; | 505 virtual DiagMatrix diag_matrix_value (bool = false) const; |
506 | 506 |
507 virtual FloatDiagMatrix float_diag_matrix_value (bool = false) const; | 507 virtual FloatDiagMatrix float_diag_matrix_value (bool = false) const; |
508 | 508 |
509 virtual ComplexDiagMatrix complex_diag_matrix_value (bool = false) const; | 509 virtual ComplexDiagMatrix complex_diag_matrix_value (bool = false) const; |
510 | 510 |
511 virtual FloatComplexDiagMatrix float_complex_diag_matrix_value (bool = false) const; | 511 virtual FloatComplexDiagMatrix float_complex_diag_matrix_value (bool = false) const; |
512 | 512 |
513 virtual PermMatrix perm_matrix_value (void) const; | 513 virtual PermMatrix perm_matrix_value (void) const; |
514 | 514 |
515 virtual octave_int8 int8_scalar_value (void) const; | 515 virtual octave_int8 int8_scalar_value (void) const; |
516 | 516 |
517 virtual octave_int16 int16_scalar_value (void) const; | 517 virtual octave_int16 int16_scalar_value (void) const; |
600 | 600 |
601 virtual bool | 601 virtual bool |
602 print_name_tag (std::ostream& os, const std::string& name) const; | 602 print_name_tag (std::ostream& os, const std::string& name) const; |
603 | 603 |
604 virtual void | 604 virtual void |
605 print_with_name (std::ostream& output_buf, const std::string& name, | 605 print_with_name (std::ostream& output_buf, const std::string& name, |
606 bool print_padding = true); | 606 bool print_padding = true); |
607 | 607 |
608 virtual void print_info (std::ostream& os, const std::string& prefix) const; | 608 virtual void print_info (std::ostream& os, const std::string& prefix) const; |
609 | 609 |
610 virtual bool save_ascii (std::ostream& os); | 610 virtual bool save_ascii (std::ostream& os); |
611 | 611 |
612 virtual bool load_ascii (std::istream& is); | 612 virtual bool load_ascii (std::istream& is); |
613 | 613 |
614 virtual bool save_binary (std::ostream& os, bool& save_as_floats); | 614 virtual bool save_binary (std::ostream& os, bool& save_as_floats); |
615 | 615 |
616 virtual bool load_binary (std::istream& is, bool swap, | 616 virtual bool load_binary (std::istream& is, bool swap, |
617 oct_mach_info::float_format fmt); | 617 oct_mach_info::float_format fmt); |
618 | 618 |
619 #if defined (HAVE_HDF5) | 619 #if defined (HAVE_HDF5) |
620 virtual bool | 620 virtual bool |
621 save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats); | 621 save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats); |
637 | 637 |
638 virtual mxArray *as_mxArray (void) const; | 638 virtual mxArray *as_mxArray (void) const; |
639 | 639 |
640 virtual octave_value diag (octave_idx_type k = 0) const; | 640 virtual octave_value diag (octave_idx_type k = 0) const; |
641 | 641 |
642 virtual octave_value sort (octave_idx_type dim = 0, | 642 virtual octave_value sort (octave_idx_type dim = 0, |
643 sortmode mode = ASCENDING) const; | 643 sortmode mode = ASCENDING) const; |
644 virtual octave_value sort (Array<octave_idx_type> &sidx, | 644 virtual octave_value sort (Array<octave_idx_type> &sidx, |
645 octave_idx_type dim = 0, | 645 octave_idx_type dim = 0, |
646 sortmode mode = ASCENDING) const; | 646 sortmode mode = ASCENDING) const; |
647 | 647 |
648 virtual sortmode is_sorted (sortmode mode = UNSORTED) const; | 648 virtual sortmode is_sorted (sortmode mode = UNSORTED) const; |
649 | 649 |