sc_dt::sc_logic Class Reference

#include <sysc/datatypes/bit/sc_logic.h>

List of all members.

Public Member Functions

 sc_logic ()
 sc_logic (const sc_logic &a)
 sc_logic (sc_logic_value_t v)
 sc_logic (bool a)
 sc_logic (char a)
 sc_logic (int a)
 sc_logic (const sc_bit &a)
 ~sc_logic ()
sc_logicoperator= (const sc_logic &a)
sc_logicoperator&= (const sc_logic &b)
sc_logicoperator|= (const sc_logic &b)
sc_logicoperator^= (const sc_logic &b)
const sc_logic operator~ () const
sc_logicb_not ()
sc_logic_value_t value () const
bool is_01 () const
bool to_bool () const
char to_char () const
void print (::std::ostream &os=::std::cout) const
void scan (::std::istream &is=::std::cin)

Static Public Member Functions

static void * operator new (std::size_t, void *p)
static void * operator new (std::size_t sz)
static void operator delete (void *p, std::size_t sz)
static void * operator new[] (std::size_t sz)
static void operator delete[] (void *p, std::size_t sz)

Static Public Attributes

static const sc_logic_value_t char_to_logic [128]
static const char logic_to_char [4]
static const sc_logic_value_t and_table [4][4]
static const sc_logic_value_t or_table [4][4]
static const sc_logic_value_t xor_table [4][4]
static const sc_logic_value_t not_table [4]

Friends

const sc_logic operator& (const sc_logic &, const sc_logic &)
const sc_logic operator| (const sc_logic &, const sc_logic &)
const sc_logic operator^ (const sc_logic &, const sc_logic &)
bool operator== (const sc_logic &, const sc_logic &)
bool operator!= (const sc_logic &, const sc_logic &)

Detailed Description

Definition at line 99 of file sc_logic.h.


Constructor & Destructor Documentation

sc_dt::sc_logic::sc_logic (  )  [inline]

Definition at line 164 of file sc_logic.h.

sc_dt::sc_logic::sc_logic ( const sc_logic a  )  [inline]

Definition at line 168 of file sc_logic.h.

sc_dt::sc_logic::sc_logic ( sc_logic_value_t  v  )  [inline]

Definition at line 172 of file sc_logic.h.

sc_dt::sc_logic::sc_logic ( bool  a  )  [inline, explicit]

Definition at line 176 of file sc_logic.h.

sc_dt::sc_logic::sc_logic ( char  a  )  [inline, explicit]

Definition at line 180 of file sc_logic.h.

sc_dt::sc_logic::sc_logic ( int  a  )  [inline, explicit]

Definition at line 184 of file sc_logic.h.

sc_dt::sc_logic::sc_logic ( const sc_bit a  )  [inline, explicit]

Definition at line 188 of file sc_logic.h.

sc_dt::sc_logic::~sc_logic (  )  [inline]

Definition at line 195 of file sc_logic.h.


Member Function Documentation

sc_logic& sc_dt::sc_logic::b_not (  )  [inline]

Definition at line 250 of file sc_logic.h.

bool sc_dt::sc_logic::is_01 (  )  const [inline]

Definition at line 260 of file sc_logic.h.

static void sc_dt::sc_logic::operator delete ( void *  p,
std::size_t  sz 
) [inline, static]

Definition at line 286 of file sc_logic.h.

static void sc_dt::sc_logic::operator delete[] ( void *  p,
std::size_t  sz 
) [inline, static]

Definition at line 292 of file sc_logic.h.

static void* sc_dt::sc_logic::operator new ( std::size_t  sz  )  [inline, static]

Definition at line 283 of file sc_logic.h.

static void* sc_dt::sc_logic::operator new ( std::size_t  ,
void *  p 
) [inline, static]

Definition at line 280 of file sc_logic.h.

static void* sc_dt::sc_logic::operator new[] ( std::size_t  sz  )  [inline, static]

Definition at line 289 of file sc_logic.h.

sc_logic& sc_dt::sc_logic::operator&= ( const sc_logic b  )  [inline]

Definition at line 215 of file sc_logic.h.

sc_logic& sc_dt::sc_logic::operator= ( const sc_logic a  )  [inline]

Definition at line 212 of file sc_logic.h.

sc_logic& sc_dt::sc_logic::operator^= ( const sc_logic b  )  [inline]

Definition at line 221 of file sc_logic.h.

sc_logic& sc_dt::sc_logic::operator|= ( const sc_logic b  )  [inline]

Definition at line 218 of file sc_logic.h.

const sc_logic sc_dt::sc_logic::operator~ (  )  const [inline]

Definition at line 247 of file sc_logic.h.

void sc_dt::sc_logic::print ( ::std::ostream &  os = ::std::cout  )  const [inline]

Definition at line 272 of file sc_logic.h.

void sc_dt::sc_logic::scan ( ::std::istream &  is = ::std::cin  ) 
bool sc_dt::sc_logic::to_bool (  )  const [inline]

Definition at line 263 of file sc_logic.h.

char sc_dt::sc_logic::to_char (  )  const [inline]

Definition at line 266 of file sc_logic.h.

sc_logic_value_t sc_dt::sc_logic::value (  )  const [inline]

Definition at line 256 of file sc_logic.h.


Friends And Related Function Documentation

bool operator!= ( const sc_logic ,
const sc_logic  
) [friend]
const sc_logic operator& ( const sc_logic ,
const sc_logic  
) [friend]
bool operator== ( const sc_logic ,
const sc_logic  
) [friend]
const sc_logic operator^ ( const sc_logic ,
const sc_logic  
) [friend]
const sc_logic operator| ( const sc_logic ,
const sc_logic  
) [friend]

Member Data Documentation

Definition at line 156 of file sc_logic.h.

Definition at line 154 of file sc_logic.h.

const char sc_dt::sc_logic::logic_to_char[4] [static]

Definition at line 155 of file sc_logic.h.

Definition at line 159 of file sc_logic.h.

Definition at line 157 of file sc_logic.h.

Definition at line 158 of file sc_logic.h.


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

Generated on 12 Jun 2018 for SystemC by  doxygen 1.6.1