gem5  v20.1.0.0
Public Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
sc_dt::sc_bit Class Reference

#include <sc_bit.hh>

Public Member Functions

 sc_bit ()
 
 sc_bit (const sc_logic &a)
 
 sc_bit (const sc_bit &a)
 
 ~sc_bit ()
 
sc_bitoperator= (const sc_bit &b)
 
sc_bitoperator= (const sc_logic &b)
 
sc_bitoperator&= (const sc_bit &b)
 
sc_bitoperator|= (const sc_bit &b)
 
sc_bitoperator^= (const sc_bit &b)
 
 operator bool () const
 
bool operator! () const
 
bool to_bool () const
 
char to_char () const
 
sc_bitb_not ()
 
void print (::std::ostream &os=::std::cout) const
 
void scan (::std::istream &=::std::cin)
 

Static Private Member Functions

static void invalid_value (char)
 
static void invalid_value (int)
 
static bool to_value (char c)
 
static bool to_value (int i)
 
static bool to_value (bool b)
 

Private Attributes

bool m_val
 

Friends

bool operator== (const sc_bit &a, const sc_bit &b)
 
bool operator!= (const sc_bit &a, const sc_bit &b)
 
const friend sc_bit operator~ (const sc_bit &a)
 
const friend sc_bit operator| (const sc_bit &a, const sc_bit &b)
 
const friend sc_bit operator& (const sc_bit &a, const sc_bit &b)
 
const friend sc_bit operator^ (const sc_bit &a, const sc_bit &b)
 

Detailed Description

Definition at line 118 of file sc_bit.hh.

Constructor & Destructor Documentation

◆ sc_bit() [1/3]

sc_dt::sc_bit::sc_bit ( )
inline

Definition at line 158 of file sc_bit.hh.

◆ sc_bit() [2/3]

sc_dt::sc_bit::sc_bit ( const sc_logic a)
explicit

Definition at line 128 of file sc_bit.cc.

◆ sc_bit() [3/3]

sc_dt::sc_bit::sc_bit ( const sc_bit a)
inline

Definition at line 178 of file sc_bit.hh.

References ArmISA::b, and m_val.

◆ ~sc_bit()

sc_dt::sc_bit::~sc_bit ( )
inline

Definition at line 182 of file sc_bit.hh.

Member Function Documentation

◆ b_not()

sc_bit& sc_dt::sc_bit::b_not ( )
inline

Definition at line 264 of file sc_bit.hh.

References ArmISA::a, and ArmISA::b.

◆ invalid_value() [1/2]

void sc_dt::sc_bit::invalid_value ( char  c)
staticprivate

Definition at line 110 of file sc_bit.cc.

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

◆ invalid_value() [2/2]

void sc_dt::sc_bit::invalid_value ( int  i)
staticprivate

Definition at line 119 of file sc_bit.cc.

References sc_core::SC_ID_IEEE_1666_DEPRECATION_, and SC_REPORT_INFO.

◆ operator bool()

sc_dt::sc_bit::operator bool ( ) const
inline

Definition at line 241 of file sc_bit.hh.

◆ operator!()

bool sc_dt::sc_bit::operator! ( ) const
inline

Definition at line 244 of file sc_bit.hh.

References X86ISA::os, and to_bool().

◆ operator&=()

sc_bit& sc_dt::sc_bit::operator&= ( const sc_bit b)
inline

Definition at line 210 of file sc_bit.hh.

References m_val.

◆ operator=() [1/2]

sc_bit& sc_dt::sc_bit::operator= ( const sc_bit b)
inline

Definition at line 187 of file sc_bit.hh.

References ArmISA::b, and m_val.

◆ operator=() [2/2]

sc_bit & sc_dt::sc_bit::operator= ( const sc_logic b)

Definition at line 135 of file sc_bit.cc.

◆ operator^=()

sc_bit& sc_dt::sc_bit::operator^= ( const sc_bit b)
inline

Definition at line 224 of file sc_bit.hh.

◆ operator|=()

sc_bit& sc_dt::sc_bit::operator|= ( const sc_bit b)
inline

Definition at line 217 of file sc_bit.hh.

References m_val.

◆ print()

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

Definition at line 276 of file sc_bit.hh.

◆ scan()

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

Definition at line 142 of file sc_bit.cc.

◆ to_bool()

bool sc_dt::sc_bit::to_bool ( ) const
inline

Definition at line 248 of file sc_bit.hh.

Referenced by operator!().

◆ to_char()

char sc_dt::sc_bit::to_char ( ) const
inline

Definition at line 249 of file sc_bit.hh.

◆ to_value() [1/3]

static bool sc_dt::sc_bit::to_value ( bool  b)
inlinestaticprivate

Definition at line 142 of file sc_bit.hh.

◆ to_value() [2/3]

static bool sc_dt::sc_bit::to_value ( char  c)
inlinestaticprivate

Definition at line 126 of file sc_bit.hh.

References sc_dt::sc_deprecated_sc_bit().

◆ to_value() [3/3]

static bool sc_dt::sc_bit::to_value ( int  i)
inlinestaticprivate

Definition at line 135 of file sc_bit.hh.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const sc_bit a,
const sc_bit b 
)
friend

Definition at line 303 of file sc_bit.hh.

◆ operator&

const friend sc_bit operator& ( const sc_bit a,
const sc_bit b 
)
friend

Definition at line 337 of file sc_bit.hh.

◆ operator==

bool operator== ( const sc_bit a,
const sc_bit b 
)
friend

Definition at line 297 of file sc_bit.hh.

◆ operator^

const friend sc_bit operator^ ( const sc_bit a,
const sc_bit b 
)
friend

Definition at line 349 of file sc_bit.hh.

◆ operator|

const friend sc_bit operator| ( const sc_bit a,
const sc_bit b 
)
friend

Definition at line 343 of file sc_bit.hh.

◆ operator~

const friend sc_bit operator~ ( const sc_bit a)
friend

Definition at line 326 of file sc_bit.hh.

Member Data Documentation

◆ m_val

bool sc_dt::sc_bit::m_val
private

Definition at line 280 of file sc_bit.hh.

Referenced by operator&=(), operator=(), operator|=(), and sc_bit().


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

Generated on Wed Sep 30 2020 14:03:09 for gem5 by doxygen 1.8.17