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

sc_dt::sc_bv_base Class Reference

#include <sc_bv_base.h>

Inheritance diagram for sc_dt::sc_bv_base:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef sc_proxy< sc_bv_base > base_type

Public Methods

 sc_bv_base (int length_=sc_length_param().len())
 sc_bv_base (bool a, int length_=sc_length_param().len())
 sc_bv_base (const char *a)
 sc_bv_base (const char *a, int length_)
template<class X>  sc_bv_base (const sc_proxy< X > &a)
 sc_bv_base (const sc_bv_base &a)
virtual ~sc_bv_base ()
template<class X> sc_bv_base & operator= (const sc_proxy< X > &a)
sc_bv_base & operator= (const sc_bv_base &a)
sc_bv_base & operator= (const char *a)
sc_bv_base & operator= (const bool *a)
sc_bv_base & operator= (const sc_logic *a)
sc_bv_base & operator= (const sc_unsigned &a)
sc_bv_base & operator= (const sc_signed &a)
sc_bv_base & operator= (const sc_uint_base &a)
sc_bv_base & operator= (const sc_int_base &a)
sc_bv_base & operator= (unsigned long a)
sc_bv_base & operator= (long a)
sc_bv_base & operator= (unsigned int a)
sc_bv_base & operator= (int a)
sc_bv_base & operator= (uint64 a)
sc_bv_base & operator= (int64 a)
int length () const
int size () const
sc_logic_value_t get_bit (int i) const
void set_bit (int i, sc_logic_value_t value)
unsigned long get_word (int i) const
void set_word (int i, unsigned long w)
unsigned long get_cword (int i) const
void set_cword (int i, unsigned long w)
void clean_tail ()
bool is_01 () const

Protected Attributes

int m_len
int m_size
unsigned long * m_data

Friends

class sc_lv_base

Member Typedef Documentation

typedef sc_proxy<sc_bv_base> sc_dt::sc_bv_base::base_type
 

Definition at line 73 of file sc_bv_base.h.


Constructor & Destructor Documentation

sc_dt::sc_bv_base::sc_bv_base int    length_ = sc_length_param().len() [inline, explicit]
 

Definition at line 78 of file sc_bv_base.h.

References m_data, m_len, and m_size.

sc_dt::sc_bv_base::sc_bv_base bool    a,
int    length_ = sc_length_param().len()
[inline, explicit]
 

Definition at line 82 of file sc_bv_base.h.

References m_data, m_len, and m_size.

sc_dt::sc_bv_base::sc_bv_base const char *    a
 

Definition at line 101 of file sc_bv_base.cpp.

References sc_dt::convert_to_bin(), and sc_string::length().

sc_dt::sc_bv_base::sc_bv_base const char *    a,
int    length_
 

Definition at line 109 of file sc_bv_base.cpp.

References sc_dt::convert_to_bin().

template<class X>
sc_dt::sc_bv_base::sc_bv_base const sc_proxy< X > &    a [inline]
 

Definition at line 92 of file sc_bv_base.h.

References m_data, m_len, and m_size.

sc_dt::sc_bv_base::sc_bv_base const sc_bv_base &    a
 

Definition at line 116 of file sc_bv_base.cpp.

References m_data, and m_size.

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

Definition at line 121 of file sc_bv_base.h.

References m_data.


Member Function Documentation

void sc_dt::sc_bv_base::clean_tail   [inline]
 

Definition at line 312 of file sc_bv_base.h.

References m_data, m_len, m_size, sc_dt::UL_SIZE, and sc_dt::UL_ZERO.

sc_logic_value_t sc_dt::sc_bv_base::get_bit int    i const [inline]
 

Definition at line 281 of file sc_bv_base.h.

References m_data, sc_dt::sc_logic_value_t, sc_dt::UL_ONE, and sc_dt::UL_SIZE.

Referenced by sc_dt::sc_unsigned::operator=(), sc_dt::sc_uint_base::operator=(), sc_dt::sc_signed::operator=(), and sc_dt::sc_int_base::operator=().

unsigned long sc_dt::sc_bv_base::get_cword int    i const [inline]
 

Definition at line 228 of file sc_bv_base.h.

References sc_dt::UL_ZERO.

unsigned long sc_dt::sc_bv_base::get_word int    i const [inline]
 

Definition at line 222 of file sc_bv_base.h.

References m_data.

bool sc_dt::sc_bv_base::is_01   const [inline]
 

Definition at line 238 of file sc_bv_base.h.

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

Definition at line 213 of file sc_bv_base.h.

References m_len.

Referenced by sc_dt::scfx_rep::get_slice(), sc_dt::sc_fxnum_fast::get_slice(), sc_dt::sc_fxnum_fast_subref::length(), sc_dt::sc_fxnum_subref::length(), sc_dt::sc_unsigned::operator=(), sc_dt::sc_uint_base::operator=(), sc_dt::sc_signed::operator=(), sc_dt::sc_int_base::operator=(), sc_dt::sc_concatref::operator=(), sc_dt::scfx_rep::set_slice(), and sc_dt::sc_fxnum_fast::set_slice().

sc_bv_base& sc_dt::sc_bv_base::operator= int64    a [inline]
 

Reimplemented in sc_dt::sc_bv< W >.

Definition at line 169 of file sc_bv_base.h.

References sc_dt::int64.

sc_bv_base& sc_dt::sc_bv_base::operator= uint64    a [inline]
 

Reimplemented in sc_dt::sc_bv< W >.

Definition at line 166 of file sc_bv_base.h.

References sc_dt::uint64.

sc_bv_base& sc_dt::sc_bv_base::operator= int    a [inline]
 

Reimplemented in sc_dt::sc_bv< W >.

Definition at line 163 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= unsigned int    a [inline]
 

Reimplemented in sc_dt::sc_bv< W >.

Definition at line 160 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= long    a [inline]
 

Reimplemented in sc_dt::sc_bv< W >.

Definition at line 157 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= unsigned long    a [inline]
 

Reimplemented in sc_dt::sc_bv< W >.

Definition at line 154 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= const sc_int_base   a [inline]
 

Reimplemented in sc_dt::sc_bv< W >.

Definition at line 151 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= const sc_uint_base   a [inline]
 

Reimplemented in sc_dt::sc_bv< W >.

Definition at line 148 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= const sc_signed   a [inline]
 

Reimplemented in sc_dt::sc_bv< W >.

Definition at line 145 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= const sc_unsigned   a [inline]
 

Reimplemented in sc_dt::sc_bv< W >.

Definition at line 142 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= const sc_logic   a [inline]
 

Reimplemented in sc_dt::sc_bv< W >.

Definition at line 139 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= const bool *    a [inline]
 

Reimplemented in sc_dt::sc_bv< W >.

Definition at line 136 of file sc_bv_base.h.

sc_bv_base & sc_dt::sc_bv_base::operator= const char *    a
 

Reimplemented in sc_dt::sc_bv< W >.

Definition at line 132 of file sc_bv_base.cpp.

References sc_dt::convert_to_bin().

sc_bv_base& sc_dt::sc_bv_base::operator= const sc_bv_base &    a [inline]
 

Definition at line 131 of file sc_bv_base.h.

References sc_dt::assign_p_().

template<class X>
sc_bv_base& sc_dt::sc_bv_base::operator= const sc_proxy< X > &    a [inline]
 

Reimplemented in sc_dt::sc_bv< W >.

Definition at line 128 of file sc_bv_base.h.

References sc_dt::assign_p_().

void sc_dt::sc_bv_base::set_bit int    i,
sc_logic_value_t    value
[inline]
 

Definition at line 290 of file sc_bv_base.h.

References m_data, sc_dt::sc_logic_value_t, sc_dt::UL_ONE, sc_dt::UL_SIZE, and value.

void sc_dt::sc_bv_base::set_cword int    i,
unsigned long    w
[inline]
 

Definition at line 302 of file sc_bv_base.h.

References SC_REPORT_WARNING.

void sc_dt::sc_bv_base::set_word int    i,
unsigned long    w
[inline]
 

Definition at line 225 of file sc_bv_base.h.

References m_data.

int sc_dt::sc_bv_base::size   const [inline]
 

Definition at line 216 of file sc_bv_base.h.

References m_size.


Friends And Related Function Documentation

friend class sc_lv_base [friend]
 

Definition at line 62 of file sc_bv_base.h.


Member Data Documentation

unsigned long* sc_dt::sc_bv_base::m_data [protected]
 

Definition at line 245 of file sc_bv_base.h.

Referenced by clean_tail(), get_bit(), get_word(), sc_bv_base(), set_bit(), set_word(), and ~sc_bv_base().

int sc_dt::sc_bv_base::m_len [protected]
 

Definition at line 243 of file sc_bv_base.h.

Referenced by clean_tail(), length(), and sc_bv_base().

int sc_dt::sc_bv_base::m_size [protected]
 

Definition at line 244 of file sc_bv_base.h.

Referenced by clean_tail(), sc_bv_base(), and size().


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