Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

sc_dt::sc_fxval_fast Class Reference

#include <sc_fxval.h>

Collaboration diagram for sc_dt::sc_fxval_fast:

Collaboration graph
[legend]
List of all members.

Public Methods

 sc_fxval_fast (sc_fxval_fast_observer *=0)
 sc_fxval_fast (int, sc_fxval_fast_observer *=0)
 sc_fxval_fast (unsigned int, sc_fxval_fast_observer *=0)
 sc_fxval_fast (long, sc_fxval_fast_observer *=0)
 sc_fxval_fast (unsigned long, sc_fxval_fast_observer *=0)
 sc_fxval_fast (double, sc_fxval_fast_observer *=0)
 sc_fxval_fast (const char *, sc_fxval_fast_observer *=0)
 sc_fxval_fast (const sc_fxval &, sc_fxval_fast_observer *=0)
 sc_fxval_fast (const sc_fxval_fast &, sc_fxval_fast_observer *=0)
 sc_fxval_fast (const sc_fxnum &, sc_fxval_fast_observer *=0)
 sc_fxval_fast (const sc_fxnum_fast &, sc_fxval_fast_observer *=0)
 sc_fxval_fast (int64, sc_fxval_fast_observer *=0)
 sc_fxval_fast (uint64, sc_fxval_fast_observer *=0)
 sc_fxval_fast (const sc_int_base &, sc_fxval_fast_observer *=0)
 sc_fxval_fast (const sc_uint_base &, sc_fxval_fast_observer *=0)
 sc_fxval_fast (const sc_signed &, sc_fxval_fast_observer *=0)
 sc_fxval_fast (const sc_unsigned &, sc_fxval_fast_observer *=0)
 ~sc_fxval_fast ()
double get_val () const
void set_val (double)
const sc_fxval_fast operator- () const
const sc_fxval_fast & operator+ () const
 DECL_BIN_OP_T (/, int64)\DECL_BIN_OP_T(/
uint64 DECL_BIN_OP_T (/, const sc_int_base &)\DECL_BIN_OP_T(/
uint64 const sc_uint_baseDECL_BIN_OP_T (/, const sc_signed &)\friend const sc_fxval_fast operator<< (const sc_fxval_fast &
const sc_fxval_fast operator++ (int)
const sc_fxval_fast operator-- (int)
sc_fxval_fast & operator++ ()
sc_fxval_fast & operator-- ()
 operator double () const
short to_short () const
unsigned short to_ushort () const
int to_int () const
unsigned int to_uint () const
long to_long () const
unsigned long to_ulong () const
float to_float () const
double to_double () const
const sc_string to_string () const
const sc_string to_string (sc_numrep) const
const sc_string to_string (sc_numrep, bool) const
const sc_string to_string (sc_fmt) const
const sc_string to_string (sc_numrep, sc_fmt) const
const sc_string to_string (sc_numrep, bool, sc_fmt) const
const sc_string to_dec () const
const sc_string to_bin () const
const sc_string to_oct () const
const sc_string to_hex () const
bool is_neg () const
bool is_zero () const
bool is_nan () const
bool is_inf () const
bool is_normal () const
bool rounding_flag () const
void print (ostream &=cout) const
void scan (istream &=cin)
void dump (ostream &=cout) const
bool get_bit (int) const

Public Attributes

uint64 const sc_uint_baseint

Protected Methods

sc_fxval_fast_observerobserver () const
sc_fxval_fast_observerlock_observer () const
void unlock_observer (sc_fxval_fast_observer *) const

Static Protected Methods

double from_string (const char *)

Friends

class sc_fxnum_fast
void neg (sc_fxval_fast &, const sc_fxval_fast &)
const sc_fxval_fast operator/ (const sc_fxval_fast &, const sc_fxval_fast &)
const sc_fxval_fast operator>> (const sc_fxval_fast &, int)
void lshift (sc_fxval_fast &, const sc_fxval_fast &, int)
void rshift (sc_fxval_fast &, const sc_fxval_fast &, int)

Constructor & Destructor Documentation

sc_dt::sc_fxval_fast::sc_fxval_fast sc_fxval_fast_observer   = 0 [explicit]
 

Referenced by operator++(), operator-(), and operator--().

sc_dt::sc_fxval_fast::sc_fxval_fast int   ,
sc_fxval_fast_observer   = 0
 

sc_dt::sc_fxval_fast::sc_fxval_fast unsigned    int,
sc_fxval_fast_observer   = 0
 

sc_dt::sc_fxval_fast::sc_fxval_fast long   ,
sc_fxval_fast_observer   = 0
 

sc_dt::sc_fxval_fast::sc_fxval_fast unsigned    long,
sc_fxval_fast_observer   = 0
 

sc_dt::sc_fxval_fast::sc_fxval_fast double   ,
sc_fxval_fast_observer   = 0
 

sc_dt::sc_fxval_fast::sc_fxval_fast const char *   ,
sc_fxval_fast_observer   = 0
 

sc_dt::sc_fxval_fast::sc_fxval_fast const sc_fxval  ,
sc_fxval_fast_observer   = 0
 

sc_dt::sc_fxval_fast::sc_fxval_fast const sc_fxval_fast &   ,
sc_fxval_fast_observer   = 0
[inline]
 

Definition at line 1530 of file sc_fxval.h.

References sc_dt::m_observer(), SC_FXVAL_FAST_OBSERVER_CONSTRUCT_, SC_FXVAL_FAST_OBSERVER_DEFAULT_, SC_FXVAL_FAST_OBSERVER_READ_, and SC_FXVAL_FAST_OBSERVER_WRITE_.

sc_dt::sc_fxval_fast::sc_fxval_fast const sc_fxnum  ,
sc_fxval_fast_observer   = 0
[inline]
 

Definition at line 4852 of file sc_fxnum.h.

References sc_dt::m_observer(), SC_FXVAL_FAST_OBSERVER_CONSTRUCT_, SC_FXVAL_FAST_OBSERVER_DEFAULT_, and SC_FXVAL_FAST_OBSERVER_WRITE_.

sc_dt::sc_fxval_fast::sc_fxval_fast const sc_fxnum_fast  ,
sc_fxval_fast_observer   = 0
[inline]
 

Definition at line 4863 of file sc_fxnum.h.

References sc_dt::m_observer(), SC_FXVAL_FAST_OBSERVER_CONSTRUCT_, SC_FXVAL_FAST_OBSERVER_DEFAULT_, and SC_FXVAL_FAST_OBSERVER_WRITE_.

sc_dt::sc_fxval_fast::sc_fxval_fast int64   ,
sc_fxval_fast_observer   = 0
[explicit]
 

sc_dt::sc_fxval_fast::sc_fxval_fast uint64   ,
sc_fxval_fast_observer   = 0
[explicit]
 

sc_dt::sc_fxval_fast::sc_fxval_fast const sc_int_base  ,
sc_fxval_fast_observer   = 0
[explicit]
 

sc_dt::sc_fxval_fast::sc_fxval_fast const sc_uint_base  ,
sc_fxval_fast_observer   = 0
[explicit]
 

sc_dt::sc_fxval_fast::sc_fxval_fast const sc_signed  ,
sc_fxval_fast_observer   = 0
[explicit]
 

sc_dt::sc_fxval_fast::sc_fxval_fast const sc_unsigned  ,
sc_fxval_fast_observer   = 0
[explicit]
 

sc_dt::sc_fxval_fast::~sc_fxval_fast   [inline]
 

Definition at line 1582 of file sc_fxval.h.

References SC_FXVAL_FAST_OBSERVER_DESTRUCT_.


Member Function Documentation

uint64 const sc_uint_base& sc_dt::sc_fxval_fast::DECL_BIN_OP_T  ,
const sc_signed  
const
 

uint64 sc_dt::sc_fxval_fast::DECL_BIN_OP_T  ,
const sc_int_base  
 

sc_dt::sc_fxval_fast::DECL_BIN_OP_T  ,
int64   
 

void sc_dt::sc_fxval_fast::dump ostream &    = cout const
 

Definition at line 578 of file sc_fxval.cpp.

double sc_dt::sc_fxval_fast::from_string const char *    [static, protected]
 

Definition at line 660 of file sc_fxval.cpp.

References atoi(), s, SC_BIN, SC_BIN_SM, SC_BIN_US, SC_CSD, SC_DEC, SC_HEX, SC_HEX_SM, SC_HEX_US, sc_numrep, SC_OCT, SC_OCT_SM, SC_OCT_US, sc_dt::scfx_csd2tc(), sc_dt::scfx_exp_start(), SCFX_FAIL_IF_, sc_dt::scfx_is_digit(), sc_dt::scfx_is_inf(), sc_dt::scfx_is_nan(), sc_dt::scfx_parse_prefix(), sc_dt::scfx_parse_sign(), and sc_dt::scfx_to_digit().

bool sc_dt::sc_fxval_fast::get_bit int    const
 

Definition at line 596 of file sc_fxval.cpp.

References sc_dt::scfx_ieee_double::exponent(), sc_dt::scfx_ieee_double::is_inf(), sc_dt::scfx_ieee_double::is_nan(), sc_dt::scfx_ieee_double::is_normal(), sc_dt::scfx_ieee_double::is_zero(), sc_dt::scfx_ieee_double::mantissa0(), sc_dt::scfx_ieee_double::mantissa1(), and sc_dt::scfx_ieee_double::negative().

double sc_dt::sc_fxval_fast::get_val   [inline]
 

Definition at line 1591 of file sc_fxval.h.

References SC_FXVAL_FAST_OBSERVER_READ_.

Referenced by sc_dt::operator/().

bool sc_dt::sc_fxval_fast::is_inf   [inline]
 

Definition at line 2163 of file sc_fxval.h.

References sc_dt::scfx_ieee_double::is_inf(), and SC_FXVAL_FAST_OBSERVER_READ_.

bool sc_dt::sc_fxval_fast::is_nan   [inline]
 

Definition at line 2154 of file sc_fxval.h.

References sc_dt::scfx_ieee_double::is_nan(), and SC_FXVAL_FAST_OBSERVER_READ_.

bool sc_dt::sc_fxval_fast::is_neg   [inline]
 

Definition at line 2136 of file sc_fxval.h.

References sc_dt::scfx_ieee_double::negative(), and SC_FXVAL_FAST_OBSERVER_READ_.

bool sc_dt::sc_fxval_fast::is_normal   [inline]
 

Definition at line 2172 of file sc_fxval.h.

References sc_dt::scfx_ieee_double::is_normal(), sc_dt::scfx_ieee_double::is_subnormal(), sc_dt::scfx_ieee_double::is_zero(), and SC_FXVAL_FAST_OBSERVER_READ_.

bool sc_dt::sc_fxval_fast::is_zero   [inline]
 

Definition at line 2145 of file sc_fxval.h.

References sc_dt::scfx_ieee_double::is_zero(), and SC_FXVAL_FAST_OBSERVER_READ_.

sc_fxval_fast_observer * sc_dt::sc_fxval_fast::lock_observer   [protected]
 

Definition at line 637 of file sc_fxval.cpp.

References SC_ASSERT_.

sc_fxval_fast_observer* sc_dt::sc_fxval_fast::observer   [protected]
 

sc_dt::sc_fxval_fast::operator double   [inline]
 

Definition at line 2058 of file sc_fxval.h.

References SC_FXVAL_FAST_OBSERVER_READ_.

const sc_fxval_fast & sc_dt::sc_fxval_fast::operator+   [inline]
 

Definition at line 1619 of file sc_fxval.h.

sc_fxval_fast & sc_dt::sc_fxval_fast::operator++   [inline]
 

Definition at line 2036 of file sc_fxval.h.

References SC_FXVAL_FAST_OBSERVER_READ_, and SC_FXVAL_FAST_OBSERVER_WRITE_.

const sc_fxval_fast sc_dt::sc_fxval_fast::operator++ int    [inline]
 

Definition at line 2012 of file sc_fxval.h.

References sc_fxval_fast(), SC_FXVAL_FAST_OBSERVER_READ_, and SC_FXVAL_FAST_OBSERVER_WRITE_.

const sc_fxval_fast sc_dt::sc_fxval_fast::operator-   [inline]
 

Definition at line 1611 of file sc_fxval.h.

References sc_fxval_fast(), and SC_FXVAL_FAST_OBSERVER_READ_.

sc_fxval_fast & sc_dt::sc_fxval_fast::operator--   [inline]
 

Definition at line 2046 of file sc_fxval.h.

References SC_FXVAL_FAST_OBSERVER_READ_, and SC_FXVAL_FAST_OBSERVER_WRITE_.

const sc_fxval_fast sc_dt::sc_fxval_fast::operator-- int    [inline]
 

Definition at line 2024 of file sc_fxval.h.

References sc_fxval_fast(), SC_FXVAL_FAST_OBSERVER_READ_, and SC_FXVAL_FAST_OBSERVER_WRITE_.

void sc_dt::sc_fxval_fast::print ostream &    = cout const
 

Definition at line 564 of file sc_fxval.cpp.

References SC_DEC, sc_dt::SC_E, and sc_dt::to_string().

Referenced by sc_dt::operator<<().

bool sc_dt::sc_fxval_fast::rounding_flag   [inline]
 

Definition at line 2182 of file sc_fxval.h.

void sc_dt::sc_fxval_fast::scan istream &    = cin
 

Definition at line 570 of file sc_fxval.cpp.

References sc_string::c_str(), and s.

Referenced by sc_dt::operator>>().

void sc_dt::sc_fxval_fast::set_val double    [inline]
 

Definition at line 1600 of file sc_fxval.h.

References SC_FXVAL_FAST_OBSERVER_WRITE_.

Referenced by sc_dt::lshift(), sc_dt::neg(), and sc_dt::rshift().

const sc_string sc_dt::sc_fxval_fast::to_bin  
 

Definition at line 543 of file sc_fxval.cpp.

References SC_BIN, and sc_dt::SC_E.

const sc_string sc_dt::sc_fxval_fast::to_dec  
 

Definition at line 537 of file sc_fxval.cpp.

References SC_DEC, and sc_dt::SC_E.

double sc_dt::sc_fxval_fast::to_double   [inline]
 

Definition at line 2125 of file sc_fxval.h.

References SC_FXVAL_FAST_OBSERVER_READ_.

float sc_dt::sc_fxval_fast::to_float   [inline]
 

Definition at line 2117 of file sc_fxval.h.

References SC_FXVAL_FAST_OBSERVER_READ_.

const sc_string sc_dt::sc_fxval_fast::to_hex  
 

Definition at line 555 of file sc_fxval.cpp.

References sc_dt::SC_E, and SC_HEX.

int sc_dt::sc_fxval_fast::to_int   [inline]
 

Definition at line 2085 of file sc_fxval.h.

References SC_FXVAL_FAST_OBSERVER_READ_.

long sc_dt::sc_fxval_fast::to_long   [inline]
 

Definition at line 2101 of file sc_fxval.h.

References SC_FXVAL_FAST_OBSERVER_READ_.

const sc_string sc_dt::sc_fxval_fast::to_oct  
 

Definition at line 549 of file sc_fxval.cpp.

References sc_dt::SC_E, and SC_OCT.

short sc_dt::sc_fxval_fast::to_short   [inline]
 

Definition at line 2069 of file sc_fxval.h.

References SC_FXVAL_FAST_OBSERVER_READ_.

const sc_string sc_dt::sc_fxval_fast::to_string sc_numrep   ,
bool   ,
sc_fmt   
const
 

Definition at line 529 of file sc_fxval.cpp.

References sc_dt::sc_fmt, and sc_numrep.

const sc_string sc_dt::sc_fxval_fast::to_string sc_numrep   ,
sc_fmt   
const
 

Definition at line 523 of file sc_fxval.cpp.

References sc_dt::sc_fmt, and sc_numrep.

const sc_string sc_dt::sc_fxval_fast::to_string sc_fmt    const
 

Definition at line 517 of file sc_fxval.cpp.

References SC_DEC, and sc_dt::sc_fmt.

const sc_string sc_dt::sc_fxval_fast::to_string sc_numrep   ,
bool   
const
 

Definition at line 510 of file sc_fxval.cpp.

References sc_dt::SC_E, and sc_numrep.

const sc_string sc_dt::sc_fxval_fast::to_string sc_numrep    const
 

Definition at line 504 of file sc_fxval.cpp.

References sc_dt::SC_E, and sc_numrep.

const sc_string sc_dt::sc_fxval_fast::to_string  
 

Definition at line 498 of file sc_fxval.cpp.

References SC_DEC, and sc_dt::SC_E.

unsigned int sc_dt::sc_fxval_fast::to_uint   [inline]
 

Definition at line 2093 of file sc_fxval.h.

References SC_FXVAL_FAST_OBSERVER_READ_.

unsigned long sc_dt::sc_fxval_fast::to_ulong   [inline]
 

Definition at line 2109 of file sc_fxval.h.

References SC_FXVAL_FAST_OBSERVER_READ_.

unsigned short sc_dt::sc_fxval_fast::to_ushort   [inline]
 

Definition at line 2077 of file sc_fxval.h.

References SC_FXVAL_FAST_OBSERVER_READ_.

void sc_dt::sc_fxval_fast::unlock_observer sc_fxval_fast_observer   const [protected]
 

Definition at line 646 of file sc_fxval.cpp.

References SC_ASSERT_.


Friends And Related Function Documentation

void lshift sc_fxval_fast &    c,
const sc_fxval_fast &    a,
int    b
[friend]
 

Definition at line 1807 of file sc_fxval.h.

void neg sc_fxval_fast &    c,
const sc_fxval_fast &    a
[friend]
 

Definition at line 1630 of file sc_fxval.h.

const sc_fxval_fast operator/ const sc_fxval_fast &    a,
const sc_fxval_fast &    b
[friend]
 

Definition at line 1695 of file sc_fxval.h.

const sc_fxval_fast operator>> const sc_fxval_fast &    a,
int    b
[friend]
 

Definition at line 1734 of file sc_fxval.h.

void rshift sc_fxval_fast &    c,
const sc_fxval_fast &    a,
int    b
[friend]
 

Definition at line 1816 of file sc_fxval.h.

friend class sc_fxnum_fast [friend]
 

Definition at line 423 of file sc_fxval.h.


Member Data Documentation

uint64 const sc_uint_base& sc_dt::sc_fxval_fast::int
 

Definition at line 541 of file sc_fxval.h.


The documentation for this class was generated from the following files:
Generated on Fri Jan 14 08:32:36 2005 for SystemC2.1beta11(excludingMSLib)(IncludingSCV)\nProvidedby:www.openverificationfoundation.org by doxygen1.2.18