SystemC  2.3.1
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

 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)
 
- 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_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 ()
 

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 75 of file sc_int.h.

Constructor & Destructor Documentation

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

Definition at line 95 of file sc_int.h.

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

Definition at line 99 of file sc_int.h.

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

Definition at line 103 of file sc_int.h.

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

Definition at line 107 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 111 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 116 of file sc_int.h.

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

Definition at line 120 of file sc_int.h.

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

Definition at line 124 of file sc_int.h.

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

Definition at line 148 of file sc_int.h.

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

Definition at line 152 of file sc_int.h.

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

Definition at line 156 of file sc_int.h.

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

Definition at line 160 of file sc_int.h.

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

Definition at line 164 of file sc_int.h.

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

Definition at line 168 of file sc_int.h.

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

Definition at line 172 of file sc_int.h.

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

Definition at line 176 of file sc_int.h.

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

Definition at line 180 of file sc_int.h.

Member Function Documentation

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

Definition at line 267 of file sc_int.h.

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

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

Definition at line 261 of file sc_int.h.

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

Definition at line 292 of file sc_int.h.

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

Definition at line 295 of file sc_int.h.

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

Definition at line 255 of file sc_int.h.

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

Definition at line 298 of file sc_int.h.

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

Definition at line 301 of file sc_int.h.

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

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

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

Definition at line 283 of file sc_int.h.

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

Definition at line 187 of file sc_int.h.

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

Definition at line 190 of file sc_int.h.

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

Definition at line 193 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 196 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

Definition at line 200 of file sc_int.h.

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

Definition at line 203 of file sc_int.h.

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

Definition at line 206 of file sc_int.h.

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

Definition at line 225 of file sc_int.h.

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

Definition at line 228 of file sc_int.h.

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

Definition at line 231 of file sc_int.h.

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

Definition at line 234 of file sc_int.h.

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

Definition at line 237 of file sc_int.h.

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

Definition at line 240 of file sc_int.h.

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

Definition at line 243 of file sc_int.h.

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

Definition at line 246 of file sc_int.h.

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

Definition at line 249 of file sc_int.h.

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.

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

Definition at line 279 of file sc_int.h.

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

Definition at line 276 of file sc_int.h.


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