sc_dt::sc_fxnum Class Reference
#include <sysc/datatypes/fx/sc_fxnum.h>
List of all members.
Public Member Functions |
const sc_fxval | operator- () const |
const sc_fxval | operator+ () const |
const sc_fxval | operator++ (int) |
const sc_fxval | operator-- (int) |
sc_fxnum & | operator++ () |
sc_fxnum & | operator-- () |
const sc_fxnum_bitref | operator[] (int) const |
sc_fxnum_bitref | operator[] (int) |
const sc_fxnum_bitref | bit (int) const |
sc_fxnum_bitref | bit (int) |
const sc_fxnum_subref | operator() (int, int) const |
sc_fxnum_subref | operator() (int, int) |
const sc_fxnum_subref | range (int, int) const |
sc_fxnum_subref | range (int, int) |
const sc_fxnum_subref | operator() () const |
sc_fxnum_subref | operator() () |
const sc_fxnum_subref | range () const |
sc_fxnum_subref | range () |
| 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_normal () const |
bool | quantization_flag () const |
bool | overflow_flag () const |
const sc_fxval | value () const |
int | wl () const |
int | iwl () const |
sc_q_mode | q_mode () const |
sc_o_mode | o_mode () const |
int | n_bits () const |
const sc_fxtype_params & | type_params () const |
const sc_fxcast_switch & | cast_switch () const |
void | print (::std::ostream &=::std::cout) const |
void | scan (::std::istream &=::std::cin) |
void | dump (::std::ostream &=::std::cout) const |
void | observer_read () const |
bool | get_bit (int) const |
Protected Member Functions |
sc_fxnum_observer * | observer () const |
void | cast () |
| sc_fxnum (const sc_fxtype_params &, sc_enc, const sc_fxcast_switch &, sc_fxnum_observer *) |
| ~sc_fxnum () |
const scfx_rep * | get_rep () const |
bool | set_bit (int, bool) |
bool | get_slice (int, int, sc_bv_base &) const |
bool | set_slice (int, int, const sc_bv_base &) |
sc_fxnum_observer * | lock_observer () const |
void | unlock_observer (sc_fxnum_observer *) const |
Friends |
class | sc_fxval |
class | sc_fxnum_bitref |
class | sc_fxnum_subref |
class | sc_fxnum_fast_bitref |
class | sc_fxnum_fast_subref |
class | sc_core::vcd_sc_fxnum_trace |
class | sc_core::wif_sc_fxnum_trace |
void | neg (sc_fxval &, const sc_fxnum &) |
void | neg (sc_fxnum &, const sc_fxnum &) |
const sc_fxval | operator/ (const sc_fxnum &, const sc_fxnum &) |
const sc_fxval | operator<< (const sc_fxnum &, int) |
const sc_fxval | operator>> (const sc_fxnum &, int) |
void | lshift (sc_fxval &, const sc_fxnum &, int) |
void | rshift (sc_fxval &, const sc_fxnum &, int) |
void | lshift (sc_fxnum &, const sc_fxnum &, int) |
void | rshift (sc_fxnum &, const sc_fxnum &, int) |
Detailed Description
Definition at line 561 of file sc_fxnum.h.
Constructor & Destructor Documentation
sc_dt::sc_fxnum::~sc_fxnum |
( |
|
) |
[inline, protected] |
Member Function Documentation
void sc_dt::sc_fxnum::cast |
( |
|
) |
[inline, protected] |
void sc_dt::sc_fxnum::dump |
( |
::std::ostream & |
= ::std::cout |
) |
const |
bool sc_dt::sc_fxnum::get_bit |
( |
int |
i |
) |
const [inline] |
const scfx_rep * sc_dt::sc_fxnum::get_rep |
( |
|
) |
const [inline, protected] |
bool sc_dt::sc_fxnum::get_slice |
( |
int |
i, |
|
|
int |
j, |
|
|
sc_bv_base & |
bv | |
|
) |
| | const [inline, protected] |
bool sc_dt::sc_fxnum::is_neg |
( |
|
) |
const [inline] |
bool sc_dt::sc_fxnum::is_normal |
( |
|
) |
const [inline] |
bool sc_dt::sc_fxnum::is_zero |
( |
|
) |
const [inline] |
int sc_dt::sc_fxnum::iwl |
( |
|
) |
const [inline] |
int sc_dt::sc_fxnum::n_bits |
( |
|
) |
const [inline] |
sc_o_mode sc_dt::sc_fxnum::o_mode |
( |
|
) |
const [inline] |
void sc_dt::sc_fxnum::observer_read |
( |
|
) |
const [inline] |
sc_dt::sc_fxnum::operator double |
( |
|
) |
const [inline] |
const sc_fxnum_subref sc_dt::sc_fxnum::operator() |
( |
int |
i, |
|
|
int |
j | |
|
) |
| | const [inline] |
const sc_fxval sc_dt::sc_fxnum::operator+ |
( |
|
) |
const [inline] |
sc_fxnum & sc_dt::sc_fxnum::operator++ |
( |
|
) |
[inline] |
Reimplemented in sc_dt::sc_fix, sc_dt::sc_fixed< W, I, Q, O, N >, sc_dt::sc_ufix, and sc_dt::sc_ufixed< W, I, Q, O, N >.
Definition at line 3290 of file sc_fxnum.h.
const sc_fxval sc_dt::sc_fxnum::operator++ |
( |
int |
|
) |
[inline] |
Reimplemented in sc_dt::sc_fix, sc_dt::sc_fixed< W, I, Q, O, N >, sc_dt::sc_ufix, and sc_dt::sc_ufixed< W, I, Q, O, N >.
Definition at line 3272 of file sc_fxnum.h.
const sc_fxval sc_dt::sc_fxnum::operator- |
( |
|
) |
const [inline] |
sc_fxnum & sc_dt::sc_fxnum::operator-- |
( |
|
) |
[inline] |
Reimplemented in sc_dt::sc_fix, sc_dt::sc_fixed< W, I, Q, O, N >, sc_dt::sc_ufix, and sc_dt::sc_ufixed< W, I, Q, O, N >.
Definition at line 3298 of file sc_fxnum.h.
const sc_fxval sc_dt::sc_fxnum::operator-- |
( |
int |
|
) |
[inline] |
Reimplemented in sc_dt::sc_fix, sc_dt::sc_fixed< W, I, Q, O, N >, sc_dt::sc_ufix, and sc_dt::sc_ufixed< W, I, Q, O, N >.
Definition at line 3281 of file sc_fxnum.h.
bool sc_dt::sc_fxnum::overflow_flag |
( |
|
) |
const [inline] |
void sc_dt::sc_fxnum::print |
( |
::std::ostream & |
= ::std::cout |
) |
const |
sc_q_mode sc_dt::sc_fxnum::q_mode |
( |
|
) |
const [inline] |
bool sc_dt::sc_fxnum::quantization_flag |
( |
|
) |
const [inline] |
const sc_fxnum_subref sc_dt::sc_fxnum::range |
( |
int |
i, |
|
|
int |
j | |
|
) |
| | const [inline] |
void sc_dt::sc_fxnum::scan |
( |
::std::istream & |
= ::std::cin |
) |
|
bool sc_dt::sc_fxnum::set_bit |
( |
int |
i, |
|
|
bool |
high | |
|
) |
| | [inline, protected] |
bool sc_dt::sc_fxnum::set_slice |
( |
int |
i, |
|
|
int |
j, |
|
|
const sc_bv_base & |
bv | |
|
) |
| | [inline, protected] |
const std::string sc_dt::sc_fxnum::to_bin |
( |
|
) |
const |
const std::string sc_dt::sc_fxnum::to_dec |
( |
|
) |
const |
double sc_dt::sc_fxnum::to_double |
( |
|
) |
const [inline] |
float sc_dt::sc_fxnum::to_float |
( |
|
) |
const [inline] |
const std::string sc_dt::sc_fxnum::to_hex |
( |
|
) |
const |
int sc_dt::sc_fxnum::to_int |
( |
|
) |
const [inline] |
int64 sc_dt::sc_fxnum::to_int64 |
( |
|
) |
const [inline] |
long sc_dt::sc_fxnum::to_long |
( |
|
) |
const [inline] |
const std::string sc_dt::sc_fxnum::to_oct |
( |
|
) |
const |
short sc_dt::sc_fxnum::to_short |
( |
|
) |
const [inline] |
const std::string sc_dt::sc_fxnum::to_string |
( |
sc_numrep |
, |
|
|
bool |
, |
|
|
sc_fmt |
| |
|
) |
| | const |
const std::string sc_dt::sc_fxnum::to_string |
( |
sc_fmt |
|
) |
const |
const std::string sc_dt::sc_fxnum::to_string |
( |
sc_numrep |
, |
|
|
bool |
| |
|
) |
| | const |
const std::string sc_dt::sc_fxnum::to_string |
( |
sc_numrep |
|
) |
const |
const std::string sc_dt::sc_fxnum::to_string |
( |
|
) |
const |
unsigned int sc_dt::sc_fxnum::to_uint |
( |
|
) |
const [inline] |
uint64 sc_dt::sc_fxnum::to_uint64 |
( |
|
) |
const [inline] |
unsigned long sc_dt::sc_fxnum::to_ulong |
( |
|
) |
const [inline] |
unsigned short sc_dt::sc_fxnum::to_ushort |
( |
|
) |
const [inline] |
const sc_fxval sc_dt::sc_fxnum::value |
( |
|
) |
const [inline] |
int sc_dt::sc_fxnum::wl |
( |
|
) |
const [inline] |
Friends And Related Function Documentation
friend class sc_core::vcd_sc_fxnum_trace [friend] |
friend class sc_core::wif_sc_fxnum_trace [friend] |
The documentation for this class was generated from the following file: