sc_dt::sc_int< W > Class Template Reference

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

Inheritance diagram for sc_dt::sc_int< W >:

Inheritance graph
[legend]
Collaboration diagram for sc_dt::sc_int< W >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 sc_int ()
 sc_int (int_type v)
 sc_int (const sc_int< W > &a)
 sc_int (const sc_int_base &a)
 sc_int (const sc_int_subref_r &a)
template<class T>
 sc_int (const sc_generic_base< T > &a)
 sc_int (const sc_signed &a)
 sc_int (const sc_unsigned &a)
 sc_int (const sc_bv_base &a)
 sc_int (const sc_lv_base &a)
 sc_int (const char *a)
 sc_int (unsigned long a)
 sc_int (long a)
 sc_int (unsigned int a)
 sc_int (int a)
 sc_int (uint64 a)
 sc_int (double a)
sc_int< W > & operator= (int_type v)
sc_int< W > & operator= (const sc_int_base &a)
sc_int< W > & operator= (const sc_int_subref_r &a)
sc_int< W > & operator= (const sc_int< W > &a)
template<class T>
sc_int< W > & operator= (const sc_generic_base< T > &a)
sc_int< W > & operator= (const sc_signed &a)
sc_int< W > & operator= (const sc_unsigned &a)
sc_int< W > & operator= (const sc_bv_base &a)
sc_int< W > & operator= (const sc_lv_base &a)
sc_int< W > & operator= (const char *a)
sc_int< W > & operator= (unsigned long a)
sc_int< W > & operator= (long a)
sc_int< W > & operator= (unsigned int a)
sc_int< W > & operator= (int a)
sc_int< W > & operator= (uint64 a)
sc_int< W > & operator= (double a)
sc_int< W > & operator+= (int_type v)
sc_int< W > & operator-= (int_type v)
sc_int< W > & operator*= (int_type v)
sc_int< W > & operator/= (int_type v)
sc_int< W > & operator%= (int_type v)
sc_int< W > & operator &= (int_type v)
sc_int< W > & operator|= (int_type v)
sc_int< W > & operator^= (int_type v)
sc_int< W > & operator<<= (int_type v)
sc_int< W > & operator>>= (int_type v)
sc_int< W > & operator++ ()
const sc_int< W > operator++ (int)
sc_int< W > & operator-- ()
const sc_int< W > 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

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

template<int W>
class sc_dt::sc_int< W >

Definition at line 85 of file sc_int.h.


Constructor & Destructor Documentation

template<int W>
sc_dt::sc_int< W >::sc_int (  )  [inline]

Definition at line 92 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( int_type  v  )  [inline]

Definition at line 96 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( const sc_int< W > &  a  )  [inline]

Definition at line 100 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( const sc_int_base a  )  [inline]

Definition at line 104 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( const sc_int_subref_r a  )  [inline]

Definition at line 108 of file sc_int.h.

template<int W>
template<class T>
sc_dt::sc_int< W >::sc_int ( const sc_generic_base< T > &  a  )  [inline]

Definition at line 113 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( const sc_signed a  )  [inline]

Definition at line 117 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( const sc_unsigned a  )  [inline]

Definition at line 121 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( const sc_bv_base a  )  [inline]

Definition at line 145 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( const sc_lv_base a  )  [inline]

Definition at line 149 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( const char *  a  )  [inline]

Definition at line 153 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( unsigned long  a  )  [inline]

Definition at line 157 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( long  a  )  [inline]

Definition at line 161 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( unsigned int  a  )  [inline]

Definition at line 165 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( int  a  )  [inline]

Definition at line 169 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( uint64  a  )  [inline]

Definition at line 173 of file sc_int.h.

template<int W>
sc_dt::sc_int< W >::sc_int ( double  a  )  [inline]

Definition at line 177 of file sc_int.h.


Member Function Documentation

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( int_type  v  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 184 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( const sc_int_base a  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 187 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( const sc_int_subref_r a  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 190 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( const sc_int< W > &  a  )  [inline]

Definition at line 193 of file sc_int.h.

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

Reimplemented from sc_dt::sc_int_base.

Definition at line 197 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( const sc_signed a  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 200 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( const sc_unsigned a  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 203 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( const sc_bv_base a  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 222 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( const sc_lv_base a  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 225 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( const char *  a  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 228 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( unsigned long  a  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 231 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( long  a  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 234 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( unsigned int  a  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 237 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( int  a  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 240 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( uint64  a  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 243 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator= ( double  a  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 246 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator+= ( int_type  v  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 252 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator-= ( int_type  v  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 255 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator*= ( int_type  v  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 258 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator/= ( int_type  v  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 261 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator%= ( int_type  v  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 264 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator &= ( int_type  v  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 270 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator|= ( int_type  v  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 273 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator^= ( int_type  v  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 276 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator<<= ( int_type  v  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 280 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator>>= ( int_type  v  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 283 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator++ (  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 289 of file sc_int.h.

template<int W>
const sc_int<W> sc_dt::sc_int< W >::operator++ ( int   )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 292 of file sc_int.h.

template<int W>
sc_int<W>& sc_dt::sc_int< W >::operator-- (  )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 295 of file sc_int.h.

template<int W>
const sc_int<W> sc_dt::sc_int< W >::operator-- ( int   )  [inline]

Reimplemented from sc_dt::sc_int_base.

Definition at line 298 of file sc_int.h.

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

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, inherited]

Definition at line 1227 of file sc_int_base.h.

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

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, inherited]

Definition at line 1248 of file sc_int_base.h.

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

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, inherited]

Definition at line 1271 of file sc_int_base.h.

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

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, inherited]

Definition at line 1292 of file sc_int_base.h.

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

Definition at line 742 of file sc_int_base.h.

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

Definition at line 745 of file sc_int_base.h.

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

Definition at line 748 of file sc_int_base.h.

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

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, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

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 [inherited]

Definition at line 568 of file sc_int_base.cpp.

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

Definition at line 785 of file sc_int_base.h.

bool sc_dt::sc_int_base::or_reduce (  )  const [inherited]

Definition at line 574 of file sc_int_base.cpp.

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

Definition at line 790 of file sc_int_base.h.

bool sc_dt::sc_int_base::xor_reduce (  )  const [inherited]

Definition at line 580 of file sc_int_base.cpp.

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

Definition at line 795 of file sc_int_base.h.

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

Definition at line 801 of file sc_int_base.h.

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

Definition at line 807 of file sc_int_base.h.

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

Definition at line 811 of file sc_int_base.h.

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

Definition at line 814 of file sc_int_base.h.

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

Definition at line 817 of file sc_int_base.h.

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

Definition at line 820 of file sc_int_base.h.

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

Definition at line 823 of file sc_int_base.h.

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

Definition at line 826 of file sc_int_base.h.

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

Definition at line 829 of file sc_int_base.h.

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

Definition at line 834 of file sc_int_base.h.

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

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 [inherited]

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 [inherited]

Definition at line 557 of file sc_int_base.cpp.

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

Definition at line 850 of file sc_int_base.h.

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

Definition at line 703 of file sc_int_base.cpp.


Friends And Related Function Documentation

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

Definition at line 703 of file sc_int_base.h.

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

Definition at line 706 of file sc_int_base.h.

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

Definition at line 709 of file sc_int_base.h.

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

Definition at line 712 of file sc_int_base.h.

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

Definition at line 715 of file sc_int_base.h.

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

Definition at line 718 of file sc_int_base.h.


Member Data Documentation

int_type sc_dt::sc_int_base::m_val [protected, inherited]

Definition at line 857 of file sc_int_base.h.

int sc_dt::sc_int_base::m_len [protected, inherited]

Definition at line 858 of file sc_int_base.h.

int sc_dt::sc_int_base::m_ulen [protected, inherited]

Definition at line 859 of file sc_int_base.h.


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

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