gem5  v22.1.0.0
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
sc_dt::sc_fxnum_bitref Class Reference

#include <sc_fxnum.hh>

Public Member Functions

 sc_fxnum_bitref (const sc_fxnum_bitref &)
 operator bool () const
void print (::std::ostream &=::std::cout) const
void scan (::std::istream &=::std::cin)
void dump (::std::ostream &=::std::cout) const

Private Member Functions

bool get () const
void set (bool)
 sc_fxnum_bitref (sc_fxnum &, int)
 sc_fxnum_bitref ()

Private Attributes

int m_idx


class sc_fxnum
class sc_fxnum_fast_bitref

Detailed Description

Definition at line 97 of file sc_fxnum.hh.

Constructor & Destructor Documentation

◆ sc_fxnum_bitref() [1/3]

sc_dt::sc_fxnum_bitref::sc_fxnum_bitref ( sc_fxnum num_,
int  idx_ 

Definition at line 1207 of file sc_fxnum.hh.

◆ sc_fxnum_bitref() [2/3]

sc_dt::sc_fxnum_bitref::sc_fxnum_bitref ( const sc_fxnum_bitref a)

Definition at line 1212 of file sc_fxnum.hh.

◆ sc_fxnum_bitref() [3/3]

sc_dt::sc_fxnum_bitref::sc_fxnum_bitref ( )

Member Function Documentation

◆ dump()

void sc_dt::sc_fxnum_bitref::dump ( ::std::ostream &  os = ::std::cout) const

Definition at line 83 of file

References sc_dt::sc_fxnum::dump(), m_idx, m_num, and gem5::X86ISA::os.

◆ get()

bool sc_dt::sc_fxnum_bitref::get ( ) const

Definition at line 68 of file

References sc_dt::sc_fxnum::get_bit(), m_idx, and m_num.

Referenced by operator bool(), and print().

◆ operator bool()

sc_dt::sc_fxnum_bitref::operator bool ( ) const

Definition at line 1370 of file sc_fxnum.hh.

References get(), m_num, and SC_FXNUM_OBSERVER_READ_.

◆ print()

void sc_dt::sc_fxnum_bitref::print ( ::std::ostream &  os = ::std::cout) const

Definition at line 72 of file

References get(), and gem5::X86ISA::os.

◆ scan()

void sc_dt::sc_fxnum_bitref::scan ( ::std::istream &  is = ::std::cin)

Definition at line 75 of file

References gem5::ArmISA::b, and gem5::MipsISA::is.

◆ set()

void sc_dt::sc_fxnum_bitref::set ( bool  high)

Definition at line 69 of file

References gem5::high, m_idx, m_num, and sc_dt::sc_fxnum::set_bit().

Friends And Related Function Documentation

◆ sc_fxnum

friend class sc_fxnum

Definition at line 99 of file sc_fxnum.hh.

◆ sc_fxnum_fast_bitref

friend class sc_fxnum_fast_bitref

Definition at line 100 of file sc_fxnum.hh.

Member Data Documentation

◆ m_idx

int sc_dt::sc_fxnum_bitref::m_idx

Definition at line 141 of file sc_fxnum.hh.

Referenced by dump(), get(), and set().

◆ m_num

sc_fxnum& sc_dt::sc_fxnum_bitref::m_num

Definition at line 140 of file sc_fxnum.hh.

Referenced by dump(), get(), operator bool(), and set().

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

Generated on Wed Dec 21 2022 10:25:09 for gem5 by doxygen 1.9.1