#include <cassert>
#include <cctype>
#include <cstring>
#include <algorithm>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include "Array.h"
#include "Cell.h"
#include "byte-swap.h"
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "lo-utils.h"
#include "oct-locbuf.h"
#include "quit.h"
#include "str-vec.h"
#include "error.h"
#include "errwarn.h"
#include "input.h"
#include "interpreter.h"
#include "octave.h"
#include "oct-iostrm.h"
#include "oct-stdstrm.h"
#include "oct-stream.h"
#include "ov.h"
#include "ovl.h"
#include "pager.h"
#include "utils.h"
Go to the source code of this file.
Classes | |
class | octave::delimited_stream |
class | octave::printf_format_elt |
class | octave::printf_format_list |
class | octave::printf_value_cache |
class | octave::scanf_format_elt |
class | octave::scanf_format_list |
class | octave::textscan |
class | octave::textscan_format_elt |
class | octave::textscan_format_list |
class | octave::ultimate_element_type< T > |
class | octave::ultimate_element_type< octave_int< T > > |
Namespaces | |
octave | |
Macros | |
#define | BEGIN_C_CONVERSION() |
#define | BEGIN_CHAR_CLASS_CONVERSION() |
#define | BEGIN_S_CONVERSION() |
#define | DO_LITERAL_CONVERSION() |
#define | DO_PCT_CONVERSION() |
#define | DO_WHITESPACE_CONVERSION() |
#define | FILL_TABLE_ROW(T, V) |
#define | FINISH_CHARACTER_CONVERSION() |
#define | INSTANTIATE_WRITE(T) |
#define | TABLE_ELT(T, U, V, W) conv_fptr_table[oct_data_conv::T][oct_data_conv::U] = convert_and_copy<V, W> |
Typedefs | |
typedef octave_value(* | octave::conv_fptr) (std::list< void *> &input_buf_list, octave_idx_type input_buf_elts, octave_idx_type elts_read, octave_idx_type nr, octave_idx_type nc, bool swap, bool do_float_fmt_conv, bool do_NA_conv, octave::mach_info::float_format from_flt_fmt) |
Functions | |
template<typename SRC_T , typename DST_T > | |
static octave_value | octave::convert_and_copy (std::list< void *> &input_buf_list, octave_idx_type input_buf_elts, octave_idx_type elts_read, octave_idx_type nr, octave_idx_type nc, bool swap, bool do_float_fmt_conv, bool do_NA_conv, octave::mach_info::float_format from_flt_fmt) |
template<typename T , typename V > | |
static void | octave::convert_chars (const void *data, void *conv_data, octave_idx_type n_elts) |
template<typename T > | |
static bool | octave::convert_data (const T *data, void *conv_data, octave_idx_type n_elts, oct_data_conv::data_type output_type, octave::mach_info::float_format flt_fmt) |
template<typename T , typename V > | |
static void | octave::convert_ints (const T *data, void *conv_data, octave_idx_type n_elts, bool swap) |
static int | octave::convert_to_valid_int (const octave_value &tc, int &conv_err) |
template<typename T > | |
int | octave::do_printf_conv (std::ostream &os, const char *fmt, int nsa, int sa_1, int sa_2, T arg, const std::string &who) |
static size_t | octave::do_printf_string (std::ostream &os, const octave::printf_format_elt *elt, int nsa, int sa_1, int sa_2, const std::string &arg, const std::string &who) |
template<typename T > | |
void | octave::do_scanf_conv (std::istream &is, const scanf_format_elt &fmt, T valptr, Matrix &mval, double *data, octave_idx_type &idx, octave_idx_type &conversion_count, octave_idx_type nr, octave_idx_type max_size, bool discard) |
template void | octave::do_scanf_conv (std::istream &, const scanf_format_elt &, double *, Matrix &, double *, octave_idx_type &, octave_idx_type &, octave_idx_type, octave_idx_type, bool) |
static OCTAVE_NORETURN void | octave::err_invalid_file_id (int fid, const std::string &who) |
static std::string | octave::expand_char_class (const std::string &s) |
static octave_idx_type | octave::get_size (double d, const std::string &who) |
static void | octave::get_size (const Array< double > &size, octave_idx_type &nr, octave_idx_type &nc, bool &one_elt_size_spec, const std::string &who) |
static Cell | octave::init_inf_nan (void) |
static bool | octave::is_nan_or_inf (const octave_value &val) |
template<typename T > | |
static bool | octave::is_old_NA (T) |
template<> | |
bool | octave::is_old_NA< double > (double val) |
template<typename T > | |
std::istream & | octave::octave_scan (std::istream &is, const scanf_format_elt &fmt, T *valptr) |
template<> | |
std::istream & | octave::octave_scan (std::istream &is, const scanf_format_elt &, char *valptr) |
template<> | |
std::istream & | octave::octave_scan (std::istream &is, const scanf_format_elt &fmt, double *valptr) |
template<typename T > | |
std::istream & | octave::octave_scan_1 (std::istream &is, const scanf_format_elt &fmt, T *valptr) |
static bool | octave::ok_for_signed_int_conv (const octave_value &val) |
static bool | octave::ok_for_unsigned_int_conv (const octave_value &val) |
static double | octave::pown (double x, unsigned int n) |
template<typename T > | |
static T | octave::replace_old_NA (T val) |
template<> | |
double | octave::replace_old_NA< double > (double val) |
static std::string | octave::switch_to_g_format (const octave::printf_format_elt *elt) |
#define BEGIN_C_CONVERSION | ( | ) |
Definition at line 4409 of file oct-stream.cc.
Referenced by octave::base_stream::do_oscanf(), and octave::base_stream::do_scanf().
#define BEGIN_CHAR_CLASS_CONVERSION | ( | ) |
Definition at line 4479 of file oct-stream.cc.
Referenced by octave::base_stream::do_oscanf(), and octave::base_stream::do_scanf().
#define BEGIN_S_CONVERSION | ( | ) |
Definition at line 4430 of file oct-stream.cc.
Referenced by octave::base_stream::do_oscanf(), and octave::base_stream::do_scanf().
#define DO_LITERAL_CONVERSION | ( | ) |
Definition at line 4364 of file oct-stream.cc.
Referenced by octave::base_stream::do_oscanf(), and octave::base_stream::do_scanf().
#define DO_PCT_CONVERSION | ( | ) |
Definition at line 4391 of file oct-stream.cc.
Referenced by octave::base_stream::do_oscanf(), and octave::base_stream::do_scanf().
#define DO_WHITESPACE_CONVERSION | ( | ) |
Definition at line 4350 of file oct-stream.cc.
Referenced by octave::base_stream::do_oscanf(), and octave::base_stream::do_scanf().
#define FILL_TABLE_ROW | ( | T, | |
V | |||
) |
Definition at line 6402 of file oct-stream.cc.
Referenced by octave::stream::finalize_read().
#define FINISH_CHARACTER_CONVERSION | ( | ) |
Definition at line 4526 of file oct-stream.cc.
Referenced by octave::base_stream::do_scanf().
#define INSTANTIATE_WRITE | ( | T | ) |
Definition at line 7014 of file oct-stream.cc.
#define TABLE_ELT | ( | T, | |
U, | |||
V, | |||
W | |||
) | conv_fptr_table[oct_data_conv::T][oct_data_conv::U] = convert_and_copy<V, W> |
Definition at line 6399 of file oct-stream.cc.