Public Types | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes

oct_mach_info Class Reference

#include "mach-info.h"

Collaboration diagram for oct_mach_info:
Collaboration graph
[legend]

List of all members.

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_infooperator= (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_infoinstance = 0

Detailed Description

Definition at line 28 of file mach-info.h.


Member Enumeration Documentation

Enumerator:
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.


Constructor & Destructor Documentation

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]

Member Function Documentation

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]
bool oct_mach_info::instance_ok ( void   )  [static]
oct_mach_info::float_format oct_mach_info::native_float_format ( void   )  [static]
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]
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().


Member Data Documentation

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 67 of file mach-info.h.

Referenced by native_float_format().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines