Mercurial > hg > octave-nkf
comparison libinterp/octave-value/ov.cc @ 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 | 729a85dafba8 |
children |
comparison
equal
deleted
inserted
replaced
20793:ba2b07c13913 | 20794:e5986cba4ca8 |
---|---|
1546 | 1546 |
1547 Cell | 1547 Cell |
1548 octave_value::cell_value (void) const | 1548 octave_value::cell_value (void) const |
1549 { | 1549 { |
1550 return rep->cell_value (); | 1550 return rep->cell_value (); |
1551 } | |
1552 | |
1553 Cell | |
1554 octave_value::cell_value (const char *fmt, ...) const | |
1555 { | |
1556 va_list args; | |
1557 va_start (args,fmt); | |
1558 return rep->cell_value (fmt, args); | |
1559 va_end (args); | |
1551 } | 1560 } |
1552 | 1561 |
1553 // Define the idx_type_value function here instead of in ov.h to avoid | 1562 // Define the idx_type_value function here instead of in ov.h to avoid |
1554 // needing definitions for the SIZEOF_X macros in ov.h. | 1563 // needing definitions for the SIZEOF_X macros in ov.h. |
1555 | 1564 |