SystemC  Recoding Infrastructure for SystemC v0.6.2 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Public Member Functions | Protected Attributes | Friends | List of all members
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]

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)
 
- Public Member Functions inherited from sc_dt::sc_value_base
virtual ~sc_value_base ()
 

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 537 of file sc_int_base.h.

Constructor & Destructor Documentation

sc_dt::sc_int_base::sc_int_base ( int  w = sc_length_param().len())
inlineexplicit

Definition at line 574 of file sc_int_base.h.

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

Definition at line 578 of file sc_int_base.h.

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

Definition at line 582 of file sc_int_base.h.

sc_dt::sc_int_base::sc_int_base ( const sc_int_subref_r a)
inlineexplicit

Definition at line 587 of file sc_int_base.h.

template<class T >
sc_dt::sc_int_base::sc_int_base ( const sc_generic_base< T > &  a)
inlineexplicit

Definition at line 592 of file sc_int_base.h.

sc_dt::sc_int_base::sc_int_base ( const sc_signed a)
explicit
sc_dt::sc_int_base::sc_int_base ( const sc_unsigned a)
explicit
sc_dt::sc_int_base::sc_int_base ( const sc_bv_base v)
explicit
sc_dt::sc_int_base::sc_int_base ( const sc_lv_base v)
explicit
sc_dt::sc_int_base::sc_int_base ( const sc_uint_subref_r v)
explicit
sc_dt::sc_int_base::sc_int_base ( const sc_signed_subref_r v)
explicit
sc_dt::sc_int_base::sc_int_base ( const sc_unsigned_subref_r v)
explicit
virtual sc_dt::sc_int_base::~sc_int_base ( )
inlinevirtual

Definition at line 609 of file sc_int_base.h.

Member Function Documentation

bool sc_dt::sc_int_base::and_reduce ( ) const
sc_int_bitref & sc_dt::sc_int_base::bit ( int  i)
inline

Definition at line 1250 of file sc_int_base.h.

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

Definition at line 1260 of file sc_int_base.h.

virtual 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.

virtual 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.

virtual uint64 sc_dt::sc_int_base::concat_get_uint64 ( ) const
inlinevirtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 780 of file sc_int_base.h.

virtual int sc_dt::sc_int_base::concat_length ( bool *  xz_present_p) const
inlinevirtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 776 of file sc_int_base.h.

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

Reimplemented from sc_dt::sc_value_base.

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

Reimplemented from sc_dt::sc_value_base.

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

Reimplemented from sc_dt::sc_value_base.

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

Reimplemented from sc_dt::sc_value_base.

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

Definition at line 766 of file sc_int_base.h.

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

Definition at line 849 of file sc_int_base.h.

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

Definition at line 846 of file sc_int_base.h.

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

Definition at line 797 of file sc_int_base.h.

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

Definition at line 802 of file sc_int_base.h.

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

Definition at line 813 of file sc_int_base.h.

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

Definition at line 675 of file sc_int_base.h.

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

Definition at line 681 of file sc_int_base.h.

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

Definition at line 1273 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 1283 of file sc_int_base.h.

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

Definition at line 669 of file sc_int_base.h.

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

Definition at line 700 of file sc_int_base.h.

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

Definition at line 703 of file sc_int_base.h.

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

Definition at line 663 of file sc_int_base.h.

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

Definition at line 706 of file sc_int_base.h.

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

Definition at line 709 of file sc_int_base.h.

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

Definition at line 666 of file sc_int_base.h.

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

Definition at line 672 of file sc_int_base.h.

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

Definition at line 691 of file sc_int_base.h.

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

Definition at line 614 of file sc_int_base.h.

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

Definition at line 617 of file sc_int_base.h.

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

Definition at line 620 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

Definition at line 624 of file sc_int_base.h.

sc_int_base& sc_dt::sc_int_base::operator= ( const sc_signed a)
sc_int_base& sc_dt::sc_int_base::operator= ( const sc_unsigned a)
sc_int_base& sc_dt::sc_int_base::operator= ( const sc_bv_base a)
sc_int_base& sc_dt::sc_int_base::operator= ( const sc_lv_base a)
sc_int_base& sc_dt::sc_int_base::operator= ( const char *  a)
sc_int_base& sc_dt::sc_int_base::operator= ( unsigned long  a)
inline

Definition at line 642 of file sc_int_base.h.

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

Definition at line 645 of file sc_int_base.h.

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

Definition at line 648 of file sc_int_base.h.

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

Definition at line 651 of file sc_int_base.h.

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

Definition at line 654 of file sc_int_base.h.

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

Definition at line 657 of file sc_int_base.h.

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

Definition at line 694 of file sc_int_base.h.

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

Definition at line 1229 of file sc_int_base.h.

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

Definition at line 1239 of file sc_int_base.h.

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

Definition at line 687 of file sc_int_base.h.

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

Definition at line 684 of file sc_int_base.h.

bool sc_dt::sc_int_base::or_reduce ( ) const
void sc_dt::sc_int_base::print ( ::std::ostream &  os = ::std::cout) const
inline

Definition at line 862 of file sc_int_base.h.

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

Definition at line 1294 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 1304 of file sc_int_base.h.

void sc_dt::sc_int_base::scan ( ::std::istream &  is = ::std::cin)
void sc_dt::sc_int_base::set ( int  i)
inline

Definition at line 757 of file sc_int_base.h.

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

Definition at line 760 of file sc_int_base.h.

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

Definition at line 754 of file sc_int_base.h.

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

Definition at line 841 of file sc_int_base.h.

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

Definition at line 823 of file sc_int_base.h.

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

Definition at line 835 of file sc_int_base.h.

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

Definition at line 829 of file sc_int_base.h.

const std::string sc_dt::sc_int_base::to_string ( sc_numrep  numrep = SC_DEC) const
const std::string sc_dt::sc_int_base::to_string ( sc_numrep  numrep,
bool  w_prefix 
) const
unsigned int sc_dt::sc_int_base::to_uint ( ) const
inline

Definition at line 826 of file sc_int_base.h.

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

Definition at line 838 of file sc_int_base.h.

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

Definition at line 832 of file sc_int_base.h.

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

Definition at line 819 of file sc_int_base.h.

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

Definition at line 807 of file sc_int_base.h.

bool sc_dt::sc_int_base::xor_reduce ( ) const

Friends And Related Function Documentation

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

Definition at line 718 of file sc_int_base.h.

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

Definition at line 721 of file sc_int_base.h.

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

Definition at line 724 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 727 of file sc_int_base.h.

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

Definition at line 730 of file sc_int_base.h.

friend class sc_int_bitref
friend

Definition at line 540 of file sc_int_base.h.

friend class sc_int_bitref_r
friend

Definition at line 539 of file sc_int_base.h.

friend class sc_int_subref
friend

Definition at line 542 of file sc_int_base.h.

friend class sc_int_subref_r
friend

Definition at line 541 of file sc_int_base.h.

Member Data Documentation

int sc_dt::sc_int_base::m_len
protected

Definition at line 870 of file sc_int_base.h.

int sc_dt::sc_int_base::m_ulen
protected

Definition at line 871 of file sc_int_base.h.

int_type sc_dt::sc_int_base::m_val
protected

Definition at line 869 of file sc_int_base.h.


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