SystemC 3.0.0
Accellera SystemC proof-of-concept library
Public Member Functions | List of all members
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]

Public Member Functions

void assign (uint_type value)
 
 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)
 
template<int WO>
 sc_int (const sc_bigint< WO > &a)
 
template<int WO>
 sc_int (const sc_biguint< WO > &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)
 
template<int W1>
const sc_int< W > & operator= (const sc_bigint< W1 > &a)
 
template<int W1>
const sc_int< W > & operator= (const sc_biguint< W1 > &a)
 
sc_int< W > & operator= (const sc_signed &a)
 
sc_int< W > & operator= (const sc_unsigned &a)
 
sc_int< W > & operator= (const sc_signed_subref_r &a)
 
sc_int< W > & operator= (const sc_unsigned_subref_r &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++ ()
 
sc_int< W > operator++ (int)
 
sc_int< W > & operator-- ()
 
sc_int< W > operator-- (int)
 
- Public Member Functions inherited from sc_dt::sc_int_base
 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_signed_subref_r &a)
 
sc_int_baseoperator= (const sc_unsigned_subref_r &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++ ()
 
sc_int_base operator++ (int)
 
sc_int_baseoperator-- ()
 
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_bitreftemporary_bitref () 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
 
sc_int_subreftemporary_subref () 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 ()
 

Additional Inherited Members

- Protected Attributes inherited from sc_dt::sc_int_base
int_type m_val
 
int m_len
 
int m_ulen
 

Detailed Description

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

Definition at line 86 of file sc_int.h.

Constructor & Destructor Documentation

◆ sc_int() [1/19]

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

Definition at line 101 of file sc_int.h.

◆ sc_int() [2/19]

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

Definition at line 105 of file sc_int.h.

◆ sc_int() [3/19]

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

Definition at line 109 of file sc_int.h.

◆ sc_int() [4/19]

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

Definition at line 113 of file sc_int.h.

◆ sc_int() [5/19]

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

Definition at line 117 of file sc_int.h.

◆ sc_int() [6/19]

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

Definition at line 122 of file sc_int.h.

◆ sc_int() [7/19]

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

Definition at line 126 of file sc_int.h.

◆ sc_int() [8/19]

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

Definition at line 130 of file sc_int.h.

◆ sc_int() [9/19]

template<int W>
template<int WO>
sc_dt::sc_int< W >::sc_int ( const sc_bigint< WO > &  a)
inline

Definition at line 135 of file sc_int.h.

◆ sc_int() [10/19]

template<int W>
template<int WO>
sc_dt::sc_int< W >::sc_int ( const sc_biguint< WO > &  a)
inline

Definition at line 140 of file sc_int.h.

◆ sc_int() [11/19]

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

Definition at line 164 of file sc_int.h.

◆ sc_int() [12/19]

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

Definition at line 168 of file sc_int.h.

◆ sc_int() [13/19]

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

Definition at line 172 of file sc_int.h.

◆ sc_int() [14/19]

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

Definition at line 176 of file sc_int.h.

◆ sc_int() [15/19]

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

Definition at line 180 of file sc_int.h.

◆ sc_int() [16/19]

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

Definition at line 184 of file sc_int.h.

◆ sc_int() [17/19]

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

Definition at line 188 of file sc_int.h.

◆ sc_int() [18/19]

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

Definition at line 192 of file sc_int.h.

◆ sc_int() [19/19]

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

Definition at line 196 of file sc_int.h.

Member Function Documentation

◆ assign()

template<int W>
void sc_dt::sc_int< W >::assign ( uint_type  value)
inline

Definition at line 93 of file sc_int.h.

◆ operator%=()

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

Definition at line 295 of file sc_int.h.

◆ operator&=()

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

Definition at line 301 of file sc_int.h.

◆ operator*=()

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

Definition at line 289 of file sc_int.h.

◆ operator++() [1/2]

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

Definition at line 320 of file sc_int.h.

◆ operator++() [2/2]

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

Definition at line 323 of file sc_int.h.

◆ operator+=()

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

Definition at line 283 of file sc_int.h.

◆ operator--() [1/2]

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

Definition at line 326 of file sc_int.h.

◆ operator--() [2/2]

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

Definition at line 329 of file sc_int.h.

◆ operator-=()

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

Definition at line 286 of file sc_int.h.

◆ operator/=()

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

Definition at line 292 of file sc_int.h.

◆ operator<<=()

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

Definition at line 307 of file sc_int.h.

◆ operator=() [1/20]

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

Definition at line 259 of file sc_int.h.

◆ operator=() [2/20]

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

Definition at line 38 of file sc_int_inlines.h.

◆ operator=() [3/20]

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

Definition at line 52 of file sc_int_inlines.h.

◆ operator=() [4/20]

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

Definition at line 253 of file sc_int.h.

◆ operator=() [5/20]

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

Definition at line 216 of file sc_int.h.

◆ operator=() [6/20]

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

Definition at line 212 of file sc_int.h.

◆ operator=() [7/20]

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

Definition at line 206 of file sc_int.h.

◆ operator=() [8/20]

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

Definition at line 209 of file sc_int.h.

◆ operator=() [9/20]

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

Definition at line 256 of file sc_int.h.

◆ operator=() [10/20]

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

Definition at line 225 of file sc_int.h.

◆ operator=() [11/20]

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

Definition at line 231 of file sc_int.h.

◆ operator=() [12/20]

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

Definition at line 228 of file sc_int.h.

◆ operator=() [13/20]

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

Definition at line 234 of file sc_int.h.

◆ operator=() [14/20]

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

Definition at line 277 of file sc_int.h.

◆ operator=() [15/20]

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

Definition at line 271 of file sc_int.h.

◆ operator=() [16/20]

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

Definition at line 203 of file sc_int.h.

◆ operator=() [17/20]

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

Definition at line 265 of file sc_int.h.

◆ operator=() [18/20]

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

Definition at line 274 of file sc_int.h.

◆ operator=() [19/20]

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

Definition at line 268 of file sc_int.h.

◆ operator=() [20/20]

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

Definition at line 262 of file sc_int.h.

◆ operator>>=()

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

Definition at line 314 of file sc_int.h.

◆ operator^=()

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

Definition at line 307 of file sc_int.h.

◆ operator|=()

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

Definition at line 304 of file sc_int.h.


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