GNU Octave
3.8.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) | |
double | double_value (void) |
bool | exhausted (void) |
int | int_value (void) |
operator bool () const | |
std::string | string_value (void) |
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 |
NDArray | curr_val |
const double * | data |
int | elt_idx |
int | n_elts |
int | n_vals |
int | val_idx |
const octave_value_list | values |
Definition at line 2153 of file oct-stream.cc.
Definition at line 2158 of file oct-stream.cc.
|
inline |
Definition at line 2160 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 2177 of file oct-stream.cc.
|
private |
|
private |
Definition at line 2215 of file oct-stream.cc.
References octave_value::array_value(), conversion_error, curr_state, curr_val, Array< T >::data(), data, elt_idx, error_state, exhausted(), Array< T >::length(), n_elts, val_idx, and values.
Referenced by octave_base_stream::do_printf(), and int_value().
Definition at line 2190 of file oct-stream.cc.
Referenced by octave_base_stream::do_printf(), double_value(), and string_value().
Definition at line 2274 of file oct-stream.cc.
References conversion_error, curr_state, D_NINT(), double_value(), error_state, and NINT().
Referenced by octave_base_stream::do_printf().
|
inline |
Definition at line 2188 of file oct-stream.cc.
|
private |
std::string printf_value_cache::string_value | ( | void | ) |
Definition at line 2292 of file oct-stream.cc.
References octave_value::char_matrix_value(), Array< T >::columns(), conversion_error, curr_state, error_state, exhausted(), Array< T >::rows(), octave_value::rows(), octave_value::string_value(), val_idx, and values.
Referenced by octave_base_stream::do_printf().
|
private |
Definition at line 2201 of file oct-stream.cc.
Referenced by double_value(), int_value(), and string_value().
|
private |
Definition at line 2200 of file oct-stream.cc.
Referenced by double_value().
|
private |
Definition at line 2199 of file oct-stream.cc.
Referenced by double_value().
|
private |
Definition at line 2196 of file oct-stream.cc.
Referenced by double_value().
|
private |
Definition at line 2198 of file oct-stream.cc.
Referenced by double_value().
|
private |
Definition at line 2197 of file oct-stream.cc.
|
private |
Definition at line 2195 of file oct-stream.cc.
Referenced by double_value(), and string_value().
|
private |
Definition at line 2194 of file oct-stream.cc.
Referenced by double_value(), and string_value().