gem5 v24.0.0.0
Loading...
Searching...
No Matches
sc_dt::sc_subref< X > Class Template Reference

#include <sc_bit_proxies.hh>

Inheritance diagram for sc_dt::sc_subref< X >:
sc_dt::sc_subref_r< X > sc_dt::sc_proxy< sc_subref_r< X > >

Public Types

typedef sc_subref_r< X > base_type
 
- Public Types inherited from sc_dt::sc_subref_r< X >
typedef sc_proxy< sc_subref_r< X > >::value_type value_type
 
- Public Types inherited from sc_dt::sc_proxy< sc_subref_r< X > >
typedef sc_proxy_traits< X >::traits_type traits_type
 
typedef traits_type::bit_type bit_type
 
typedef traits_type::value_type value_type
 

Public Member Functions

 sc_subref (X &obj_, int hi_, int lo_)
 
 sc_subref (const sc_subref< X > &a)
 
sc_subref< X > * clone () const
 
template<class Y >
sc_subref< X > & operator= (const sc_proxy< Y > &a)
 
sc_subref< X > & operator= (const sc_subref_r< X > &a)
 
sc_subref< X > & operator= (const sc_subref< X > &a)
 
sc_subref< X > & operator= (const char *a)
 
sc_subref< X > & operator= (const bool *a)
 
sc_subref< X > & operator= (const sc_logic *a)
 
sc_subref< X > & operator= (const sc_unsigned &a)
 
sc_subref< X > & operator= (const sc_signed &a)
 
sc_subref< X > & operator= (const sc_uint_base &a)
 
sc_subref< X > & operator= (const sc_int_base &a)
 
sc_subref< X > & operator= (unsigned long a)
 
sc_subref< X > & operator= (long a)
 
sc_subref< X > & operator= (unsigned int a)
 
sc_subref< X > & operator= (int a)
 
sc_subref< X > & operator= (uint64 a)
 
sc_subref< X > & operator= (int64 a)
 
void scan (::std::istream &=::std::cin)
 
- Public Member Functions inherited from sc_dt::sc_subref_r< X >
 sc_subref_r (const X &obj_, int hi_, int lo_)
 
 sc_subref_r (const sc_subref_r< X > &a)
 
sc_subref_r< X > * clone () const
 
int length () const
 
int size () const
 
value_type get_bit (int n) const
 
void set_bit (int n, value_type value)
 
sc_digit get_word (int i) const
 
void set_word (int i, sc_digit w)
 
sc_digit get_cword (int i) const
 
void set_cword (int i, sc_digit w)
 
void clean_tail ()
 
bool is_01 () const
 
bool reversed () const
 
- Public Member Functions inherited from sc_dt::sc_proxy< sc_subref_r< X > >
virtual ~sc_proxy ()
 
X & back_cast ()
 
const X & back_cast () const
 
X & assign_ (const sc_proxy< Y > &a)
 
X & assign_ (const char *a)
 
X & assign_ (const bool *a)
 
X & assign_ (const sc_logic *a)
 
X & assign_ (const sc_unsigned &a)
 
X & assign_ (const sc_signed &a)
 
X & assign_ (const sc_uint_base &a)
 
X & assign_ (const sc_int_base &a)
 
X & assign_ (unsigned int a)
 
X & assign_ (int a)
 
X & assign_ (unsigned long a)
 
X & assign_ (long a)
 
X & assign_ (uint64 a)
 
X & assign_ (int64 a)
 
X & b_not ()
 
const sc_lv_base operator~ () const
 
X & operator&= (const char *b)
 
X & operator&= (const bool *b)
 
X & operator&= (const sc_logic *b)
 
X & operator&= (const sc_unsigned &b)
 
X & operator&= (const sc_signed &b)
 
X & operator&= (const sc_uint_base &b)
 
X & operator&= (const sc_int_base &b)
 
X & operator&= (unsigned long b)
 
X & operator&= (long b)
 
X & operator&= (unsigned int b)
 
X & operator&= (int b)
 
X & operator&= (uint64 b)
 
X & operator&= (int64 b)
 
const sc_lv_base operator& (const char *b) const
 
const sc_lv_base operator& (const bool *b) const
 
const sc_lv_base operator& (const sc_logic *b) const
 
const sc_lv_base operator& (const sc_unsigned &b) const
 
const sc_lv_base operator& (const sc_signed &b) const
 
const sc_lv_base operator& (const sc_uint_base &b) const
 
const sc_lv_base operator& (const sc_int_base &b) const
 
const sc_lv_base operator& (unsigned long b) const
 
const sc_lv_base operator& (long b) const
 
const sc_lv_base operator& (unsigned int b) const
 
const sc_lv_base operator& (int b) const
 
const sc_lv_base operator& (uint64 b) const
 
const sc_lv_base operator& (int64 b) const
 
X & operator|= (const char *b)
 
X & operator|= (const bool *b)
 
X & operator|= (const sc_logic *b)
 
X & operator|= (const sc_unsigned &b)
 
X & operator|= (const sc_signed &b)
 
X & operator|= (const sc_uint_base &b)
 
X & operator|= (const sc_int_base &b)
 
X & operator|= (unsigned long b)
 
X & operator|= (long b)
 
X & operator|= (unsigned int b)
 
X & operator|= (int b)
 
X & operator|= (uint64 b)
 
X & operator|= (int64 b)
 
const sc_lv_base operator| (const char *b) const
 
const sc_lv_base operator| (const bool *b) const
 
const sc_lv_base operator| (const sc_logic *b) const
 
const sc_lv_base operator| (const sc_unsigned &b) const
 
const sc_lv_base operator| (const sc_signed &b) const
 
const sc_lv_base operator| (const sc_uint_base &b) const
 
const sc_lv_base operator| (const sc_int_base &b) const
 
const sc_lv_base operator| (unsigned long b) const
 
const sc_lv_base operator| (long b) const
 
const sc_lv_base operator| (unsigned int b) const
 
const sc_lv_base operator| (int b) const
 
const sc_lv_base operator| (uint64 b) const
 
const sc_lv_base operator| (int64 b) const
 
X & operator^= (const char *b)
 
X & operator^= (const bool *b)
 
X & operator^= (const sc_logic *b)
 
X & operator^= (const sc_unsigned &b)
 
X & operator^= (const sc_signed &b)
 
X & operator^= (const sc_uint_base &b)
 
X & operator^= (const sc_int_base &b)
 
X & operator^= (unsigned long b)
 
X & operator^= (long b)
 
X & operator^= (unsigned int b)
 
X & operator^= (int b)
 
X & operator^= (uint64 b)
 
X & operator^= (int64 b)
 
const sc_lv_base operator^ (const char *b) const
 
const sc_lv_base operator^ (const bool *b) const
 
const sc_lv_base operator^ (const sc_logic *b) const
 
const sc_lv_base operator^ (const sc_unsigned &b) const
 
const sc_lv_base operator^ (const sc_signed &b) const
 
const sc_lv_base operator^ (const sc_uint_base &b) const
 
const sc_lv_base operator^ (const sc_int_base &b) const
 
const sc_lv_base operator^ (unsigned long b) const
 
const sc_lv_base operator^ (long b) const
 
const sc_lv_base operator^ (unsigned int b) const
 
const sc_lv_base operator^ (int b) const
 
const sc_lv_base operator^ (uint64 b) const
 
const sc_lv_base operator^ (int64 b) const
 
X & operator<<= (int n)
 
const sc_lv_base operator<< (int n) const
 
X & operator>>= (int n)
 
const sc_lv_base operator>> (int n) const
 
X & lrotate (int n)
 
X & rrotate (int n)
 
X & reverse ()
 
sc_bitref< X > operator[] (int i)
 
sc_bitref_r< X > operator[] (int i) const
 
sc_bitref< X > bit (int i)
 
sc_bitref_r< X > bit (int i) const
 
sc_subref< X > operator() (int hi, int lo)
 
sc_subref_r< X > operator() (int hi, int lo) const
 
sc_subref< X > range (int hi, int lo)
 
sc_subref_r< X > range (int hi, int lo) const
 
value_type and_reduce () const
 
value_type nand_reduce () const
 
value_type or_reduce () const
 
value_type nor_reduce () const
 
value_type xor_reduce () const
 
value_type xnor_reduce () const
 
bool operator== (const char *b) const
 
bool operator== (const bool *b) const
 
bool operator== (const sc_logic *b) const
 
bool operator== (const sc_unsigned &b) const
 
bool operator== (const sc_signed &b) const
 
bool operator== (const sc_uint_base &b) const
 
bool operator== (const sc_int_base &b) const
 
bool operator== (unsigned long b) const
 
bool operator== (long b) const
 
bool operator== (unsigned int b) const
 
bool operator== (int b) const
 
bool operator== (uint64 b) const
 
bool operator== (int64 b) const
 
const std::string to_string () const
 
const std::string to_string (sc_numrep) const
 
const std::string to_string (sc_numrep, bool) const
 
int64 to_int64 () const
 
uint64 to_uint64 () const
 
int to_int () const
 
unsigned int to_uint () const
 
long to_long () const
 
unsigned long to_ulong () const
 
void print (::std::ostream &os=::std::cout) const
 
void scan (::std::istream &is=::std::cin)
 

Private Member Functions

 sc_subref ()
 

Additional Inherited Members

- Protected Member Functions inherited from sc_dt::sc_proxy< sc_subref_r< X > >
void check_bounds (int n) const
 
void check_wbounds (int n) const
 
sc_digit to_anything_unsigned () const
 
int64 to_anything_signed () const
 
- Protected Attributes inherited from sc_dt::sc_subref_r< X >
X & m_obj
 
int m_hi
 
int m_lo
 
int m_len
 

Detailed Description

template<class X>
class sc_dt::sc_subref< X >

Definition at line 92 of file sc_proxy.hh.

Member Typedef Documentation

◆ base_type

template<class X >
typedef sc_subref_r<X> sc_dt::sc_subref< X >::base_type

Definition at line 865 of file sc_bit_proxies.hh.

Constructor & Destructor Documentation

◆ sc_subref() [1/3]

template<class X >
sc_dt::sc_subref< X >::sc_subref ( X & obj_,
int hi_,
int lo_ )
inline

Definition at line 868 of file sc_bit_proxies.hh.

◆ sc_subref() [2/3]

template<class X >
sc_dt::sc_subref< X >::sc_subref ( const sc_subref< X > & a)
inline

Definition at line 871 of file sc_bit_proxies.hh.

◆ sc_subref() [3/3]

template<class X >
sc_dt::sc_subref< X >::sc_subref ( )
private

Member Function Documentation

◆ clone()

template<class X >
sc_subref< X > * sc_dt::sc_subref< X >::clone ( ) const
inline

Definition at line 874 of file sc_bit_proxies.hh.

References sc_dt::sc_subref< X >::sc_subref().

◆ operator=() [1/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( const bool * a)
inline

Definition at line 896 of file sc_bit_proxies.hh.

References a, and sc_dt::sc_proxy< sc_subref_r< X > >::assign_().

◆ operator=() [2/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( const char * a)
inline

Definition at line 889 of file sc_bit_proxies.hh.

References a, and sc_dt::sc_proxy< sc_subref_r< X > >::assign_().

◆ operator=() [3/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( const sc_int_base & a)
inline

Definition at line 931 of file sc_bit_proxies.hh.

References a, and sc_dt::sc_proxy< sc_subref_r< X > >::assign_().

◆ operator=() [4/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( const sc_logic * a)
inline

Definition at line 903 of file sc_bit_proxies.hh.

References a, and sc_dt::sc_proxy< sc_subref_r< X > >::assign_().

◆ operator=() [5/16]

template<class X >
template<class Y >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( const sc_proxy< Y > & a)
inline

Definition at line 879 of file sc_bit_proxies.hh.

References a, and sc_dt::sc_proxy< sc_subref_r< X > >::assign_().

◆ operator=() [6/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( const sc_signed & a)
inline

Definition at line 917 of file sc_bit_proxies.hh.

References a, and sc_dt::sc_proxy< sc_subref_r< X > >::assign_().

◆ operator=() [7/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( const sc_subref< X > & a)
inline

Definition at line 1169 of file sc_lv_base.hh.

References b, len, and sc_dt::sc_min().

◆ operator=() [8/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( const sc_subref_r< X > & a)
inline

Definition at line 1151 of file sc_lv_base.hh.

References b, len, and sc_dt::sc_min().

◆ operator=() [9/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( const sc_uint_base & a)
inline

Definition at line 924 of file sc_bit_proxies.hh.

References a, and sc_dt::sc_proxy< sc_subref_r< X > >::assign_().

◆ operator=() [10/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( const sc_unsigned & a)
inline

Definition at line 910 of file sc_bit_proxies.hh.

References a, and sc_dt::sc_proxy< sc_subref_r< X > >::assign_().

◆ operator=() [11/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( int a)
inline

Definition at line 959 of file sc_bit_proxies.hh.

References a, and sc_dt::sc_proxy< sc_subref_r< X > >::assign_().

◆ operator=() [12/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( int64 a)
inline

Definition at line 973 of file sc_bit_proxies.hh.

References a, and sc_dt::sc_proxy< sc_subref_r< X > >::assign_().

◆ operator=() [13/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( long a)
inline

Definition at line 945 of file sc_bit_proxies.hh.

References a, and sc_dt::sc_proxy< sc_subref_r< X > >::assign_().

◆ operator=() [14/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( uint64 a)
inline

Definition at line 966 of file sc_bit_proxies.hh.

References a, and sc_dt::sc_proxy< sc_subref_r< X > >::assign_().

◆ operator=() [15/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( unsigned int a)
inline

Definition at line 952 of file sc_bit_proxies.hh.

References a, and sc_dt::sc_proxy< sc_subref_r< X > >::assign_().

◆ operator=() [16/16]

template<class X >
sc_subref< X > & sc_dt::sc_subref< X >::operator= ( unsigned long a)
inline

Definition at line 938 of file sc_bit_proxies.hh.

References a, and sc_dt::sc_proxy< sc_subref_r< X > >::assign_().

◆ scan()

template<class T >
void sc_dt::sc_subref< T >::scan ( ::std::istream & is = ::std::cin)
inline

Definition at line 2557 of file sc_bit_proxies.hh.


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

Generated on Tue Jun 18 2024 16:24:55 for gem5 by doxygen 1.11.0