gem5 v25.0.0.1
Loading...
Searching...
No Matches
sc_dt::sc_fxnum_subref Class Reference

#include <sc_fxnum.hh>

Public Member Functions

 sc_fxnum_subref (const sc_fxnum_subref &)
 ~sc_fxnum_subref ()
bool and_reduce () const
bool nand_reduce () const
bool or_reduce () const
bool nor_reduce () const
bool xor_reduce () const
bool xnor_reduce () const
int length () 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
const std::string to_string () const
const std::string to_string (sc_numrep) const
const std::string to_string (sc_numrep, bool) const
 operator sc_bv_base () 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
bool set ()
 sc_fxnum_subref (sc_fxnum &, int, int)
 sc_fxnum_subref ()

Private Attributes

sc_fxnumm_num
int m_from
int m_to
sc_bv_basem_bv

Friends

class sc_fxnum
class sc_fxnum_fast_subref

Detailed Description

Definition at line 213 of file sc_fxnum.hh.

Constructor & Destructor Documentation

◆ sc_fxnum_subref() [1/3]

sc_dt::sc_fxnum_subref::sc_fxnum_subref ( sc_fxnum & num_,
int from_,
int to_ )
inlineprivate

Definition at line 1592 of file sc_fxnum.hh.

References m_bv, m_from, m_num, m_to, sc_fxnum, sc_dt::sc_max(), and sc_dt::sc_min().

Referenced by sc_fxnum_fast_subref, and sc_fxnum_subref().

◆ sc_fxnum_subref() [2/3]

sc_dt::sc_fxnum_subref::sc_fxnum_subref ( const sc_fxnum_subref & a)
inline

Definition at line 1598 of file sc_fxnum.hh.

References a, m_bv, m_from, m_num, m_to, and sc_fxnum_subref().

◆ ~sc_fxnum_subref()

sc_dt::sc_fxnum_subref::~sc_fxnum_subref ( )
inline

Definition at line 1604 of file sc_fxnum.hh.

References m_bv.

◆ sc_fxnum_subref() [3/3]

sc_dt::sc_fxnum_subref::sc_fxnum_subref ( )
private

Member Function Documentation

◆ and_reduce()

bool sc_dt::sc_fxnum_subref::and_reduce ( ) const

◆ dump()

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

Definition at line 160 of file sc_fxnum.cc.

References m_from, m_num, and m_to.

◆ get()

bool sc_dt::sc_fxnum_subref::get ( ) const
private

◆ length()

int sc_dt::sc_fxnum_subref::length ( ) const
inline

Definition at line 1770 of file sc_fxnum.hh.

References m_bv.

◆ nand_reduce()

bool sc_dt::sc_fxnum_subref::nand_reduce ( ) const

◆ nor_reduce()

bool sc_dt::sc_fxnum_subref::nor_reduce ( ) const

◆ operator sc_bv_base()

sc_dt::sc_fxnum_subref::operator sc_bv_base ( ) const
inline

Definition at line 1848 of file sc_fxnum.hh.

References get(), m_bv, m_num, and SC_FXNUM_OBSERVER_READ_.

◆ or_reduce()

bool sc_dt::sc_fxnum_subref::or_reduce ( ) const

◆ print()

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

Definition at line 146 of file sc_fxnum.cc.

References get(), and m_bv.

◆ scan()

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

Definition at line 153 of file sc_fxnum.cc.

References m_bv, and set().

◆ set()

bool sc_dt::sc_fxnum_subref::set ( )
private

Definition at line 139 of file sc_fxnum.cc.

References m_bv, m_from, m_num, and m_to.

Referenced by scan().

◆ to_int()

int sc_dt::sc_fxnum_subref::to_int ( ) const
inline

Definition at line 1777 of file sc_fxnum.hh.

References get(), m_bv, m_num, and SC_FXNUM_OBSERVER_READ_.

◆ to_int64()

int64 sc_dt::sc_fxnum_subref::to_int64 ( ) const
inline

Definition at line 1785 of file sc_fxnum.hh.

References get(), m_bv, m_num, and SC_FXNUM_OBSERVER_READ_.

◆ to_long()

long sc_dt::sc_fxnum_subref::to_long ( ) const
inline

Definition at line 1809 of file sc_fxnum.hh.

References get(), m_bv, m_num, and SC_FXNUM_OBSERVER_READ_.

◆ to_string() [1/3]

const std::string sc_dt::sc_fxnum_subref::to_string ( ) const
inline

Definition at line 1826 of file sc_fxnum.hh.

References get(), and m_bv.

◆ to_string() [2/3]

const std::string sc_dt::sc_fxnum_subref::to_string ( sc_numrep numrep) const
inline

Definition at line 1833 of file sc_fxnum.hh.

References get(), and m_bv.

◆ to_string() [3/3]

const std::string sc_dt::sc_fxnum_subref::to_string ( sc_numrep numrep,
bool w_prefix ) const
inline

Definition at line 1840 of file sc_fxnum.hh.

References get(), and m_bv.

◆ to_uint()

unsigned int sc_dt::sc_fxnum_subref::to_uint ( ) const
inline

Definition at line 1793 of file sc_fxnum.hh.

References get(), m_bv, m_num, and SC_FXNUM_OBSERVER_READ_.

◆ to_uint64()

uint64 sc_dt::sc_fxnum_subref::to_uint64 ( ) const
inline

Definition at line 1801 of file sc_fxnum.hh.

References get(), m_bv, m_num, and SC_FXNUM_OBSERVER_READ_.

◆ to_ulong()

unsigned long sc_dt::sc_fxnum_subref::to_ulong ( ) const
inline

Definition at line 1817 of file sc_fxnum.hh.

References get(), m_bv, m_num, and SC_FXNUM_OBSERVER_READ_.

◆ xnor_reduce()

bool sc_dt::sc_fxnum_subref::xnor_reduce ( ) const

◆ xor_reduce()

bool sc_dt::sc_fxnum_subref::xor_reduce ( ) const

◆ sc_fxnum

friend class sc_fxnum
friend

Definition at line 215 of file sc_fxnum.hh.

References sc_fxnum.

Referenced by sc_fxnum, sc_fxnum_fast_subref, and sc_fxnum_subref().

◆ sc_fxnum_fast_subref

friend class sc_fxnum_fast_subref
friend

Definition at line 216 of file sc_fxnum.hh.

References sc_fxnum, sc_fxnum_fast_subref, and sc_fxnum_subref().

Referenced by sc_fxnum_fast_subref.

Member Data Documentation

◆ m_bv

◆ m_from

int sc_dt::sc_fxnum_subref::m_from
private

Definition at line 331 of file sc_fxnum.hh.

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

◆ m_num

sc_fxnum& sc_dt::sc_fxnum_subref::m_num
private

◆ m_to

int sc_dt::sc_fxnum_subref::m_to
private

Definition at line 332 of file sc_fxnum.hh.

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


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

Generated on Sat Oct 18 2025 08:07:54 for gem5 by doxygen 1.14.0