sc_dt::sc_fxval Class Reference

#include <sysc/datatypes/fx/sc_fxval.h>

Collaboration diagram for sc_dt::sc_fxval:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 sc_fxval (scfx_rep *)
 sc_fxval (sc_fxval_observer *=0)
 sc_fxval (int, sc_fxval_observer *=0)
 sc_fxval (unsigned int, sc_fxval_observer *=0)
 sc_fxval (long, sc_fxval_observer *=0)
 sc_fxval (unsigned long, sc_fxval_observer *=0)
 sc_fxval (double, sc_fxval_observer *=0)
 sc_fxval (const char *, sc_fxval_observer *=0)
 sc_fxval (const sc_fxval &, sc_fxval_observer *=0)
 sc_fxval (const sc_fxval_fast &, sc_fxval_observer *=0)
 sc_fxval (const sc_fxnum &, sc_fxval_observer *=0)
 sc_fxval (const sc_fxnum_fast &, sc_fxval_observer *=0)
 sc_fxval (int64, sc_fxval_observer *=0)
 sc_fxval (uint64, sc_fxval_observer *=0)
 sc_fxval (const sc_int_base &, sc_fxval_observer *=0)
 sc_fxval (const sc_uint_base &, sc_fxval_observer *=0)
 sc_fxval (const sc_signed &, sc_fxval_observer *=0)
 sc_fxval (const sc_unsigned &, sc_fxval_observer *=0)
 ~sc_fxval ()
const scfx_repget_rep () const
void set_rep (scfx_rep *)
const sc_fxval operator- () const
const sc_fxvaloperator+ () 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 operator<< (const sc_fxval &
const sc_fxval operator++ (int)
const sc_fxval operator-- (int)
sc_fxvaloperator++ ()
sc_fxvaloperator-- ()
 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
int64 to_int64 () const
uint64 to_uint64 () const
float to_float () const
double to_double () const
const std::string to_string () const
const std::string to_string (sc_numrep) const
const std::string to_string (sc_numrep, bool) const
const std::string to_string (sc_fmt) const
const std::string to_string (sc_numrep, sc_fmt) const
const std::string to_string (sc_numrep, bool, sc_fmt) const
const std::string to_dec () const
const std::string to_bin () const
const std::string to_oct () const
const std::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 (::std::ostream &=::std::cout) const
void scan (::std::istream &=::std::cin)
void dump (::std::ostream &=::std::cout) const
bool get_bit (int) const

Public Attributes

uint64 const sc_uint_baseint

Protected Member Functions

sc_fxval_observerobserver () const
sc_fxval_observerlock_observer () const
void unlock_observer (sc_fxval_observer *) const
void get_type (int &, int &, sc_enc &) const
const sc_fxval quantization (const scfx_params &, bool &) const
const sc_fxval overflow (const scfx_params &, bool &) const

Friends

class sc_fxnum
void neg (sc_fxval &, const sc_fxval &)
const sc_fxval operator/ (const sc_fxval &, const sc_fxval &)
const sc_fxval operator>> (const sc_fxval &, int)
void lshift (sc_fxval &, const sc_fxval &, int)
void rshift (sc_fxval &, const sc_fxval &, int)


Detailed Description

Definition at line 77 of file sc_fxval.h.


Constructor & Destructor Documentation

sc_dt::sc_fxval::sc_fxval ( scfx_rep a  )  [inline]

Definition at line 786 of file sc_fxval.h.

sc_dt::sc_fxval::sc_fxval ( sc_fxval_observer observer_ = 0  )  [inline, explicit]

Definition at line 795 of file sc_fxval.h.

sc_dt::sc_fxval::sc_fxval ( int  ,
sc_fxval_observer = 0 
)

sc_dt::sc_fxval::sc_fxval ( unsigned  int,
sc_fxval_observer = 0 
)

sc_dt::sc_fxval::sc_fxval ( long  ,
sc_fxval_observer = 0 
)

sc_dt::sc_fxval::sc_fxval ( unsigned  long,
sc_fxval_observer = 0 
)

sc_dt::sc_fxval::sc_fxval ( double  ,
sc_fxval_observer = 0 
)

sc_dt::sc_fxval::sc_fxval ( const char *  ,
sc_fxval_observer = 0 
)

sc_dt::sc_fxval::sc_fxval ( const sc_fxval a,
sc_fxval_observer observer_ = 0 
) [inline]

Definition at line 804 of file sc_fxval.h.

sc_dt::sc_fxval::sc_fxval ( const sc_fxval_fast ,
sc_fxval_observer = 0 
)

sc_dt::sc_fxval::sc_fxval ( const sc_fxnum a,
sc_fxval_observer observer_ = 0 
) [inline]

Definition at line 4734 of file sc_fxnum.h.

sc_dt::sc_fxval::sc_fxval ( const sc_fxnum_fast a,
sc_fxval_observer observer_ = 0 
) [inline]

Definition at line 4745 of file sc_fxnum.h.

sc_dt::sc_fxval::sc_fxval ( int64  ,
sc_fxval_observer = 0 
) [explicit]

sc_dt::sc_fxval::sc_fxval ( uint64  ,
sc_fxval_observer = 0 
) [explicit]

sc_dt::sc_fxval::sc_fxval ( const sc_int_base ,
sc_fxval_observer = 0 
) [explicit]

sc_dt::sc_fxval::sc_fxval ( const sc_uint_base ,
sc_fxval_observer = 0 
) [explicit]

sc_dt::sc_fxval::sc_fxval ( const sc_signed ,
sc_fxval_observer = 0 
) [explicit]

sc_dt::sc_fxval::sc_fxval ( const sc_unsigned ,
sc_fxval_observer = 0 
) [explicit]

sc_dt::sc_fxval::~sc_fxval (  )  [inline]

Definition at line 854 of file sc_fxval.h.


Member Function Documentation

sc_fxval_observer * sc_dt::sc_fxval::observer (  )  const [inline, protected]

Definition at line 778 of file sc_fxval.h.

const scfx_rep * sc_dt::sc_fxval::get_rep (  )  const [inline]

Definition at line 864 of file sc_fxval.h.

void sc_dt::sc_fxval::set_rep ( scfx_rep rep_  )  [inline]

Definition at line 873 of file sc_fxval.h.

const sc_fxval sc_dt::sc_fxval::operator- (  )  const [inline]

Definition at line 885 of file sc_fxval.h.

const sc_fxval & sc_dt::sc_fxval::operator+ (  )  const [inline]

Definition at line 893 of file sc_fxval.h.

sc_dt::sc_fxval::DECL_BIN_OP_T ( ,
int64   
)

uint64 sc_dt::sc_fxval::DECL_BIN_OP_T ( ,
const sc_int_base  
)

uint64 const sc_uint_base& sc_dt::sc_fxval::DECL_BIN_OP_T ( ,
const sc_signed  
) const

const sc_fxval sc_dt::sc_fxval::operator++ ( int   ) 

const sc_fxval sc_dt::sc_fxval::operator-- ( int   ) 

sc_fxval& sc_dt::sc_fxval::operator++ (  ) 

sc_fxval& sc_dt::sc_fxval::operator-- (  ) 

sc_dt::sc_fxval::operator double (  )  const

short sc_dt::sc_fxval::to_short (  )  const

unsigned short sc_dt::sc_fxval::to_ushort (  )  const

int sc_dt::sc_fxval::to_int (  )  const

unsigned int sc_dt::sc_fxval::to_uint (  )  const

long sc_dt::sc_fxval::to_long (  )  const

unsigned long sc_dt::sc_fxval::to_ulong (  )  const

int64 sc_dt::sc_fxval::to_int64 (  )  const

uint64 sc_dt::sc_fxval::to_uint64 (  )  const

float sc_dt::sc_fxval::to_float (  )  const

double sc_dt::sc_fxval::to_double (  )  const

const std::string sc_dt::sc_fxval::to_string (  )  const

Definition at line 65 of file sc_fxval.cpp.

const std::string sc_dt::sc_fxval::to_string ( sc_numrep  numrep  )  const

Definition at line 71 of file sc_fxval.cpp.

const std::string sc_dt::sc_fxval::to_string ( sc_numrep  numrep,
bool  w_prefix 
) const

Definition at line 77 of file sc_fxval.cpp.

const std::string sc_dt::sc_fxval::to_string ( sc_fmt  fmt  )  const

Definition at line 83 of file sc_fxval.cpp.

const std::string sc_dt::sc_fxval::to_string ( sc_numrep  numrep,
sc_fmt  fmt 
) const

Definition at line 89 of file sc_fxval.cpp.

const std::string sc_dt::sc_fxval::to_string ( sc_numrep  numrep,
bool  w_prefix,
sc_fmt  fmt 
) const

Definition at line 95 of file sc_fxval.cpp.

const std::string sc_dt::sc_fxval::to_dec (  )  const

Definition at line 102 of file sc_fxval.cpp.

const std::string sc_dt::sc_fxval::to_bin (  )  const

Definition at line 108 of file sc_fxval.cpp.

const std::string sc_dt::sc_fxval::to_oct (  )  const

Definition at line 114 of file sc_fxval.cpp.

const std::string sc_dt::sc_fxval::to_hex (  )  const

Definition at line 120 of file sc_fxval.cpp.

bool sc_dt::sc_fxval::is_neg (  )  const

bool sc_dt::sc_fxval::is_zero (  )  const

bool sc_dt::sc_fxval::is_nan (  )  const

bool sc_dt::sc_fxval::is_inf (  )  const

bool sc_dt::sc_fxval::is_normal (  )  const

bool sc_dt::sc_fxval::rounding_flag (  )  const

void sc_dt::sc_fxval::print ( ::std::ostream &  os = ::std::cout  )  const

Definition at line 129 of file sc_fxval.cpp.

void sc_dt::sc_fxval::scan ( ::std::istream &  is = ::std::cin  ) 

Definition at line 135 of file sc_fxval.cpp.

void sc_dt::sc_fxval::dump ( ::std::ostream &  os = ::std::cout  )  const

Definition at line 143 of file sc_fxval.cpp.

bool sc_dt::sc_fxval::get_bit ( int   )  const

sc_fxval_observer * sc_dt::sc_fxval::lock_observer (  )  const [protected]

Definition at line 163 of file sc_fxval.cpp.

void sc_dt::sc_fxval::unlock_observer ( sc_fxval_observer observer_  )  const [protected]

Definition at line 172 of file sc_fxval.cpp.

void sc_dt::sc_fxval::get_type ( int ,
int ,
sc_enc  
) const [protected]

const sc_fxval sc_dt::sc_fxval::quantization ( const scfx_params ,
bool &   
) const [protected]

const sc_fxval sc_dt::sc_fxval::overflow ( const scfx_params ,
bool &   
) const [protected]


Friends And Related Function Documentation

friend class sc_fxnum [friend]

Definition at line 80 of file sc_fxval.h.

void neg ( sc_fxval c,
const sc_fxval a 
) [friend]

Definition at line 904 of file sc_fxval.h.

const sc_fxval operator/ ( const sc_fxval a,
const sc_fxval b 
) [friend]

Definition at line 972 of file sc_fxval.h.

const sc_fxval operator>> ( const sc_fxval ,
int   
) [friend]

void lshift ( sc_fxval ,
const sc_fxval ,
int   
) [friend]

void rshift ( sc_fxval ,
const sc_fxval ,
int   
) [friend]


Member Data Documentation

Definition at line 207 of file sc_fxval.h.


The documentation for this class was generated from the following files:

Generated on Wed Jan 21 15:32:19 2009 for SystemC by  doxygen 1.5.5