SystemC  2.3.1
Accellera SystemC proof-of-concept library
Public Member Functions | Friends | List of all members
sc_dt::sc_fix Class Reference

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

Inheritance diagram for sc_dt::sc_fix:
Inheritance graph
[legend]
Collaboration diagram for sc_dt::sc_fix:
Collaboration graph
[legend]

Public Member Functions

 sc_fix (sc_fxnum_observer *=0)
 
 sc_fix (int, int, sc_fxnum_observer *=0)
 
 sc_fix (sc_q_mode, sc_o_mode, sc_fxnum_observer *=0)
 
 sc_fix (sc_q_mode, sc_o_mode, int, sc_fxnum_observer *=0)
 
 sc_fix (int, int, sc_q_mode, sc_o_mode, sc_fxnum_observer *=0)
 
 sc_fix (int, int, sc_q_mode, sc_o_mode, int, sc_fxnum_observer *=0)
 
 sc_fix (const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_fix (int, int, const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_fix (sc_q_mode, sc_o_mode, const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_fix (sc_q_mode, sc_o_mode, int, const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_fix (int, int, sc_q_mode, sc_o_mode, const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_fix (int, int, sc_q_mode, sc_o_mode, int, const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_fix (const sc_fxtype_params &, sc_fxnum_observer *=0)
 
 sc_fix (const sc_fxtype_params &, const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_fix (const sc_fix &)
 
const sc_fix operator~ () const
 
sc_fixoperator= (const sc_fix &)
 
const sc_fxval operator++ (int)
 
const sc_fxval operator-- (int)
 
sc_fixoperator++ ()
 
sc_fixoperator-- ()
 
- Public Member Functions inherited from sc_dt::sc_fxnum
const sc_fxval operator- () const
 
const sc_fxval operator+ () const
 
const sc_fxval operator++ (int)
 
const sc_fxval operator-- (int)
 
sc_fxnumoperator++ ()
 
sc_fxnumoperator-- ()
 
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_paramstype_params () const
 
const sc_fxcast_switchcast_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
 

Friends

void b_not (sc_fix &, const sc_fix &)
 
const sc_fix operator& (const sc_fix &, const sc_fix &)
 
const sc_fix operator& (const sc_fix &, const sc_fix_fast &)
 
const sc_fix operator& (const sc_fix_fast &, const sc_fix &)
 
const sc_fix operator| (const sc_fix &, const sc_fix &)
 
const sc_fix operator| (const sc_fix &, const sc_fix_fast &)
 
const sc_fix operator| (const sc_fix_fast &, const sc_fix &)
 
const sc_fix operator^ (const sc_fix &, const sc_fix &)
 
const sc_fix operator^ (const sc_fix &, const sc_fix_fast &)
 
const sc_fix operator^ (const sc_fix_fast &, const sc_fix &)
 
void b_and (sc_fix &, const sc_fix &, const sc_fix &)
 
void b_and (sc_fix &, const sc_fix &, const sc_fix_fast &)
 
void b_and (sc_fix &, const sc_fix_fast &, const sc_fix &)
 
void b_or (sc_fix &, const sc_fix &, const sc_fix &)
 
void b_or (sc_fix &, const sc_fix &, const sc_fix_fast &)
 
void b_or (sc_fix &, const sc_fix_fast &, const sc_fix &)
 
void b_xor (sc_fix &, const sc_fix &, const sc_fix &)
 
void b_xor (sc_fix &, const sc_fix &, const sc_fix_fast &)
 
void b_xor (sc_fix &, const sc_fix_fast &, const sc_fix &)
 

Additional Inherited Members

- Protected Member Functions inherited from sc_dt::sc_fxnum
sc_fxnum_observerobserver () const
 
void cast ()
 
 sc_fxnum (const sc_fxtype_params &, sc_enc, const sc_fxcast_switch &, sc_fxnum_observer *)
 
 ~sc_fxnum ()
 
const scfx_repget_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_observerlock_observer () const
 
void unlock_observer (sc_fxnum_observer *) const
 

Detailed Description

Definition at line 69 of file sc_fix.h.

Constructor & Destructor Documentation

sc_dt::sc_fix::sc_fix ( sc_fxnum_observer observer_ = 0)
inlineexplicit

Definition at line 535 of file sc_fix.h.

sc_dt::sc_fix::sc_fix ( int  wl_,
int  iwl_,
sc_fxnum_observer observer_ = 0 
)
inline

Definition at line 543 of file sc_fix.h.

sc_dt::sc_fix::sc_fix ( sc_q_mode  qm,
sc_o_mode  om,
sc_fxnum_observer observer_ = 0 
)
inline

Definition at line 552 of file sc_fix.h.

sc_dt::sc_fix::sc_fix ( sc_q_mode  qm,
sc_o_mode  om,
int  nb,
sc_fxnum_observer observer_ = 0 
)
inline

Definition at line 561 of file sc_fix.h.

sc_dt::sc_fix::sc_fix ( int  wl_,
int  iwl_,
sc_q_mode  qm,
sc_o_mode  om,
sc_fxnum_observer observer_ = 0 
)
inline

Definition at line 570 of file sc_fix.h.

sc_dt::sc_fix::sc_fix ( int  wl_,
int  iwl_,
sc_q_mode  qm,
sc_o_mode  om,
int  nb,
sc_fxnum_observer observer_ = 0 
)
inline

Definition at line 579 of file sc_fix.h.

sc_dt::sc_fix::sc_fix ( const sc_fxcast_switch cast_sw,
sc_fxnum_observer observer_ = 0 
)
inlineexplicit

Definition at line 588 of file sc_fix.h.

sc_dt::sc_fix::sc_fix ( int  wl_,
int  iwl_,
const sc_fxcast_switch cast_sw,
sc_fxnum_observer observer_ = 0 
)
inline

Definition at line 597 of file sc_fix.h.

sc_dt::sc_fix::sc_fix ( sc_q_mode  qm,
sc_o_mode  om,
const sc_fxcast_switch cast_sw,
sc_fxnum_observer observer_ = 0 
)
inline

Definition at line 607 of file sc_fix.h.

sc_dt::sc_fix::sc_fix ( sc_q_mode  qm,
sc_o_mode  om,
int  nb,
const sc_fxcast_switch cast_sw,
sc_fxnum_observer observer_ = 0 
)
inline

Definition at line 617 of file sc_fix.h.

sc_dt::sc_fix::sc_fix ( int  wl_,
int  iwl_,
sc_q_mode  qm,
sc_o_mode  om,
const sc_fxcast_switch cast_sw,
sc_fxnum_observer observer_ = 0 
)
inline

Definition at line 627 of file sc_fix.h.

sc_dt::sc_fix::sc_fix ( int  wl_,
int  iwl_,
sc_q_mode  qm,
sc_o_mode  om,
int  nb,
const sc_fxcast_switch cast_sw,
sc_fxnum_observer observer_ = 0 
)
inline

Definition at line 637 of file sc_fix.h.

sc_dt::sc_fix::sc_fix ( const sc_fxtype_params type_params,
sc_fxnum_observer observer_ = 0 
)
inlineexplicit

Definition at line 647 of file sc_fix.h.

sc_dt::sc_fix::sc_fix ( const sc_fxtype_params type_params,
const sc_fxcast_switch cast_sw,
sc_fxnum_observer observer_ = 0 
)
inline

Definition at line 656 of file sc_fix.h.

sc_dt::sc_fix::sc_fix ( const sc_fix a)
inline

Definition at line 1011 of file sc_fix.h.

Member Function Documentation

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

Definition at line 1205 of file sc_fix.h.

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

Definition at line 1219 of file sc_fix.h.

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

Definition at line 1212 of file sc_fix.h.

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

Definition at line 1227 of file sc_fix.h.

sc_fix & sc_dt::sc_fix::operator= ( const sc_fix a)
inline

Definition at line 1120 of file sc_fix.h.

const sc_fix sc_dt::sc_fix::operator~ ( ) const
inline

Definition at line 1024 of file sc_fix.h.

Friends And Related Function Documentation

void b_and ( sc_fix ,
const sc_fix ,
const sc_fix  
)
friend
void b_and ( sc_fix ,
const sc_fix ,
const sc_fix_fast  
)
friend
void b_and ( sc_fix ,
const sc_fix_fast ,
const sc_fix  
)
friend
void b_not ( sc_fix c,
const sc_fix a 
)
friend

Definition at line 1040 of file sc_fix.h.

void b_or ( sc_fix ,
const sc_fix ,
const sc_fix  
)
friend
void b_or ( sc_fix ,
const sc_fix ,
const sc_fix_fast  
)
friend
void b_or ( sc_fix ,
const sc_fix_fast ,
const sc_fix  
)
friend
void b_xor ( sc_fix ,
const sc_fix ,
const sc_fix  
)
friend
void b_xor ( sc_fix ,
const sc_fix ,
const sc_fix_fast  
)
friend
void b_xor ( sc_fix ,
const sc_fix_fast ,
const sc_fix  
)
friend
const sc_fix operator& ( const sc_fix ,
const sc_fix  
)
friend
const sc_fix operator& ( const sc_fix ,
const sc_fix_fast  
)
friend
const sc_fix operator& ( const sc_fix_fast ,
const sc_fix  
)
friend
const sc_fix operator^ ( const sc_fix ,
const sc_fix  
)
friend
const sc_fix operator^ ( const sc_fix ,
const sc_fix_fast  
)
friend
const sc_fix operator^ ( const sc_fix_fast ,
const sc_fix  
)
friend
const sc_fix operator| ( const sc_fix ,
const sc_fix  
)
friend
const sc_fix operator| ( const sc_fix ,
const sc_fix_fast  
)
friend
const sc_fix operator| ( const sc_fix_fast ,
const sc_fix  
)
friend

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