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 2195 of file oct-stream.cc.
Definition at line 2200 of file oct-stream.cc.
printf_value_cache::printf_value_cache | ( | const octave_value_list & | args, | |
const std::string & | who | |||
) | [inline] |
Definition at line 2202 of file oct-stream.cc.
References gripe_wrong_type_arg(), octave_value::is_cell(), octave_value::is_map(), and octave_value::is_object().
printf_value_cache::~printf_value_cache | ( | void | ) | [inline] |
Definition at line 2219 of file oct-stream.cc.
printf_value_cache::printf_value_cache | ( | void | ) | [private] |
printf_value_cache::printf_value_cache | ( | const printf_value_cache & | ) | [private] |
double printf_value_cache::double_value | ( | void | ) |
Definition at line 2257 of file oct-stream.cc.
References octave_value::array_value(), 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().
bool printf_value_cache::exhausted | ( | void | ) | [inline] |
Definition at line 2232 of file oct-stream.cc.
Referenced by octave_base_stream::do_printf(), double_value(), and string_value().
int printf_value_cache::int_value | ( | void | ) |
Definition at line 2316 of file oct-stream.cc.
References curr_state, D_NINT(), double_value(), error_state, and NINT().
Referenced by octave_base_stream::do_printf().
printf_value_cache::operator bool | ( | ) | const [inline] |
Definition at line 2230 of file oct-stream.cc.
printf_value_cache& printf_value_cache::operator= | ( | const printf_value_cache & | ) | [private] |
std::string printf_value_cache::string_value | ( | void | ) |
Definition at line 2334 of file oct-stream.cc.
References octave_value::char_matrix_value(), Array< T >::columns(), 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().
state printf_value_cache::curr_state [private] |
Definition at line 2243 of file oct-stream.cc.
Referenced by double_value(), int_value(), and string_value().
NDArray printf_value_cache::curr_val [private] |
Definition at line 2242 of file oct-stream.cc.
Referenced by double_value().
const double* printf_value_cache::data [private] |
Definition at line 2241 of file oct-stream.cc.
Referenced by double_value().
int printf_value_cache::elt_idx [private] |
Definition at line 2238 of file oct-stream.cc.
Referenced by double_value().
int printf_value_cache::n_elts [private] |
Definition at line 2240 of file oct-stream.cc.
Referenced by double_value().
int printf_value_cache::n_vals [private] |
Definition at line 2239 of file oct-stream.cc.
int printf_value_cache::val_idx [private] |
Definition at line 2237 of file oct-stream.cc.
Referenced by double_value(), and string_value().
const octave_value_list printf_value_cache::values [private] |
Definition at line 2236 of file oct-stream.cc.
Referenced by double_value(), and string_value().