sysc/datatypes/bit/sc_bit.h File Reference
#include "sysc/datatypes/int/sc_nbdefs.h"
#include "sysc/utils/sc_iostream.h"
Go to the source code of this file.
Classes |
class | sc_dt::sc_bit |
Namespaces |
namespace | sc_dt |
Defines |
#define | DEFN_TO_VALUE_T(tp) |
#define | DEFN_CTOR_T(tp) |
#define | DEFN_ASN_OP_T(op, tp) |
#define | DEFN_ASN_OP(op) |
#define | DEFN_BIN_FUN_T(ret, fun, tp) |
#define | DEFN_BIN_FUN(ret, fun) |
#define | DEFN_TRN_FUN_T(fun, tp) |
#define | DEFN_TRN_FUN(fun) |
Functions |
void | sc_dt::sc_deprecated_sc_bit () |
bool | sc_dt::operator== (const sc_bit &a, const sc_bit &b) |
bool | sc_dt::operator!= (const sc_bit &a, const sc_bit &b) |
bool | sc_dt::equal (const sc_bit &a, const sc_bit &b) |
bool | sc_dt::not_equal (const sc_bit &a, const sc_bit &b) |
const sc_bit | sc_dt::operator~ (const sc_bit &a) |
const sc_bit | sc_dt::b_not (const sc_bit &a) |
void | sc_dt::b_not (sc_bit &r, const sc_bit &a) |
const sc_bit | sc_dt::operator& (const sc_bit &a, const sc_bit &b) |
const sc_bit | sc_dt::operator| (const sc_bit &a, const sc_bit &b) |
const sc_bit | sc_dt::operator^ (const sc_bit &a, const sc_bit &b) |
const sc_bit | sc_dt::b_and (const sc_bit &a, const sc_bit &b) |
const sc_bit | sc_dt::b_or (const sc_bit &a, const sc_bit &b) |
const sc_bit | sc_dt::b_xor (const sc_bit &a, const sc_bit &b) |
inline::std::ostream & | sc_dt::operator<< (::std::ostream &os, const sc_bit &a) |
inline::std::istream & | sc_dt::operator>> (::std::istream &is, sc_bit &a) |
Define Documentation
#define DEFN_ASN_OP |
( |
op |
|
) |
|
#define DEFN_ASN_OP_T |
( |
op, |
|
|
tp |
|
) |
|
Value:sc_bit& operator op( tp b ) \
{ return ( *this op sc_bit( b ) ); }
Definition at line 174 of file sc_bit.h.
#define DEFN_BIN_FUN |
( |
ret, |
|
|
fun |
|
) |
|
#define DEFN_BIN_FUN_T |
( |
ret, |
|
|
fun, |
|
|
tp |
|
) |
|
Value:inline ret fun( const sc_bit& a, tp b ) \
{ return fun(a, sc_bit(b) ); } \
inline ret fun( tp b, const sc_bit& a ) \
{ return fun( sc_bit(a), b ); }
Definition at line 270 of file sc_bit.h.
#define DEFN_CTOR_T |
( |
tp |
|
) |
|
#define DEFN_TO_VALUE_T |
( |
tp |
|
) |
|
Value:static bool to_value( tp i ) \
{ return to_value( (int) i); }
Definition at line 111 of file sc_bit.h.
#define DEFN_TRN_FUN |
( |
fun |
|
) |
|
#define DEFN_TRN_FUN_T |
( |
fun, |
|
|
tp |
|
) |
|
Value:inline void fun( sc_bit& r, const sc_bit& a, tp b ) \
{ r = fun( a, sc_bit(b) ); } \
inline void fun( sc_bit& r, tp a, const sc_bit& b ) \
{ r = fun( sc_bit(a), b ); }
Definition at line 359 of file sc_bit.h.