gem5  v21.2.1.1
Public Types | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
sc_dt::sc_subref_r< X > Class Template Reference

#include <sc_bit_proxies.hh>

Public Types

typedef sc_proxy< sc_subref_r< X > >::value_type value_type
 

Public Member Functions

 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
 

Protected Attributes

X & m_obj
 
int m_hi
 
int m_lo
 
int m_len
 

Private Member Functions

void check_bounds ()
 
 sc_subref_r ()
 
sc_subref_r< X > & operator= (const sc_subref_r< X > &)
 

Detailed Description

template<class X>
class sc_dt::sc_subref_r< X >

Definition at line 72 of file sc_bit_proxies.hh.

Member Typedef Documentation

◆ value_type

template<class X >
typedef sc_proxy<sc_subref_r<X> >::value_type sc_dt::sc_subref_r< X >::value_type

Definition at line 636 of file sc_bit_proxies.hh.

Constructor & Destructor Documentation

◆ sc_subref_r() [1/3]

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

Definition at line 639 of file sc_bit_proxies.hh.

◆ sc_subref_r() [2/3]

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

Definition at line 644 of file sc_bit_proxies.hh.

◆ sc_subref_r() [3/3]

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

Member Function Documentation

◆ check_bounds()

template<class X >
void sc_dt::sc_subref_r< X >::check_bounds
inlineprivate

Definition at line 2223 of file sc_bit_proxies.hh.

◆ clean_tail()

template<class X >
void sc_dt::sc_subref_r< X >::clean_tail ( )
inline

Definition at line 665 of file sc_bit_proxies.hh.

◆ clone()

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

Definition at line 649 of file sc_bit_proxies.hh.

◆ get_bit()

template<class X >
sc_subref_r< X >::value_type sc_dt::sc_subref_r< X >::get_bit ( int  n) const
inline

◆ get_cword()

template<class X >
sc_digit sc_dt::sc_subref_r< X >::get_cword ( int  i) const
inline

◆ get_word()

template<class X >
sc_digit sc_dt::sc_subref_r< X >::get_word ( int  i) const
inline

◆ is_01()

template<class X >
bool sc_dt::sc_subref_r< X >::is_01
inline

Definition at line 2364 of file sc_bit_proxies.hh.

◆ length()

template<class X >
int sc_dt::sc_subref_r< X >::length ( ) const
inline

Definition at line 652 of file sc_bit_proxies.hh.

◆ operator=()

template<class X >
sc_subref_r<X>& sc_dt::sc_subref_r< X >::operator= ( const sc_subref_r< X > &  )
private

◆ reversed()

template<class X >
bool sc_dt::sc_subref_r< X >::reversed ( ) const
inline

Definition at line 669 of file sc_bit_proxies.hh.

◆ set_bit()

template<class X >
void sc_dt::sc_subref_r< X >::set_bit ( int  n,
value_type  value 
)
inline

Definition at line 2251 of file sc_bit_proxies.hh.

◆ set_cword()

template<class X >
void sc_dt::sc_subref_r< X >::set_cword ( int  i,
sc_digit  w 
)
inline

Definition at line 2337 of file sc_bit_proxies.hh.

References gem5::ArmISA::i, and sc_dt::SC_DIGIT_ZERO.

◆ set_word()

template<class X >
void sc_dt::sc_subref_r< X >::set_word ( int  i,
sc_digit  w 
)
inline

◆ size()

template<class X >
int sc_dt::sc_subref_r< X >::size ( ) const
inline

Definition at line 654 of file sc_bit_proxies.hh.

Member Data Documentation

◆ m_hi

template<class X >
int sc_dt::sc_subref_r< X >::m_hi
protected

Definition at line 673 of file sc_bit_proxies.hh.

◆ m_len

template<class X >
int sc_dt::sc_subref_r< X >::m_len
protected

Definition at line 675 of file sc_bit_proxies.hh.

◆ m_lo

template<class X >
int sc_dt::sc_subref_r< X >::m_lo
protected

Definition at line 674 of file sc_bit_proxies.hh.

◆ m_obj

template<class X >
X& sc_dt::sc_subref_r< X >::m_obj
protected

Definition at line 672 of file sc_bit_proxies.hh.


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

Generated on Wed May 4 2022 12:16:40 for gem5 by doxygen 1.8.17