GNU Octave
4.0.0
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 2164 of file oct-stream.cc.
Enumerator | |
---|---|
ok | |
conversion_error |
Definition at line 2169 of file oct-stream.cc.
|
inline |
Definition at line 2171 of file oct-stream.cc.
References gripe_wrong_type_arg(), octave_value::is_cell(), octave_value::is_map(), and octave_value::is_object().
|
inline |
Definition at line 2188 of file oct-stream.cc.
|
private |
|
private |
|
inline |
Definition at line 2198 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 2223 of file oct-stream.cc.
References octave_value::array_value(), conversion_error, curr_state, curr_val, D_NINT(), octave_value::double_value(), elt_idx, error_state, exhausted(), octave_value::fast_elem_extract(), have_data, octave_value::is_string(), n_elts, octave_value::numel(), octave_value::string_value(), val_idx, and values.
Referenced by octave_base_stream::do_printf(), and int_value().
int printf_value_cache::int_value | ( | void | ) |
Definition at line 2341 of file oct-stream.cc.
References conversion_error, curr_state, D_NINT(), octave_value::double_value(), error_state, get_next_value(), and NINT().
Referenced by octave_base_stream::do_printf().
|
inline |
Definition at line 2196 of file oct-stream.cc.
|
private |
|
private |
Definition at line 2209 of file oct-stream.cc.
Referenced by get_next_value(), and int_value().
|
private |
Definition at line 2208 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 2204 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 2207 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 2206 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 2205 of file oct-stream.cc.
|
private |
Definition at line 2203 of file oct-stream.cc.
Referenced by get_next_value().
|
private |
Definition at line 2202 of file oct-stream.cc.
Referenced by get_next_value().