#include "mach-info.h"
Public Types | |
enum | float_format { flt_fmt_unknown, flt_fmt_ieee_little_endian, flt_fmt_ieee_big_endian, flt_fmt_vax_d, flt_fmt_vax_g, flt_fmt_cray } |
Static Public Member Functions | |
static std::string | float_format_as_string (float_format) |
static bool | instance_ok (void) |
static float_format | native_float_format (void) |
static float_format | string_to_float_format (const std::string &) |
static bool | words_big_endian (void) |
static bool | words_little_endian (void) |
Protected Member Functions | |
oct_mach_info (void) | |
Private Member Functions | |
oct_mach_info (const oct_mach_info &) | |
oct_mach_info & | operator= (const oct_mach_info &) |
Static Private Member Functions | |
static void | cleanup_instance (void) |
Private Attributes | |
bool | big_chief |
float_format | native_float_fmt |
Static Private Attributes | |
static oct_mach_info * | instance = 0 |
Definition at line 28 of file mach-info.h.
flt_fmt_unknown | |
flt_fmt_ieee_little_endian | |
flt_fmt_ieee_big_endian | |
flt_fmt_vax_d | |
flt_fmt_vax_g | |
flt_fmt_cray |
Definition at line 38 of file mach-info.h.
oct_mach_info::oct_mach_info | ( | void | ) | [protected] |
Definition at line 157 of file mach-info.cc.
Referenced by instance_ok().
oct_mach_info::oct_mach_info | ( | const oct_mach_info & | ) | [private] |
static void oct_mach_info::cleanup_instance | ( | void | ) | [inline, static, private] |
Definition at line 64 of file mach-info.h.
Referenced by instance_ok().
std::string oct_mach_info::float_format_as_string | ( | float_format | flt_fmt | ) | [static] |
Definition at line 233 of file mach-info.cc.
References flt_fmt_cray, flt_fmt_ieee_big_endian, flt_fmt_ieee_little_endian, flt_fmt_vax_d, and flt_fmt_vax_g.
Referenced by DEFUN(), octave_stream_list::do_get_info(), and octave_stream_list::do_list_open_files().
bool oct_mach_info::instance_ok | ( | void | ) | [static] |
Definition at line 162 of file mach-info.cc.
References singleton_cleanup_list::add(), cleanup_instance(), instance, and oct_mach_info().
Referenced by native_float_format(), words_big_endian(), and words_little_endian().
oct_mach_info::float_format oct_mach_info::native_float_format | ( | void | ) | [static] |
Definition at line 186 of file mach-info.cc.
References instance, instance_ok(), and native_float_fmt.
Referenced by DEFUN(), octave_rand::do_seed(), octave_ieee_init(), pr_any_float(), save_mat_binary_data(), string_to_float_format(), and write_header().
oct_mach_info& oct_mach_info::operator= | ( | const oct_mach_info & | ) | [private] |
oct_mach_info::float_format oct_mach_info::string_to_float_format | ( | const std::string & | s | ) | [static] |
Definition at line 207 of file mach-info.cc.
References current_liboctave_error_handler, and native_float_format().
Referenced by do_fread(), do_fwrite(), and do_stream_open().
bool oct_mach_info::words_big_endian | ( | void | ) | [static] |
Definition at line 193 of file mach-info.cc.
References big_chief, instance, and instance_ok().
Referenced by DEFUN(), do_read(), pr_int(), read_binary_file_header(), read_mat_file_header(), octave_stream::write(), and write_header().
bool oct_mach_info::words_little_endian | ( | void | ) | [static] |
Definition at line 200 of file mach-info.cc.
References big_chief, instance, and instance_ok().
Referenced by DEFUN().
bool oct_mach_info::big_chief [mutable, private] |
Definition at line 70 of file mach-info.h.
Referenced by words_big_endian(), and words_little_endian().
oct_mach_info * oct_mach_info::instance = 0 [static, private] |
Definition at line 62 of file mach-info.h.
Referenced by instance_ok(), native_float_format(), words_big_endian(), and words_little_endian().
float_format oct_mach_info::native_float_fmt [mutable, private] |
Definition at line 67 of file mach-info.h.
Referenced by native_float_format().