SystemC  Recoding Infrastructure for SystemC v0.6.2 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
sc_dt::sc_logic Class Reference

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

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)
inlineexplicit

Definition at line 176 of file sc_logic.h.

sc_dt::sc_logic::sc_logic ( char  a)
inlineexplicit

Definition at line 180 of file sc_logic.h.

sc_dt::sc_logic::sc_logic ( int  a)
inlineexplicit

Definition at line 184 of file sc_logic.h.

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

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 
)
inlinestatic

Definition at line 286 of file sc_logic.h.

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

Definition at line 292 of file sc_logic.h.

static void* sc_dt::sc_logic::operator new ( std::size_t  ,
void *  p 
)
inlinestatic

Definition at line 280 of file sc_logic.h.

static void* sc_dt::sc_logic::operator new ( std::size_t  sz)
inlinestatic

Definition at line 283 of file sc_logic.h.

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

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 a,
const sc_logic b 
)
friend

Definition at line 340 of file sc_logic.h.

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

Definition at line 310 of file sc_logic.h.

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

Definition at line 337 of file sc_logic.h.

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

Definition at line 316 of file sc_logic.h.

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

Definition at line 313 of file sc_logic.h.

Member Data Documentation

const sc_logic_value_t sc_dt::sc_logic::and_table[4][4]
static

Definition at line 156 of file sc_logic.h.

const sc_logic_value_t sc_dt::sc_logic::char_to_logic[128]
static

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.

const sc_logic_value_t sc_dt::sc_logic::not_table[4]
static

Definition at line 159 of file sc_logic.h.

const sc_logic_value_t sc_dt::sc_logic::or_table[4][4]
static

Definition at line 157 of file sc_logic.h.

const sc_logic_value_t sc_dt::sc_logic::xor_table[4][4]
static

Definition at line 158 of file sc_logic.h.


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