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_uint_base Class Reference

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

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

Public Member Functions

 sc_uint_base (int w=sc_length_param().len())
 
 sc_uint_base (uint_type v, int w)
 
 sc_uint_base (const sc_uint_base &a)
 
 sc_uint_base (const sc_uint_subref_r &a)
 
template<class T >
 sc_uint_base (const sc_generic_base< T > &a)
 
 sc_uint_base (const sc_bv_base &v)
 
 sc_uint_base (const sc_lv_base &v)
 
 sc_uint_base (const sc_int_subref_r &v)
 
 sc_uint_base (const sc_signed_subref_r &v)
 
 sc_uint_base (const sc_unsigned_subref_r &v)
 
 sc_uint_base (const sc_signed &a)
 
 sc_uint_base (const sc_unsigned &a)
 
virtual ~sc_uint_base ()
 
sc_uint_baseoperator= (uint_type v)
 
sc_uint_baseoperator= (const sc_uint_base &a)
 
sc_uint_baseoperator= (const sc_uint_subref_r &a)
 
template<class T >
sc_uint_baseoperator= (const sc_generic_base< T > &a)
 
sc_uint_baseoperator= (const sc_signed &a)
 
sc_uint_baseoperator= (const sc_unsigned &a)
 
sc_uint_baseoperator= (const sc_bv_base &a)
 
sc_uint_baseoperator= (const sc_lv_base &a)
 
sc_uint_baseoperator= (const char *a)
 
sc_uint_baseoperator= (unsigned long a)
 
sc_uint_baseoperator= (long a)
 
sc_uint_baseoperator= (unsigned int a)
 
sc_uint_baseoperator= (int a)
 
sc_uint_baseoperator= (int64 a)
 
sc_uint_baseoperator= (double a)
 
sc_uint_baseoperator+= (uint_type v)
 
sc_uint_baseoperator-= (uint_type v)
 
sc_uint_baseoperator*= (uint_type v)
 
sc_uint_baseoperator/= (uint_type v)
 
sc_uint_baseoperator%= (uint_type v)
 
sc_uint_baseoperator&= (uint_type v)
 
sc_uint_baseoperator|= (uint_type v)
 
sc_uint_baseoperator^= (uint_type v)
 
sc_uint_baseoperator<<= (uint_type v)
 
sc_uint_baseoperator>>= (uint_type v)
 
sc_uint_baseoperator++ ()
 
const sc_uint_base operator++ (int)
 
sc_uint_baseoperator-- ()
 
const sc_uint_base operator-- (int)
 
sc_uint_bitrefoperator[] (int i)
 
const sc_uint_bitref_roperator[] (int i) const
 
sc_uint_bitrefbit (int i)
 
const sc_uint_bitref_rbit (int i) const
 
sc_uint_subrefoperator() (int left, int right)
 
const sc_uint_subref_roperator() (int left, int right) const
 
sc_uint_subrefrange (int left, int right)
 
const sc_uint_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 uint_type () const
 
uint_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

uint_type m_val
 
int m_len
 
int m_ulen
 

Friends

class sc_uint_bitref_r
 
class sc_uint_bitref
 
class sc_uint_subref_r
 
class sc_uint_subref
 
bool operator== (const sc_uint_base &a, const sc_uint_base &b)
 
bool operator!= (const sc_uint_base &a, const sc_uint_base &b)
 
bool operator< (const sc_uint_base &a, const sc_uint_base &b)
 
bool operator<= (const sc_uint_base &a, const sc_uint_base &b)
 
bool operator> (const sc_uint_base &a, const sc_uint_base &b)
 
bool operator>= (const sc_uint_base &a, const sc_uint_base &b)
 

Detailed Description

Definition at line 523 of file sc_uint_base.h.

Constructor & Destructor Documentation

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

Definition at line 560 of file sc_uint_base.h.

sc_dt::sc_uint_base::sc_uint_base ( uint_type  v,
int  w 
)
inline

Definition at line 564 of file sc_uint_base.h.

sc_dt::sc_uint_base::sc_uint_base ( const sc_uint_base a)
inline

Definition at line 568 of file sc_uint_base.h.

sc_dt::sc_uint_base::sc_uint_base ( const sc_uint_subref_r a)
inlineexplicit

Definition at line 572 of file sc_uint_base.h.

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

Definition at line 577 of file sc_uint_base.h.

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

Definition at line 593 of file sc_uint_base.h.

Member Function Documentation

bool sc_dt::sc_uint_base::and_reduce ( ) const
sc_uint_bitref & sc_dt::sc_uint_base::bit ( int  i)
inline

Definition at line 1220 of file sc_uint_base.h.

const sc_uint_bitref_r & sc_dt::sc_uint_base::bit ( int  i) const
inline

Definition at line 1230 of file sc_uint_base.h.

virtual bool sc_dt::sc_uint_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_uint_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_uint_base::concat_get_uint64 ( ) const
inlinevirtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 765 of file sc_uint_base.h.

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

Reimplemented from sc_dt::sc_value_base.

Definition at line 761 of file sc_uint_base.h.

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

Reimplemented from sc_dt::sc_value_base.

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

Reimplemented from sc_dt::sc_value_base.

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

Reimplemented from sc_dt::sc_value_base.

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

Reimplemented from sc_dt::sc_value_base.

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

Definition at line 751 of file sc_uint_base.h.

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

Definition at line 829 of file sc_uint_base.h.

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

Definition at line 826 of file sc_uint_base.h.

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

Definition at line 777 of file sc_uint_base.h.

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

Definition at line 782 of file sc_uint_base.h.

sc_dt::sc_uint_base::operator uint_type ( ) const
inline

Definition at line 793 of file sc_uint_base.h.

sc_uint_base& sc_dt::sc_uint_base::operator%= ( uint_type  v)
inline

Definition at line 660 of file sc_uint_base.h.

sc_uint_base& sc_dt::sc_uint_base::operator&= ( uint_type  v)
inline

Definition at line 666 of file sc_uint_base.h.

sc_uint_subref & sc_dt::sc_uint_base::operator() ( int  left,
int  right 
)
inline

Definition at line 1243 of file sc_uint_base.h.

const sc_uint_subref_r & sc_dt::sc_uint_base::operator() ( int  left,
int  right 
) const
inline

Definition at line 1253 of file sc_uint_base.h.

sc_uint_base& sc_dt::sc_uint_base::operator*= ( uint_type  v)
inline

Definition at line 654 of file sc_uint_base.h.

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

Definition at line 685 of file sc_uint_base.h.

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

Definition at line 688 of file sc_uint_base.h.

sc_uint_base& sc_dt::sc_uint_base::operator+= ( uint_type  v)
inline

Definition at line 648 of file sc_uint_base.h.

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

Definition at line 691 of file sc_uint_base.h.

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

Definition at line 694 of file sc_uint_base.h.

sc_uint_base& sc_dt::sc_uint_base::operator-= ( uint_type  v)
inline

Definition at line 651 of file sc_uint_base.h.

sc_uint_base& sc_dt::sc_uint_base::operator/= ( uint_type  v)
inline

Definition at line 657 of file sc_uint_base.h.

sc_uint_base& sc_dt::sc_uint_base::operator<<= ( uint_type  v)
inline

Definition at line 676 of file sc_uint_base.h.

sc_uint_base& sc_dt::sc_uint_base::operator= ( uint_type  v)
inline

Definition at line 599 of file sc_uint_base.h.

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

Definition at line 602 of file sc_uint_base.h.

sc_uint_base& sc_dt::sc_uint_base::operator= ( const sc_uint_subref_r a)
inline

Definition at line 605 of file sc_uint_base.h.

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

Definition at line 609 of file sc_uint_base.h.

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

Definition at line 627 of file sc_uint_base.h.

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

Definition at line 630 of file sc_uint_base.h.

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

Definition at line 633 of file sc_uint_base.h.

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

Definition at line 636 of file sc_uint_base.h.

sc_uint_base& sc_dt::sc_uint_base::operator= ( int64  a)
inline

Definition at line 639 of file sc_uint_base.h.

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

Definition at line 642 of file sc_uint_base.h.

sc_uint_base& sc_dt::sc_uint_base::operator>>= ( uint_type  v)
inline

Definition at line 679 of file sc_uint_base.h.

sc_uint_bitref & sc_dt::sc_uint_base::operator[] ( int  i)
inline

Definition at line 1199 of file sc_uint_base.h.

const sc_uint_bitref_r & sc_dt::sc_uint_base::operator[] ( int  i) const
inline

Definition at line 1209 of file sc_uint_base.h.

sc_uint_base& sc_dt::sc_uint_base::operator^= ( uint_type  v)
inline

Definition at line 672 of file sc_uint_base.h.

sc_uint_base& sc_dt::sc_uint_base::operator|= ( uint_type  v)
inline

Definition at line 669 of file sc_uint_base.h.

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

Definition at line 841 of file sc_uint_base.h.

sc_uint_subref & sc_dt::sc_uint_base::range ( int  left,
int  right 
)
inline

Definition at line 1264 of file sc_uint_base.h.

const sc_uint_subref_r & sc_dt::sc_uint_base::range ( int  left,
int  right 
) const
inline

Definition at line 1274 of file sc_uint_base.h.

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

Definition at line 742 of file sc_uint_base.h.

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

Definition at line 745 of file sc_uint_base.h.

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

Definition at line 739 of file sc_uint_base.h.

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

Definition at line 821 of file sc_uint_base.h.

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

Definition at line 803 of file sc_uint_base.h.

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

Definition at line 815 of file sc_uint_base.h.

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

Definition at line 809 of file sc_uint_base.h.

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

Definition at line 806 of file sc_uint_base.h.

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

Definition at line 818 of file sc_uint_base.h.

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

Definition at line 812 of file sc_uint_base.h.

uint_type sc_dt::sc_uint_base::value ( ) const
inline

Definition at line 799 of file sc_uint_base.h.

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

Definition at line 787 of file sc_uint_base.h.

bool sc_dt::sc_uint_base::xor_reduce ( ) const

Friends And Related Function Documentation

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

Definition at line 703 of file sc_uint_base.h.

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

Definition at line 706 of file sc_uint_base.h.

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

Definition at line 709 of file sc_uint_base.h.

bool operator== ( const sc_uint_base a,
const sc_uint_base b 
)
friend

Definition at line 700 of file sc_uint_base.h.

bool operator> ( const sc_uint_base a,
const sc_uint_base b 
)
friend

Definition at line 712 of file sc_uint_base.h.

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

Definition at line 715 of file sc_uint_base.h.

friend class sc_uint_bitref
friend

Definition at line 526 of file sc_uint_base.h.

friend class sc_uint_bitref_r
friend

Definition at line 525 of file sc_uint_base.h.

friend class sc_uint_subref
friend

Definition at line 528 of file sc_uint_base.h.

friend class sc_uint_subref_r
friend

Definition at line 527 of file sc_uint_base.h.

Member Data Documentation

int sc_dt::sc_uint_base::m_len
protected

Definition at line 849 of file sc_uint_base.h.

int sc_dt::sc_uint_base::m_ulen
protected

Definition at line 850 of file sc_uint_base.h.

uint_type sc_dt::sc_uint_base::m_val
protected

Definition at line 848 of file sc_uint_base.h.


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