sc_dt::sc_int_base Class Reference

#include <sysc/datatypes/int/sc_int_base.h>

Inheritance diagram for sc_dt::sc_int_base:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 sc_int_base (int w=sc_length_param().len())
 sc_int_base (int_type v, int w)
 sc_int_base (const sc_int_base &a)
 sc_int_base (const sc_int_subref_r &a)
template<class T>
 sc_int_base (const sc_generic_base< T > &a)
 sc_int_base (const sc_signed &a)
 sc_int_base (const sc_unsigned &a)
 sc_int_base (const sc_bv_base &v)
 sc_int_base (const sc_lv_base &v)
 sc_int_base (const sc_uint_subref_r &v)
 sc_int_base (const sc_signed_subref_r &v)
 sc_int_base (const sc_unsigned_subref_r &v)
virtual ~sc_int_base ()
sc_int_baseoperator= (int_type v)
sc_int_baseoperator= (const sc_int_base &a)
sc_int_baseoperator= (const sc_int_subref_r &a)
template<class T>
sc_int_baseoperator= (const sc_generic_base< T > &a)
sc_int_baseoperator= (const sc_signed &a)
sc_int_baseoperator= (const sc_unsigned &a)
sc_int_baseoperator= (const sc_bv_base &a)
sc_int_baseoperator= (const sc_lv_base &a)
sc_int_baseoperator= (const char *a)
sc_int_baseoperator= (unsigned long a)
sc_int_baseoperator= (long a)
sc_int_baseoperator= (unsigned int a)
sc_int_baseoperator= (int a)
sc_int_baseoperator= (uint64 a)
sc_int_baseoperator= (double a)
sc_int_baseoperator+= (int_type v)
sc_int_baseoperator-= (int_type v)
sc_int_baseoperator*= (int_type v)
sc_int_baseoperator/= (int_type v)
sc_int_baseoperator%= (int_type v)
sc_int_baseoperator &= (int_type v)
sc_int_baseoperator|= (int_type v)
sc_int_baseoperator^= (int_type v)
sc_int_baseoperator<<= (int_type v)
sc_int_baseoperator>>= (int_type v)
sc_int_baseoperator++ ()
const sc_int_base operator++ (int)
sc_int_baseoperator-- ()
const sc_int_base operator-- (int)
sc_int_bitrefoperator[] (int i)
const sc_int_bitref_roperator[] (int i) const
sc_int_bitrefbit (int i)
const sc_int_bitref_rbit (int i) const
sc_int_subrefoperator() (int left, int right)
const sc_int_subref_roperator() (int left, int right) const
sc_int_subrefrange (int left, int right)
const sc_int_subref_rrange (int left, int right) const
bool test (int i) const
void set (int i)
void set (int i, bool v)
int length () const
virtual int concat_length (bool *xz_present_p) const
virtual bool concat_get_ctrl (sc_digit *dst_p, int low_i) const
virtual bool concat_get_data (sc_digit *dst_p, int low_i) const
virtual uint64 concat_get_uint64 () const
virtual void concat_set (int64 src, int low_i)
virtual void concat_set (const sc_signed &src, int low_i)
virtual void concat_set (const sc_unsigned &src, int low_i)
virtual void concat_set (uint64 src, int low_i)
bool and_reduce () const
bool nand_reduce () const
bool or_reduce () const
bool nor_reduce () const
bool xor_reduce () const
bool xnor_reduce () const
 operator int_type () const
int_type value () 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
double to_double () const
long long_low () const
long long_high () const
const std::string to_string (sc_numrep numrep=SC_DEC) const
const std::string to_string (sc_numrep numrep, bool w_prefix) const
void print (::std::ostream &os=::std::cout) const
void scan (::std::istream &is=::std::cin)

Protected Attributes

int_type m_val
int m_len
int m_ulen

Friends

class sc_int_bitref_r
class sc_int_bitref
class sc_int_subref_r
class sc_int_subref
bool operator== (const sc_int_base &a, const sc_int_base &b)
bool operator!= (const sc_int_base &a, const sc_int_base &b)
bool operator< (const sc_int_base &a, const sc_int_base &b)
bool operator<= (const sc_int_base &a, const sc_int_base &b)
bool operator> (const sc_int_base &a, const sc_int_base &b)
bool operator>= (const sc_int_base &a, const sc_int_base &b)


Detailed Description

Definition at line 526 of file sc_int_base.h.


Constructor & Destructor Documentation

sc_dt::sc_int_base::sc_int_base ( int  w = sc_length_param().len()  )  [inline, explicit]

Definition at line 563 of file sc_int_base.h.

sc_dt::sc_int_base::sc_int_base ( int_type  v,
int  w 
) [inline]

Definition at line 567 of file sc_int_base.h.

sc_dt::sc_int_base::sc_int_base ( const sc_int_base a  )  [inline]

Definition at line 571 of file sc_int_base.h.

sc_dt::sc_int_base::sc_int_base ( const sc_int_subref_r a  )  [inline, explicit]

Definition at line 575 of file sc_int_base.h.

template<class T>
sc_dt::sc_int_base::sc_int_base ( const sc_generic_base< T > &  a  )  [inline, explicit]

Definition at line 580 of file sc_int_base.h.

sc_dt::sc_int_base::sc_int_base ( const sc_signed a  )  [explicit]

Definition at line 425 of file sc_int_base.cpp.

sc_dt::sc_int_base::sc_int_base ( const sc_unsigned a  )  [explicit]

Definition at line 439 of file sc_int_base.cpp.

sc_dt::sc_int_base::sc_int_base ( const sc_bv_base v  )  [explicit]

Definition at line 394 of file sc_int_base.cpp.

sc_dt::sc_int_base::sc_int_base ( const sc_lv_base v  )  [explicit]

Definition at line 400 of file sc_int_base.cpp.

sc_dt::sc_int_base::sc_int_base ( const sc_uint_subref_r v  )  [explicit]

Definition at line 406 of file sc_int_base.cpp.

sc_dt::sc_int_base::sc_int_base ( const sc_signed_subref_r v  )  [explicit]

Definition at line 412 of file sc_int_base.cpp.

sc_dt::sc_int_base::sc_int_base ( const sc_unsigned_subref_r v  )  [explicit]

Definition at line 418 of file sc_int_base.cpp.

virtual sc_dt::sc_int_base::~sc_int_base (  )  [inline, virtual]

Definition at line 597 of file sc_int_base.h.


Member Function Documentation

sc_int_base& sc_dt::sc_int_base::operator= ( int_type  v  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 602 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator= ( const sc_int_base a  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 605 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator= ( const sc_int_subref_r a  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 608 of file sc_int_base.h.

template<class T>
sc_int_base& sc_dt::sc_int_base::operator= ( const sc_generic_base< T > &  a  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 612 of file sc_int_base.h.

sc_int_base & sc_dt::sc_int_base::operator= ( const sc_signed a  ) 

Reimplemented in sc_dt::sc_int< W >.

Definition at line 457 of file sc_int_base.cpp.

sc_int_base & sc_dt::sc_int_base::operator= ( const sc_unsigned a  ) 

Reimplemented in sc_dt::sc_int< W >.

Definition at line 474 of file sc_int_base.cpp.

sc_int_base & sc_dt::sc_int_base::operator= ( const sc_bv_base a  ) 

Reimplemented in sc_dt::sc_int< W >.

Definition at line 491 of file sc_int_base.cpp.

sc_int_base & sc_dt::sc_int_base::operator= ( const sc_lv_base a  ) 

Reimplemented in sc_dt::sc_int< W >.

Definition at line 507 of file sc_int_base.cpp.

sc_int_base & sc_dt::sc_int_base::operator= ( const char *  a  ) 

Reimplemented in sc_dt::sc_int< W >.

Definition at line 523 of file sc_int_base.cpp.

sc_int_base& sc_dt::sc_int_base::operator= ( unsigned long  a  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 630 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator= ( long  a  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 633 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator= ( unsigned int  a  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 636 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator= ( int  a  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 639 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator= ( uint64  a  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 642 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator= ( double  a  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 645 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator+= ( int_type  v  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 651 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator-= ( int_type  v  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 654 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator*= ( int_type  v  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 657 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator/= ( int_type  v  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 660 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator%= ( int_type  v  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 663 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator &= ( int_type  v  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 669 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator|= ( int_type  v  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 672 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator^= ( int_type  v  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 675 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator<<= ( int_type  v  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 679 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator>>= ( int_type  v  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 682 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator++ (  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 688 of file sc_int_base.h.

const sc_int_base sc_dt::sc_int_base::operator++ ( int   )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 691 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator-- (  )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 694 of file sc_int_base.h.

const sc_int_base sc_dt::sc_int_base::operator-- ( int   )  [inline]

Reimplemented in sc_dt::sc_int< W >.

Definition at line 697 of file sc_int_base.h.

sc_int_bitref & sc_dt::sc_int_base::operator[] ( int  i  )  [inline]

Definition at line 1217 of file sc_int_base.h.

const sc_int_bitref_r & sc_dt::sc_int_base::operator[] ( int  i  )  const [inline]

Definition at line 1227 of file sc_int_base.h.

sc_int_bitref & sc_dt::sc_int_base::bit ( int  i  )  [inline]

Definition at line 1238 of file sc_int_base.h.

const sc_int_bitref_r & sc_dt::sc_int_base::bit ( int  i  )  const [inline]

Definition at line 1248 of file sc_int_base.h.

sc_int_subref & sc_dt::sc_int_base::operator() ( int  left,
int  right 
) [inline]

Definition at line 1261 of file sc_int_base.h.

const sc_int_subref_r & sc_dt::sc_int_base::operator() ( int  left,
int  right 
) const [inline]

Definition at line 1271 of file sc_int_base.h.

sc_int_subref & sc_dt::sc_int_base::range ( int  left,
int  right 
) [inline]

Definition at line 1282 of file sc_int_base.h.

const sc_int_subref_r & sc_dt::sc_int_base::range ( int  left,
int  right 
) const [inline]

Definition at line 1292 of file sc_int_base.h.

bool sc_dt::sc_int_base::test ( int  i  )  const [inline]

Definition at line 742 of file sc_int_base.h.

void sc_dt::sc_int_base::set ( int  i  )  [inline]

Definition at line 745 of file sc_int_base.h.

void sc_dt::sc_int_base::set ( int  i,
bool  v 
) [inline]

Definition at line 748 of file sc_int_base.h.

int sc_dt::sc_int_base::length (  )  const [inline]

Definition at line 754 of file sc_int_base.h.

virtual int sc_dt::sc_int_base::concat_length ( bool *  xz_present_p  )  const [inline, virtual]

Reimplemented from sc_dt::sc_value_base.

Definition at line 764 of file sc_int_base.h.

bool sc_dt::sc_int_base::concat_get_ctrl ( sc_digit dst_p,
int  low_i 
) const [virtual]

Reimplemented from sc_dt::sc_value_base.

Definition at line 594 of file sc_int_base.cpp.

bool sc_dt::sc_int_base::concat_get_data ( sc_digit dst_p,
int  low_i 
) const [virtual]

Reimplemented from sc_dt::sc_value_base.

Definition at line 612 of file sc_int_base.cpp.

virtual uint64 sc_dt::sc_int_base::concat_get_uint64 (  )  const [inline, virtual]

Reimplemented from sc_dt::sc_value_base.

Definition at line 768 of file sc_int_base.h.

void sc_dt::sc_int_base::concat_set ( int64  src,
int  low_i 
) [virtual]

Reimplemented from sc_dt::sc_value_base.

Definition at line 674 of file sc_int_base.cpp.

void sc_dt::sc_int_base::concat_set ( const sc_signed src,
int  low_i 
) [virtual]

Reimplemented from sc_dt::sc_value_base.

Definition at line 679 of file sc_int_base.cpp.

void sc_dt::sc_int_base::concat_set ( const sc_unsigned src,
int  low_i 
) [virtual]

Reimplemented from sc_dt::sc_value_base.

Definition at line 687 of file sc_int_base.cpp.

void sc_dt::sc_int_base::concat_set ( uint64  src,
int  low_i 
) [virtual]

Reimplemented from sc_dt::sc_value_base.

Definition at line 695 of file sc_int_base.cpp.

bool sc_dt::sc_int_base::and_reduce (  )  const

Definition at line 568 of file sc_int_base.cpp.

bool sc_dt::sc_int_base::nand_reduce (  )  const [inline]

Definition at line 785 of file sc_int_base.h.

bool sc_dt::sc_int_base::or_reduce (  )  const

Definition at line 574 of file sc_int_base.cpp.

bool sc_dt::sc_int_base::nor_reduce (  )  const [inline]

Definition at line 790 of file sc_int_base.h.

bool sc_dt::sc_int_base::xor_reduce (  )  const

Definition at line 580 of file sc_int_base.cpp.

bool sc_dt::sc_int_base::xnor_reduce (  )  const [inline]

Definition at line 795 of file sc_int_base.h.

sc_dt::sc_int_base::operator int_type (  )  const [inline]

Definition at line 801 of file sc_int_base.h.

int_type sc_dt::sc_int_base::value (  )  const [inline]

Definition at line 807 of file sc_int_base.h.

int sc_dt::sc_int_base::to_int (  )  const [inline]

Definition at line 811 of file sc_int_base.h.

unsigned int sc_dt::sc_int_base::to_uint (  )  const [inline]

Definition at line 814 of file sc_int_base.h.

long sc_dt::sc_int_base::to_long (  )  const [inline]

Definition at line 817 of file sc_int_base.h.

unsigned long sc_dt::sc_int_base::to_ulong (  )  const [inline]

Definition at line 820 of file sc_int_base.h.

int64 sc_dt::sc_int_base::to_int64 (  )  const [inline]

Definition at line 823 of file sc_int_base.h.

uint64 sc_dt::sc_int_base::to_uint64 (  )  const [inline]

Definition at line 826 of file sc_int_base.h.

double sc_dt::sc_int_base::to_double (  )  const [inline]

Definition at line 829 of file sc_int_base.h.

long sc_dt::sc_int_base::long_low (  )  const [inline]

Definition at line 834 of file sc_int_base.h.

long sc_dt::sc_int_base::long_high (  )  const [inline]

Definition at line 837 of file sc_int_base.h.

const std::string sc_dt::sc_int_base::to_string ( sc_numrep  numrep = SC_DEC  )  const

Definition at line 549 of file sc_int_base.cpp.

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

Definition at line 557 of file sc_int_base.cpp.

void sc_dt::sc_int_base::print ( ::std::ostream &  os = ::std::cout  )  const [inline]

Definition at line 850 of file sc_int_base.h.

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

Definition at line 703 of file sc_int_base.cpp.


Friends And Related Function Documentation

friend class sc_int_bitref_r [friend]

Definition at line 528 of file sc_int_base.h.

friend class sc_int_bitref [friend]

Definition at line 529 of file sc_int_base.h.

friend class sc_int_subref_r [friend]

Definition at line 530 of file sc_int_base.h.

friend class sc_int_subref [friend]

Definition at line 531 of file sc_int_base.h.

bool operator== ( const sc_int_base a,
const sc_int_base b 
) [friend]

Definition at line 703 of file sc_int_base.h.

bool operator!= ( const sc_int_base a,
const sc_int_base b 
) [friend]

Definition at line 706 of file sc_int_base.h.

bool operator< ( const sc_int_base a,
const sc_int_base b 
) [friend]

Definition at line 709 of file sc_int_base.h.

bool operator<= ( const sc_int_base a,
const sc_int_base b 
) [friend]

Definition at line 712 of file sc_int_base.h.

bool operator> ( const sc_int_base a,
const sc_int_base b 
) [friend]

Definition at line 715 of file sc_int_base.h.

bool operator>= ( const sc_int_base a,
const sc_int_base b 
) [friend]

Definition at line 718 of file sc_int_base.h.


Member Data Documentation

Definition at line 857 of file sc_int_base.h.

int sc_dt::sc_int_base::m_len [protected]

Definition at line 858 of file sc_int_base.h.

int sc_dt::sc_int_base::m_ulen [protected]

Definition at line 859 of file sc_int_base.h.


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

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