GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
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 (void) | |
bool | exhausted (void) |
octave_value | get_next_value (char type=0) |
int | int_value (void) |
operator bool () const | |
Private Member Functions | |
printf_value_cache (void) | |
printf_value_cache (const printf_value_cache &) | |
printf_value_cache & | operator= (const printf_value_cache &) |
Private Attributes | |
state | curr_state |
octave_value | curr_val |
int | elt_idx |
bool | have_data |
int | n_elts |
int | n_vals |
int | val_idx |
const octave_value_list | values |
Definition at line 5286 of file oct-stream.cc.
Enumerator | |
---|---|
ok | |
conversion_error |
Definition at line 5291 of file oct-stream.cc.
|
inline |
Definition at line 5293 of file oct-stream.cc.
References err_wrong_type_arg(), octave_value::is_cell(), octave_value::is_map(), octave_value::is_object(), val, and values.
|
inline |
Definition at line 5307 of file oct-stream.cc.
|
private |
|
private |
|
inline |
Definition at line 5317 of file oct-stream.cc.
Referenced by octave_base_stream::do_printf(), and get_next_value().
octave_value printf_value_cache::get_next_value | ( | char | type = 0 | ) |
Definition at line 5342 of file oct-stream.cc.
References octave_value::array_value(), conversion_error, curr_state, curr_val, octave_value::double_value(), dv, elt_idx, exhausted(), octave_value::fast_elem_extract(), have_data, octave_value::is_string(), n_elts, octave_value::numel(), octave_value::reshape(), retval, string, tmp, val, val_idx, values, and octave::math::x_nint().
Referenced by octave_base_stream::do_printf(), and int_value().
int printf_value_cache::int_value | ( | void | ) |
Definition at line 5452 of file oct-stream.cc.
References conversion_error, curr_state, octave_value::double_value(), get_next_value(), octave::math::nint(), retval, val, and octave::math::x_nint().
Referenced by octave_base_stream::do_printf().
|
inline |
Definition at line 5315 of file oct-stream.cc.
|
private |
|
private |
Definition at line 5328 of file oct-stream.cc.
Referenced by get_next_value(), and int_value().
|
private |
Definition at line 5327 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 5323 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 5326 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 5325 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 5324 of file oct-stream.cc.
|
private |
Definition at line 5322 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 5321 of file oct-stream.cc.
Referenced by get_next_value().