SystemC  Recoding Infrastructure for SystemC v0.6.3 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
sc_dt::sc_fxval Class Reference

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

Collaboration diagram for sc_dt::sc_fxval:
Collaboration graph
[legend]

Public Member Functions

 sc_fxval (scfx_rep *)
 
 sc_fxval (sc_fxval_observer *=0)
 
SCFX_EXPLICIT_ sc_fxval (int, sc_fxval_observer *=0)
 
SCFX_EXPLICIT_ sc_fxval (unsigned int, sc_fxval_observer *=0)
 
SCFX_EXPLICIT_ sc_fxval (long, sc_fxval_observer *=0)
 
SCFX_EXPLICIT_ sc_fxval (unsigned long, sc_fxval_observer *=0)
 
SCFX_EXPLICIT_ sc_fxval (float, sc_fxval_observer *=0)
 
SCFX_EXPLICIT_ sc_fxval (double, sc_fxval_observer *=0)
 
SCFX_EXPLICIT_ 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)
 
SCFX_EXPLICIT_OTHER_ sc_fxval (int64, sc_fxval_observer *=0)
 
SCFX_EXPLICIT_OTHER_ sc_fxval (uint64, sc_fxval_observer *=0)
 
SCFX_EXPLICIT_OTHER_ sc_fxval (const sc_int_base &, sc_fxval_observer *=0)
 
SCFX_EXPLICIT_OTHER_ sc_fxval (const sc_uint_base &, sc_fxval_observer *=0)
 
SCFX_EXPLICIT_OTHER_ sc_fxval (const sc_signed &, sc_fxval_observer *=0)
 
SCFX_EXPLICIT_OTHER_ 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_base int
 

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 93 of file sc_fxval.h.

Constructor & Destructor Documentation

sc_dt::sc_fxval::sc_fxval ( scfx_rep a)
inlineexplicit

Definition at line 782 of file sc_fxval.h.

sc_dt::sc_fxval::sc_fxval ( sc_fxval_observer observer_ = 0)
inlineexplicit

Definition at line 791 of file sc_fxval.h.

SCFX_EXPLICIT_ sc_dt::sc_fxval::sc_fxval ( int  ,
sc_fxval_observer = 0 
)
SCFX_EXPLICIT_ sc_dt::sc_fxval::sc_fxval ( unsigned  int,
sc_fxval_observer = 0 
)
SCFX_EXPLICIT_ sc_dt::sc_fxval::sc_fxval ( long  ,
sc_fxval_observer = 0 
)
SCFX_EXPLICIT_ sc_dt::sc_fxval::sc_fxval ( unsigned  long,
sc_fxval_observer = 0 
)
SCFX_EXPLICIT_ sc_dt::sc_fxval::sc_fxval ( float  ,
sc_fxval_observer = 0 
)
SCFX_EXPLICIT_ sc_dt::sc_fxval::sc_fxval ( double  ,
sc_fxval_observer = 0 
)
SCFX_EXPLICIT_ 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 800 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 4772 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 4783 of file sc_fxnum.h.

SCFX_EXPLICIT_OTHER_ sc_dt::sc_fxval::sc_fxval ( int64  ,
sc_fxval_observer = 0 
)
SCFX_EXPLICIT_OTHER_ sc_dt::sc_fxval::sc_fxval ( uint64  ,
sc_fxval_observer = 0 
)
SCFX_EXPLICIT_OTHER_ sc_dt::sc_fxval::sc_fxval ( const sc_int_base ,
sc_fxval_observer = 0 
)
SCFX_EXPLICIT_OTHER_ sc_dt::sc_fxval::sc_fxval ( const sc_uint_base ,
sc_fxval_observer = 0 
)
SCFX_EXPLICIT_OTHER_ sc_dt::sc_fxval::sc_fxval ( const sc_signed ,
sc_fxval_observer = 0 
)
SCFX_EXPLICIT_OTHER_ sc_dt::sc_fxval::sc_fxval ( const sc_unsigned ,
sc_fxval_observer = 0 
)
sc_dt::sc_fxval::~sc_fxval ( )
inline

Definition at line 851 of file sc_fxval.h.

Member Function Documentation

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
void sc_dt::sc_fxval::dump ( ::std::ostream &  = ::std::cout) const
bool sc_dt::sc_fxval::get_bit ( int  i) const
inline

Definition at line 1486 of file sc_fxval.h.

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

Definition at line 861 of file sc_fxval.h.

void sc_dt::sc_fxval::get_type ( int wl,
int iwl,
sc_enc enc 
) const
inlineprotected

Definition at line 1496 of file sc_fxval.h.

bool sc_dt::sc_fxval::is_inf ( ) const
inline

Definition at line 1460 of file sc_fxval.h.

bool sc_dt::sc_fxval::is_nan ( ) const
inline

Definition at line 1452 of file sc_fxval.h.

bool sc_dt::sc_fxval::is_neg ( ) const
inline

Definition at line 1436 of file sc_fxval.h.

bool sc_dt::sc_fxval::is_normal ( ) const
inline

Definition at line 1468 of file sc_fxval.h.

bool sc_dt::sc_fxval::is_zero ( ) const
inline

Definition at line 1444 of file sc_fxval.h.

sc_fxval_observer* sc_dt::sc_fxval::lock_observer ( ) const
protected
sc_fxval_observer * sc_dt::sc_fxval::observer ( ) const
inlineprotected

Definition at line 774 of file sc_fxval.h.

sc_dt::sc_fxval::operator double ( ) const
inline

Definition at line 1342 of file sc_fxval.h.

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

Definition at line 890 of file sc_fxval.h.

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

Definition at line 1306 of file sc_fxval.h.

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

Definition at line 1324 of file sc_fxval.h.

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

Definition at line 882 of file sc_fxval.h.

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

Definition at line 1315 of file sc_fxval.h.

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

Definition at line 1332 of file sc_fxval.h.

const sc_fxval sc_dt::sc_fxval::overflow ( const scfx_params params,
bool &  o_flag 
) const
inlineprotected

Definition at line 1511 of file sc_fxval.h.

void sc_dt::sc_fxval::print ( ::std::ostream &  = ::std::cout) const
const sc_fxval sc_dt::sc_fxval::quantization ( const scfx_params params,
bool &  q_flag 
) const
inlineprotected

Definition at line 1504 of file sc_fxval.h.

bool sc_dt::sc_fxval::rounding_flag ( ) const
inline

Definition at line 1477 of file sc_fxval.h.

void sc_dt::sc_fxval::scan ( ::std::istream &  = ::std::cin)
void sc_dt::sc_fxval::set_rep ( scfx_rep rep_)
inline

Definition at line 870 of file sc_fxval.h.

const std::string sc_dt::sc_fxval::to_bin ( ) const
const std::string sc_dt::sc_fxval::to_dec ( ) const
double sc_dt::sc_fxval::to_double ( ) const
inline

Definition at line 1425 of file sc_fxval.h.

float sc_dt::sc_fxval::to_float ( ) const
inline

Definition at line 1417 of file sc_fxval.h.

const std::string sc_dt::sc_fxval::to_hex ( ) const
int sc_dt::sc_fxval::to_int ( ) const
inline

Definition at line 1369 of file sc_fxval.h.

int64 sc_dt::sc_fxval::to_int64 ( ) const
inline

Definition at line 1377 of file sc_fxval.h.

long sc_dt::sc_fxval::to_long ( ) const
inline

Definition at line 1393 of file sc_fxval.h.

const std::string sc_dt::sc_fxval::to_oct ( ) const
short sc_dt::sc_fxval::to_short ( ) const
inline

Definition at line 1353 of file sc_fxval.h.

const std::string sc_dt::sc_fxval::to_string ( ) const
const std::string sc_dt::sc_fxval::to_string ( sc_numrep  ) const
const std::string sc_dt::sc_fxval::to_string ( sc_numrep  ,
bool   
) const
const std::string sc_dt::sc_fxval::to_string ( sc_fmt  ) const
const std::string sc_dt::sc_fxval::to_string ( sc_numrep  ,
sc_fmt   
) const
const std::string sc_dt::sc_fxval::to_string ( sc_numrep  ,
bool  ,
sc_fmt   
) const
unsigned int sc_dt::sc_fxval::to_uint ( ) const
inline

Definition at line 1401 of file sc_fxval.h.

uint64 sc_dt::sc_fxval::to_uint64 ( ) const
inline

Definition at line 1385 of file sc_fxval.h.

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

Definition at line 1409 of file sc_fxval.h.

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

Definition at line 1361 of file sc_fxval.h.

void sc_dt::sc_fxval::unlock_observer ( sc_fxval_observer ) const
protected

Friends And Related Function Documentation

void lshift ( sc_fxval c,
const sc_fxval a,
int  b 
)
friend

Definition at line 1088 of file sc_fxval.h.

void neg ( sc_fxval c,
const sc_fxval a 
)
friend

Definition at line 901 of file sc_fxval.h.

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

Definition at line 970 of file sc_fxval.h.

const sc_fxval operator>> ( const sc_fxval a,
int  b 
)
friend

Definition at line 1010 of file sc_fxval.h.

void rshift ( sc_fxval c,
const sc_fxval a,
int  b 
)
friend

Definition at line 1098 of file sc_fxval.h.

friend class sc_fxnum
friend

Definition at line 96 of file sc_fxval.h.

Member Data Documentation

uint64 const sc_uint_base sc_dt::sc_fxval::int

Definition at line 210 of file sc_fxval.h.


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