Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

sc_dt::sc_bit Class Reference

#include <sc_bit.h>

List of all members.

Public Methods

 sc_bit ()
 sc_bit (unsigned long long a)
 sc_bit (bool a)
 sc_bit (int a)
 sc_bit (char a)
 sc_bit (const sc_logic &a)
 sc_bit (const sc_bit &a)
 ~sc_bit ()
sc_bit & operator= (const sc_bit &b)
sc_bit & operator= (long long b)
sc_bit & operator= (unsigned long long b)
sc_bit & operator= (long b)
sc_bit & operator= (unsigned long b)
sc_bit & operator= (int b)
sc_bit & operator= (bool b)
sc_bit & operator= (char b)
sc_bit & operator= (const sc_logic &b)
sc_bit & operator &= (const sc_bit &b)
sc_bit & operator &= (int b)
sc_bit & operator &= (bool b)
sc_bit & operator &= (char b)
sc_bit & operator|= (const sc_bit &b)
sc_bit & operator|= (int b)
sc_bit & operator|= (bool b)
sc_bit & operator|= (char b)
sc_bit & operator^= (const sc_bit &b)
sc_bit & operator^= (int b)
sc_bit & operator^= (bool b)
sc_bit & operator^= (char b)
 operator bool () const
bool operator! () const
bool to_bool () const
char to_char () const
sc_bit & b_not ()
void print (ostream &os=cout) const
void scan (istream &=cin)

Friends

bool operator== (const sc_bit &a, const sc_bit &b)
bool operator== (const sc_bit &a, int b)
bool operator== (const sc_bit &a, bool b)
bool operator== (const sc_bit &a, char b)
bool operator== (int a, const sc_bit &b)
bool operator== (bool a, const sc_bit &b)
bool operator== (char a, const sc_bit &b)
bool equal (const sc_bit &a, const sc_bit &b)
bool equal (const sc_bit &a, int b)
bool equal (const sc_bit &a, bool b)
bool equal (const sc_bit &a, char b)
bool equal (int a, const sc_bit &b)
bool equal (bool a, const sc_bit &b)
bool equal (char a, const sc_bit &b)
bool operator!= (const sc_bit &a, const sc_bit &b)
bool operator!= (const sc_bit &a, int b)
bool operator!= (const sc_bit &a, bool b)
bool operator!= (const sc_bit &a, char b)
bool operator!= (int a, const sc_bit &b)
bool operator!= (bool a, const sc_bit &b)
bool operator!= (char a, const sc_bit &b)
bool not_equal (const sc_bit &a, const sc_bit &b)
bool not_equal (const sc_bit &a, int b)
bool not_equal (const sc_bit &a, bool b)
bool not_equal (const sc_bit &a, char b)
bool not_equal (int a, const sc_bit &b)
bool not_equal (bool a, const sc_bit &b)
bool not_equal (char a, const sc_bit &b)
const sc_bit operator~ (const sc_bit &a)
const sc_bit b_not (const sc_bit &a)
void b_not (sc_bit &r, const sc_bit &a)
const sc_bit operator| (const sc_bit &a, const sc_bit &b)
const sc_bit operator| (const sc_bit &a, int b)
const sc_bit operator| (const sc_bit &a, bool b)
const sc_bit operator| (const sc_bit &a, char b)
const sc_bit operator| (int a, const sc_bit &b)
const sc_bit operator| (bool a, const sc_bit &b)
const sc_bit operator| (char a, const sc_bit &b)
const sc_bit b_or (const sc_bit &a, const sc_bit &b)
const sc_bit b_or (const sc_bit &a, int b)
const sc_bit b_or (const sc_bit &a, bool b)
const sc_bit b_or (const sc_bit &a, char b)
const sc_bit b_or (int a, const sc_bit &b)
const sc_bit b_or (bool a, const sc_bit &b)
const sc_bit b_or (char a, const sc_bit &b)
void b_or (sc_bit &r, const sc_bit &a, const sc_bit &b)
void b_or (sc_bit &r, const sc_bit &a, int b)
void b_or (sc_bit &r, const sc_bit &a, bool b)
void b_or (sc_bit &r, const sc_bit &a, char b)
void b_or (sc_bit &r, int a, const sc_bit &b)
void b_or (sc_bit &r, bool a, const sc_bit &b)
void b_or (sc_bit &r, char a, const sc_bit &b)
const sc_bit operator & (const sc_bit &a, const sc_bit &b)
const sc_bit operator & (const sc_bit &a, int b)
const sc_bit operator & (const sc_bit &a, bool b)
const sc_bit operator & (const sc_bit &a, char b)
const sc_bit operator & (int a, const sc_bit &b)
const sc_bit operator & (bool a, const sc_bit &b)
const sc_bit operator & (char a, const sc_bit &b)
const sc_bit b_and (const sc_bit &a, const sc_bit &b)
const sc_bit b_and (const sc_bit &a, int b)
const sc_bit b_and (const sc_bit &a, bool b)
const sc_bit b_and (const sc_bit &a, char b)
const sc_bit b_and (int a, const sc_bit &b)
const sc_bit b_and (bool a, const sc_bit &b)
const sc_bit b_and (char a, const sc_bit &b)
void b_and (sc_bit &r, const sc_bit &a, const sc_bit &b)
void b_and (sc_bit &r, const sc_bit &a, int b)
void b_and (sc_bit &r, const sc_bit &a, bool b)
void b_and (sc_bit &r, const sc_bit &a, char b)
void b_and (sc_bit &r, int a, const sc_bit &b)
void b_and (sc_bit &r, bool a, const sc_bit &b)
void b_and (sc_bit &r, char a, const sc_bit &b)
const sc_bit operator^ (const sc_bit &a, const sc_bit &b)
const sc_bit operator^ (const sc_bit &a, int b)
const sc_bit operator^ (const sc_bit &a, bool b)
const sc_bit operator^ (const sc_bit &a, char b)
const sc_bit operator^ (int a, const sc_bit &b)
const sc_bit operator^ (bool a, const sc_bit &b)
const sc_bit operator^ (char a, const sc_bit &b)
const sc_bit b_xor (const sc_bit &a, const sc_bit &b)
const sc_bit b_xor (const sc_bit &a, int b)
const sc_bit b_xor (const sc_bit &a, bool b)
const sc_bit b_xor (const sc_bit &a, char b)
const sc_bit b_xor (int a, const sc_bit &b)
const sc_bit b_xor (bool a, const sc_bit &b)
const sc_bit b_xor (char a, const sc_bit &b)
void b_xor (sc_bit &r, const sc_bit &a, const sc_bit &b)
void b_xor (sc_bit &r, const sc_bit &a, int b)
void b_xor (sc_bit &r, const sc_bit &a, bool b)
void b_xor (sc_bit &r, const sc_bit &a, char b)
void b_xor (sc_bit &r, int a, const sc_bit &b)
void b_xor (sc_bit &r, bool a, const sc_bit &b)
void b_xor (sc_bit &r, char a, const sc_bit &b)


Constructor & Destructor Documentation

sc_dt::sc_bit::sc_bit   [inline]
 

Definition at line 88 of file sc_bit.h.

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

sc_dt::sc_bit::sc_bit unsigned long long    a [inline, explicit]
 

Definition at line 92 of file sc_bit.h.

sc_dt::sc_bit::sc_bit bool    a [inline, explicit]
 

Definition at line 96 of file sc_bit.h.

sc_dt::sc_bit::sc_bit int    a [inline, explicit]
 

Definition at line 100 of file sc_bit.h.

sc_dt::sc_bit::sc_bit char    a [inline, explicit]
 

Definition at line 104 of file sc_bit.h.

sc_dt::sc_bit::sc_bit const sc_logic   a [explicit]
 

Definition at line 75 of file sc_bit.cpp.

sc_dt::sc_bit::sc_bit const sc_bit &    a [inline]
 

Definition at line 114 of file sc_bit.h.

sc_dt::sc_bit::~sc_bit   [inline]
 

Definition at line 122 of file sc_bit.h.


Member Function Documentation

sc_bit& sc_dt::sc_bit::b_not   [inline]
 

Definition at line 324 of file sc_bit.h.

sc_bit& sc_dt::sc_bit::operator &= char    b [inline]
 

Definition at line 167 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator &= bool    b [inline]
 

Definition at line 164 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator &= int    b [inline]
 

Definition at line 161 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator &= const sc_bit &    b [inline]
 

Definition at line 158 of file sc_bit.h.

References m_val.

sc_dt::sc_bit::operator bool   const [inline]
 

Definition at line 202 of file sc_bit.h.

bool sc_dt::sc_bit::operator!   const [inline]
 

Definition at line 205 of file sc_bit.h.

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

Definition at line 83 of file sc_bit.cpp.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator= char    b [inline]
 

Definition at line 150 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator= bool    b [inline]
 

Definition at line 147 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator= int    b [inline]
 

Definition at line 144 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator= unsigned long    b [inline]
 

Definition at line 141 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator= long    b [inline]
 

Definition at line 138 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator= unsigned long long    b [inline]
 

Definition at line 135 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator= long long    b [inline]
 

Definition at line 132 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator= const sc_bit &    b [inline]
 

Definition at line 129 of file sc_bit.h.

References m_val.

sc_bit& sc_dt::sc_bit::operator^= char    b [inline]
 

Definition at line 193 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator^= bool    b [inline]
 

Definition at line 190 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator^= int    b [inline]
 

Definition at line 187 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator^= const sc_bit &    b [inline]
 

Definition at line 184 of file sc_bit.h.

References m_val.

sc_bit& sc_dt::sc_bit::operator|= char    b [inline]
 

Definition at line 180 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator|= bool    b [inline]
 

Definition at line 177 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator|= int    b [inline]
 

Definition at line 174 of file sc_bit.h.

References sc_bit().

sc_bit& sc_dt::sc_bit::operator|= const sc_bit &    b [inline]
 

Definition at line 171 of file sc_bit.h.

References m_val.

void sc_dt::sc_bit::print ostream &    os = cout const [inline]
 

Definition at line 556 of file sc_bit.h.

References to_bool().

Referenced by sc_dt::operator<<().

void sc_dt::sc_bit::scan istream &    = cin
 

Definition at line 92 of file sc_bit.cpp.

Referenced by sc_dt::operator>>().

bool sc_dt::sc_bit::to_bool   const [inline]
 

Definition at line 211 of file sc_bit.h.

Referenced by print().

char sc_dt::sc_bit::to_char   const [inline]
 

Definition at line 214 of file sc_bit.h.


Friends And Related Function Documentation

void b_and sc_bit &    r,
char    a,
const sc_bit &    b
[friend]
 

Definition at line 478 of file sc_bit.h.

void b_and sc_bit &    r,
bool    a,
const sc_bit &    b
[friend]
 

Definition at line 475 of file sc_bit.h.

void b_and sc_bit &    r,
int    a,
const sc_bit &    b
[friend]
 

Definition at line 472 of file sc_bit.h.

void b_and sc_bit &    r,
const sc_bit &    a,
char    b
[friend]
 

Definition at line 469 of file sc_bit.h.

void b_and sc_bit &    r,
const sc_bit &    a,
bool    b
[friend]
 

Definition at line 466 of file sc_bit.h.

void b_and sc_bit &    r,
const sc_bit &    a,
int    b
[friend]
 

Definition at line 463 of file sc_bit.h.

void b_and sc_bit &    r,
const sc_bit &    a,
const sc_bit &    b
[friend]
 

Definition at line 460 of file sc_bit.h.

const sc_bit b_and char    a,
const sc_bit &    b
[friend]
 

Definition at line 455 of file sc_bit.h.

const sc_bit b_and bool    a,
const sc_bit &    b
[friend]
 

Definition at line 452 of file sc_bit.h.

const sc_bit b_and int    a,
const sc_bit &    b
[friend]
 

Definition at line 449 of file sc_bit.h.

const sc_bit b_and const sc_bit &    a,
char    b
[friend]
 

Definition at line 446 of file sc_bit.h.

const sc_bit b_and const sc_bit &    a,
bool    b
[friend]
 

Definition at line 443 of file sc_bit.h.

const sc_bit b_and const sc_bit &    a,
int    b
[friend]
 

Definition at line 440 of file sc_bit.h.

const sc_bit b_and const sc_bit &    a,
const sc_bit &    b
[friend]
 

Definition at line 437 of file sc_bit.h.

void b_not sc_bit &    r,
const sc_bit &    a
[friend]
 

Definition at line 334 of file sc_bit.h.

const sc_bit b_not const sc_bit &    a [friend]
 

Definition at line 329 of file sc_bit.h.

void b_or sc_bit &    r,
char    a,
const sc_bit &    b
[friend]
 

Definition at line 406 of file sc_bit.h.

void b_or sc_bit &    r,
bool    a,
const sc_bit &    b
[friend]
 

Definition at line 403 of file sc_bit.h.

void b_or sc_bit &    r,
int    a,
const sc_bit &    b
[friend]
 

Definition at line 400 of file sc_bit.h.

void b_or sc_bit &    r,
const sc_bit &    a,
char    b
[friend]
 

Definition at line 397 of file sc_bit.h.

void b_or sc_bit &    r,
const sc_bit &    a,
bool    b
[friend]
 

Definition at line 394 of file sc_bit.h.

void b_or sc_bit &    r,
const sc_bit &    a,
int    b
[friend]
 

Definition at line 391 of file sc_bit.h.

void b_or sc_bit &    r,
const sc_bit &    a,
const sc_bit &    b
[friend]
 

Definition at line 388 of file sc_bit.h.

const sc_bit b_or char    a,
const sc_bit &    b
[friend]
 

Definition at line 383 of file sc_bit.h.

const sc_bit b_or bool    a,
const sc_bit &    b
[friend]
 

Definition at line 380 of file sc_bit.h.

const sc_bit b_or int    a,
const sc_bit &    b
[friend]
 

Definition at line 377 of file sc_bit.h.

const sc_bit b_or const sc_bit &    a,
char    b
[friend]
 

Definition at line 374 of file sc_bit.h.

const sc_bit b_or const sc_bit &    a,
bool    b
[friend]
 

Definition at line 371 of file sc_bit.h.

const sc_bit b_or const sc_bit &    a,
int    b
[friend]
 

Definition at line 368 of file sc_bit.h.

const sc_bit b_or const sc_bit &    a,
const sc_bit &    b
[friend]
 

Definition at line 365 of file sc_bit.h.

void b_xor sc_bit &    r,
char    a,
const sc_bit &    b
[friend]
 

Definition at line 550 of file sc_bit.h.

void b_xor sc_bit &    r,
bool    a,
const sc_bit &    b
[friend]
 

Definition at line 547 of file sc_bit.h.

void b_xor sc_bit &    r,
int    a,
const sc_bit &    b
[friend]
 

Definition at line 544 of file sc_bit.h.

void b_xor sc_bit &    r,
const sc_bit &    a,
char    b
[friend]
 

Definition at line 541 of file sc_bit.h.

void b_xor sc_bit &    r,
const sc_bit &    a,
bool    b
[friend]
 

Definition at line 538 of file sc_bit.h.

void b_xor sc_bit &    r,
const sc_bit &    a,
int    b
[friend]
 

Definition at line 535 of file sc_bit.h.

void b_xor sc_bit &    r,
const sc_bit &    a,
const sc_bit &    b
[friend]
 

Definition at line 532 of file sc_bit.h.

const sc_bit b_xor char    a,
const sc_bit &    b
[friend]
 

Definition at line 527 of file sc_bit.h.

const sc_bit b_xor bool    a,
const sc_bit &    b
[friend]
 

Definition at line 524 of file sc_bit.h.

const sc_bit b_xor int    a,
const sc_bit &    b
[friend]
 

Definition at line 521 of file sc_bit.h.

const sc_bit b_xor const sc_bit &    a,
char    b
[friend]
 

Definition at line 518 of file sc_bit.h.

const sc_bit b_xor const sc_bit &    a,
bool    b
[friend]
 

Definition at line 515 of file sc_bit.h.

const sc_bit b_xor const sc_bit &    a,
int    b
[friend]
 

Definition at line 512 of file sc_bit.h.

const sc_bit b_xor const sc_bit &    a,
const sc_bit &    b
[friend]
 

Definition at line 509 of file sc_bit.h.

bool equal char    a,
const sc_bit &    b
[friend]
 

Definition at line 263 of file sc_bit.h.

bool equal bool    a,
const sc_bit &    b
[friend]
 

Definition at line 260 of file sc_bit.h.

bool equal int    a,
const sc_bit &    b
[friend]
 

Definition at line 257 of file sc_bit.h.

bool equal const sc_bit &    a,
char    b
[friend]
 

Definition at line 254 of file sc_bit.h.

bool equal const sc_bit &    a,
bool    b
[friend]
 

Definition at line 251 of file sc_bit.h.

bool equal const sc_bit &    a,
int    b
[friend]
 

Definition at line 248 of file sc_bit.h.

bool equal const sc_bit &    a,
const sc_bit &    b
[friend]
 

Definition at line 245 of file sc_bit.h.

bool not_equal char    a,
const sc_bit &    b
[friend]
 

Definition at line 309 of file sc_bit.h.

bool not_equal bool    a,
const sc_bit &    b
[friend]
 

Definition at line 306 of file sc_bit.h.

bool not_equal int    a,
const sc_bit &    b
[friend]
 

Definition at line 303 of file sc_bit.h.

bool not_equal const sc_bit &    a,
char    b
[friend]
 

Definition at line 300 of file sc_bit.h.

bool not_equal const sc_bit &    a,
bool    b
[friend]
 

Definition at line 297 of file sc_bit.h.

bool not_equal const sc_bit &    a,
int    b
[friend]
 

Definition at line 294 of file sc_bit.h.

bool not_equal const sc_bit &    a,
const sc_bit &    b
[friend]
 

Definition at line 291 of file sc_bit.h.

const sc_bit operator & char    a,
const sc_bit &    b
[friend]
 

Definition at line 432 of file sc_bit.h<