comparison libinterp/octave-value/ov.h @ 20794:e5986cba4ca8

new octave_value::cell_value method with optional error message * ov.h, ov.cc (octave_value::cell_value): New method. * ov-base.h, ov-base.cc (octave_base_value::cell_value): New default method. * ov-cell.h, ov-cell.cc (octave_cell::cell_value): New method.
author John W. Eaton <jwe@octave.org>
date Fri, 09 Oct 2015 14:41:49 -0400
parents 40ed9b46a800
children
comparison
equal deleted inserted replaced
20793:ba2b07c13913 20794:e5986cba4ca8
768 float float_scalar_value (bool frc_str_conv = false) const 768 float float_scalar_value (bool frc_str_conv = false) const
769 { return rep->float_scalar_value (frc_str_conv); } 769 { return rep->float_scalar_value (frc_str_conv); }
770 770
771 Cell cell_value (void) const; 771 Cell cell_value (void) const;
772 772
773 Cell cell_value (const char *fmt, ...) const;
774
773 Matrix matrix_value (bool frc_str_conv = false) const 775 Matrix matrix_value (bool frc_str_conv = false) const
774 { return rep->matrix_value (frc_str_conv); } 776 { return rep->matrix_value (frc_str_conv); }
775 777
776 FloatMatrix float_matrix_value (bool frc_str_conv = false) const 778 FloatMatrix float_matrix_value (bool frc_str_conv = false) const
777 { return rep->float_matrix_value (frc_str_conv); } 779 { return rep->float_matrix_value (frc_str_conv); }