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

sc_dt::sc_concatref Class Reference

#include <sc_concatref.h>

Inheritance diagram for sc_dt::sc_concatref:

Inheritance graph
[legend]
Collaboration diagram for sc_dt::sc_concatref:

Collaboration graph
[legend]
List of all members.

Public Types

enum  concat_flags { cf_none = 0, cf_read_only = 1, cf_xz_present = 2 }

Public Methods

 sc_concatref ()
void initialize (sc_value_base &left, sc_value_base &right)
void initialize (const sc_value_base &left, const sc_value_base &right)
virtual ~sc_concatref ()
int length () const
virtual int concat_length (bool *xz_present_p) const
virtual void concat_clear_data (bool to_ones)
virtual bool concat_get_ctrl (unsigned long *dst_p, int low_i) const
virtual bool concat_get_data (unsigned long *dst_p, int low_i) const
virtual uint64 concat_get_uint64 () const
virtual void concat_set (int64 src, int low_i)
virtual void concat_set (const sc_signed &src, int low_i)
virtual void concat_set (const sc_unsigned &src, int low_i)
virtual void concat_set (uint64 src, int low_i)
uint64 to_uint64 () const
const sc_unsignedto_sc_unsigned () const
const sc_unsignedvalue () const
int64 to_int64 () const
int to_int () const
unsigned int to_uint () const
long to_long () const
unsigned long to_ulong () const
double to_double () const
 operator uint64 () const
 operator const sc_unsigned & () const
sc_unsigned operator+ () const
sc_unsigned operator- () const
sc_unsigned operator~ () const
const sc_string to_string (sc_numrep numrep=SC_DEC) const
const sc_string to_string (sc_numrep numrep, bool w_prefix) const
const sc_concatref & operator= (int v)
const sc_concatref & operator= (long v)
const sc_concatref & operator= (int64 v)
const sc_concatref & operator= (unsigned int v)
const sc_concatref & operator= (unsigned long v)
const sc_concatref & operator= (uint64 v)
const sc_concatref & operator= (const sc_concatref &v)
const sc_concatref & operator= (const sc_signed &v)
const sc_concatref & operator= (const sc_unsigned &v)
const sc_concatref & operator= (const char *v_p)
const sc_concatref & operator= (const sc_bv_base &v)
const sc_concatref & operator= (const sc_lv_base &v)
bool and_reduce () const
bool nand_reduce () const
bool or_reduce () const
bool nor_reduce () const
bool xor_reduce () const
bool xnor_reduce () const
void print (ostream &os=cout) const

Static Public Attributes

sc_vpool< sc_concatref > m_pool

Protected Attributes

sc_value_basem_left_p
sc_value_basem_right_p
int m_len
int m_len_r
concat_flags m_flags

Member Enumeration Documentation

enum sc_dt::sc_concatref::concat_flags
 

Enumeration values:
cf_none 
cf_read_only 
cf_xz_present 

Definition at line 403 of file sc_concatref.h.


Constructor & Destructor Documentation

sc_dt::sc_concatref::sc_concatref   [inline]
 

Definition at line 78 of file sc_concatref.h.

virtual sc_dt::sc_concatref::~sc_concatref   [inline, virtual]
 

Definition at line 110 of file sc_concatref.h.


Member Function Documentation

bool sc_dt::sc_concatref::and_reduce   const [inline]
 

Definition at line 376 of file sc_concatref.h.

References sc_dt::sc_unsigned::and_reduce(), and to_sc_unsigned().

Referenced by sc_dt::and_reduce().

virtual void sc_dt::sc_concatref::concat_clear_data bool    to_ones [inline, virtual]
 

Reimplemented from sc_dt::sc_value_base.

Definition at line 133 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_clear_data(), m_left_p, and m_right_p.

virtual bool sc_dt::sc_concatref::concat_get_ctrl unsigned long *    dst_p,
int    low_i
const [inline, virtual]
 

Reimplemented from sc_dt::sc_value_base.

Definition at line 139 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_get_ctrl(), m_left_p, m_len_r, and m_right_p.

virtual bool sc_dt::sc_concatref::concat_get_data unsigned long *    dst_p,
int    low_i
const [inline, virtual]
 

Reimplemented from sc_dt::sc_value_base.

Definition at line 146 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_get_data(), m_left_p, m_len_r, and m_right_p.

virtual uint64 sc_dt::sc_concatref::concat_get_uint64   const [inline, virtual]
 

Reimplemented from sc_dt::sc_value_base.

Definition at line 153 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_get_uint64(), m_left_p, m_len_r, m_right_p, and sc_dt::uint64.

Referenced by sc_dt::sc_uint_base::operator=(), and sc_dt::sc_uint_subref::operator=().

virtual int sc_dt::sc_concatref::concat_length bool *    xz_present_p const [inline, virtual]
 

Reimplemented from sc_dt::sc_value_base.

Definition at line 126 of file sc_concatref.h.

References cf_xz_present, m_flags, and m_len.

Referenced by sc_dt::operator>>().

virtual void sc_dt::sc_concatref::concat_set uint64    src,
int    low_i
[inline, virtual]
 

Reimplemented from sc_dt::sc_value_base.

Definition at line 182 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), m_left_p, m_len_r, m_right_p, and sc_dt::uint64.

virtual void sc_dt::sc_concatref::concat_set const sc_unsigned   src,
int    low_i
[inline, virtual]
 

Reimplemented from sc_dt::sc_value_base.

Definition at line 176 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), m_left_p, m_len_r, and m_right_p.

virtual void sc_dt::sc_concatref::concat_set const sc_signed   src,
int    low_i
[inline, virtual]
 

Reimplemented from sc_dt::sc_value_base.

Definition at line 170 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), m_left_p, m_len_r, and m_right_p.

virtual void sc_dt::sc_concatref::concat_set int64    src,
int    low_i
[inline, virtual]
 

Reimplemented from sc_dt::sc_value_base.

Definition at line 164 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), sc_dt::int64, m_left_p, m_len_r, and m_right_p.

void sc_dt::sc_concatref::initialize const sc_value_base   left,
const sc_value_base   right
[inline]
 

Definition at line 95 of file sc_concatref.h.

References cf_none, cf_xz_present, sc_dt::sc_value_base::concat_length(), m_flags, m_left_p, m_len, m_len_r, and m_right_p.

void sc_dt::sc_concatref::initialize sc_value_base   left,
sc_value_base   right
[inline]
 

Definition at line 81 of file sc_concatref.h.

References cf_none, cf_xz_present, sc_dt::sc_value_base::concat_length(), m_flags, m_left_p, m_len, m_len_r, and m_right_p.

Referenced by sc_dt::concat(), and sc_dt::operator,().

int sc_dt::sc_concatref::length   const [inline]
 

Definition at line 116 of file sc_concatref.h.

References m_len.

Referenced by operator=().

bool sc_dt::sc_concatref::nand_reduce   const [inline]
 

Definition at line 379 of file sc_concatref.h.

References sc_dt::sc_unsigned::nand_reduce(), and to_sc_unsigned().

Referenced by sc_dt::nand_reduce().

bool sc_dt::sc_concatref::nor_reduce   const [inline]
 

Definition at line 385 of file sc_concatref.h.

References sc_dt::sc_unsigned::nor_reduce(), and to_sc_unsigned().

Referenced by sc_dt::nor_reduce().

sc_dt::sc_concatref::operator const sc_unsigned &   const [inline]
 

Definition at line 259 of file sc_concatref.h.

References to_sc_unsigned().

sc_dt::sc_concatref::operator uint64   const [inline]
 

Definition at line 256 of file sc_concatref.h.

References to_uint64().

sc_unsigned sc_dt::sc_concatref::operator+   const [inline]
 

Definition at line 264 of file sc_concatref.h.

References to_sc_unsigned().

sc_unsigned sc_dt::sc_concatref::operator-   const [inline]
 

Definition at line 267 of file sc_concatref.h.

References to_sc_unsigned().

const sc_concatref& sc_dt::sc_concatref::operator= const sc_lv_base   v [inline]
 

Definition at line 364 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), sc_dt::sc_lv_base::length(), m_left_p, m_len_r, and m_right_p.

const sc_concatref& sc_dt::sc_concatref::operator= const sc_bv_base   v [inline]
 

Definition at line 355 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), sc_dt::sc_bv_base::length(), m_left_p, m_len_r, and m_right_p.

const sc_concatref& sc_dt::sc_concatref::operator= const char *    v_p [inline]
 

Definition at line 346 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), m_left_p, m_len_r, m_right_p, and strlen().

const sc_concatref& sc_dt::sc_concatref::operator= const sc_unsigned   v [inline]
 

Definition at line 339 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), m_left_p, m_len_r, and m_right_p.

const sc_concatref& sc_dt::sc_concatref::operator= const sc_signed   v [inline]
 

Definition at line 332 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), m_left_p, m_len_r, and m_right_p.

const sc_concatref& sc_dt::sc_concatref::operator= const sc_concatref &    v [inline]
 

Definition at line 323 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), length(), m_left_p, m_len_r, m_right_p, and to_sc_unsigned().

const sc_concatref& sc_dt::sc_concatref::operator= uint64    v [inline]
 

Definition at line 316 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), m_left_p, m_len_r, m_right_p, and sc_dt::uint64.

const sc_concatref& sc_dt::sc_concatref::operator= unsigned long    v [inline]
 

Definition at line 309 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), m_left_p, m_len_r, m_right_p, and sc_dt::uint64.

const sc_concatref& sc_dt::sc_concatref::operator= unsigned int    v [inline]
 

Definition at line 302 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), m_left_p, m_len_r, m_right_p, and sc_dt::uint64.

const sc_concatref& sc_dt::sc_concatref::operator= int64    v [inline]
 

Definition at line 295 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), sc_dt::int64, m_left_p, m_len_r, and m_right_p.

const sc_concatref& sc_dt::sc_concatref::operator= long    v [inline]
 

Definition at line 288 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), sc_dt::int64, m_left_p, m_len_r, and m_right_p.

const sc_concatref& sc_dt::sc_concatref::operator= int    v [inline]
 

Definition at line 281 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_set(), sc_dt::int64, m_left_p, m_len_r, and m_right_p.

sc_unsigned sc_dt::sc_concatref::operator~   const [inline]
 

Definition at line 270 of file sc_concatref.h.

bool sc_dt::sc_concatref::or_reduce   const [inline]
 

Definition at line 382 of file sc_concatref.h.

References sc_dt::sc_unsigned::or_reduce(), and to_sc_unsigned().

Referenced by sc_dt::or_reduce().

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

Definition at line 396 of file sc_concatref.h.

References to_sc_unsigned().

double sc_dt::sc_concatref::to_double   const [inline]
 

Definition at line 251 of file sc_concatref.h.

References sc_dt::sc_unsigned::to_double(), and to_sc_unsigned().

int sc_dt::sc_concatref::to_int   const [inline]
 

Definition at line 243 of file sc_concatref.h.

References to_int64().

int64 sc_dt::sc_concatref::to_int64   const [inline]
 

Definition at line 235 of file sc_concatref.h.

References sc_dt::int64, and to_uint64().

Referenced by sc_dt::sc_int_base::operator=(), to_int(), and to_long().

long sc_dt::sc_concatref::to_long   const [inline]
 

Definition at line 247 of file sc_concatref.h.

References to_int64().

const sc_unsigned& sc_dt::sc_concatref::to_sc_unsigned   const [inline]
 

Definition at line 211 of file sc_concatref.h.

References sc_byte_heap::allocate(), BITS_PER_DIGIT, sc_dt::sc_value_base::concat_get_data(), sc_dt::sc_unsigned::digit, m_left_p, m_len, m_len_r, m_right_p, sc_dt::sc_unsigned::nbits, sc_dt::sc_unsigned::ndigits, sc_dt::sc_unsigned::num_bits(), SC_POS, SC_ZERO, and sc_dt::sc_unsigned::sgn.

Referenced by and_reduce(), nand_reduce(), nor_reduce(), operator const sc_unsigned &(), operator+(), operator-(), sc_dt::operator<<(), operator=(), or_reduce(), print(), to_double(), value(), xnor_reduce(), and xor_reduce().

const sc_string sc_dt::sc_concatref::to_string sc_numrep    numrep,
bool    w_prefix
const
 

const sc_string sc_dt::sc_concatref::to_string sc_numrep    numrep = SC_DEC const
 

unsigned int sc_dt::sc_concatref::to_uint   const [inline]
 

Definition at line 245 of file sc_concatref.h.

References to_uint64().

uint64 sc_dt::sc_concatref::to_uint64   const [inline]
 

Definition at line 191 of file sc_concatref.h.

References sc_dt::sc_value_base::concat_get_uint64(), m_left_p, m_len, m_len_r, m_right_p, and sc_dt::uint64.

Referenced by operator uint64(), sc_dt::sc_int_subref::operator=(), to_int64(), to_uint(), and to_ulong().

unsigned long sc_dt::sc_concatref::to_ulong   const [inline]
 

Definition at line 249 of file sc_concatref.h.

References to_uint64().

const sc_unsigned& sc_dt::sc_concatref::value   const [inline]
 

Definition at line 233 of file sc_concatref.h.

References to_sc_unsigned().

bool sc_dt::sc_concatref::xnor_reduce   const [inline]
 

Definition at line 391 of file sc_concatref.h.

References to_sc_unsigned(), and sc_dt::sc_unsigned::xnor_reduce().

Referenced by sc_dt::xnor_reduce().

bool sc_dt::sc_concatref::xor_reduce   const [inline]
 

Definition at line 388 of file sc_concatref.h.

References to_sc_unsigned(), and sc_dt::sc_unsigned::xor_reduce().

Referenced by sc_dt::xor_reduce().


Member Data Documentation

concat_flags sc_dt::sc_concatref::m_flags [protected]
 

Definition at line 414 of file sc_concatref.h.

Referenced by concat_length(), and initialize().

sc_value_base* sc_dt::sc_concatref::m_left_p [protected]
 

Definition at line 410 of file sc_concatref.h.

Referenced by concat_clear_data(), concat_get_ctrl(), concat_get_data(), concat_get_uint64(), concat_set(), initialize(), operator=(), to_sc_unsigned(), and to_uint64().

int sc_dt::sc_concatref::m_len [protected]
 

Definition at line 412 of file sc_concatref.h.

Referenced by concat_length(), initialize(), length(), to_sc_unsigned(), and to_uint64().

int sc_dt::sc_concatref::m_len_r [protected]
 

Definition at line 413 of file sc_concatref.h.

Referenced by concat_get_ctrl(), concat_get_data(), concat_get_uint64(), concat_set(), initialize(), operator=(), to_sc_unsigned(), and to_uint64().

sc_vpool< sc_concatref > sc_concatref::m_pool [static]
 

sc_value_base* sc_dt::sc_concatref::m_right_p [protected]
 

Definition at line 411 of file sc_concatref.h.

Referenced by concat_clear_data(), concat_get_ctrl(), concat_get_data(), concat_get_uint64(), concat_set(), initialize(), operator=(), to_sc_unsigned(), and to_uint64().


The documentation for this class was generated from the following files:
Generated on Fri Jan 14 08:32:33 2005 for SystemC2.1beta11(excludingMSLib)(IncludingSCV)\nProvidedby:www.openverificationfoundation.org by doxygen1.2.18