Public Types | |
enum | state { ok , conversion_error } |
Public Member Functions | |
printf_value_cache (const octave_value_list &args, const std::string &who) | |
printf_value_cache (const printf_value_cache &)=delete | |
~printf_value_cache (void)=default | |
bool | exhausted (void) |
octave_value | get_next_value (char type=0) |
int | int_value (void) |
operator bool () const | |
printf_value_cache & | operator= (const printf_value_cache &)=delete |
Private Member Functions | |
printf_value_cache (void) | |
Private Attributes | |
state | m_curr_state |
octave_value | m_curr_val |
octave_idx_type | m_elt_idx |
bool | m_have_data |
octave_idx_type | m_n_elts |
octave_idx_type | m_n_vals |
octave_idx_type | m_val_idx |
const octave_value_list | m_values |
Definition at line 5492 of file oct-stream.cc.
Enumerator | |
---|---|
ok | |
conversion_error |
Definition at line 5497 of file oct-stream.cc.
|
inline |
Definition at line 5499 of file oct-stream.cc.
References err_wrong_type_arg(), octave_value::iscell(), octave_value::isobject(), octave_value::isstruct(), and textscan_format_list::who.
|
delete |
|
default |
|
private |
|
inline |
Definition at line 5532 of file oct-stream.cc.
Referenced by base_stream::do_printf(), and get_next_value().
octave_value printf_value_cache::get_next_value | ( | char | type = 0 | ) |
Definition at line 5552 of file oct-stream.cc.
References octave_value::array_value(), conversion_error, octave_value::double_value(), exhausted(), octave_value::fast_elem_extract(), octave_value::is_string(), m_curr_state, m_curr_val, m_elt_idx, m_have_data, m_n_elts, m_val_idx, m_values, Matrix, n, octave_value::numel(), octave_value::reshape(), octave_value::string_value(), and x_nint().
Referenced by base_stream::do_printf(), and int_value().
int printf_value_cache::int_value | ( | void | ) |
Definition at line 5667 of file oct-stream.cc.
References conversion_error, octave_value::double_value(), get_next_value(), m_curr_state, max(), nint(), and x_nint().
Referenced by base_stream::do_printf().
|
inline |
Definition at line 5530 of file oct-stream.cc.
References textscan_format_list::ok().
|
delete |
|
private |
Definition at line 5548 of file oct-stream.cc.
Referenced by get_next_value(), and int_value().
|
private |
Definition at line 5547 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 5543 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 5546 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 5545 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 5544 of file oct-stream.cc.
|
private |
Definition at line 5542 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 5541 of file oct-stream.cc.
Referenced by get_next_value().