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

sc_dt::sc_bitref_r< T > Class Template Reference

#include <sc_bit_proxies.h>

Inheritance diagram for sc_dt::sc_bitref_r< T >:

Inheritance graph
[legend]
Collaboration diagram for sc_dt::sc_bitref_r< T >:

Collaboration graph
[legend]
List of all members.

Public Methods

 sc_bitref_r (const T &obj_, int index_)
 sc_bitref_r (const sc_bitref_r< T > &a)
sc_bitref_r< T > * clone () const
const sc_logic operator~ () const
 operator const sc_logic () const
sc_logic_value_t value () const
bool is_01 () const
bool to_bool () const
char to_char () const
int length () const
int size () const
sc_logic_value_t get_bit (int n) const
unsigned long get_word (int i) const
unsigned long get_cword (int i) const
void print (ostream &os=cout) const

Protected Attributes

T & m_obj
int m_index

Friends

class sc_bv_base
class sc_lv_base

template<class T>
class sc_dt::sc_bitref_r< T >


Constructor & Destructor Documentation

template<class T>
sc_dt::sc_bitref_r< T >::sc_bitref_r const T &    obj_,
int    index_
[inline]
 

Definition at line 72 of file sc_bit_proxies.h.

template<class T>
sc_dt::sc_bitref_r< T >::sc_bitref_r const sc_bitref_r< T > &    a [inline]
 

Definition at line 79 of file sc_bit_proxies.h.


Member Function Documentation

template<class T>
sc_bitref_r<T>* sc_dt::sc_bitref_r< T >::clone   const [inline]
 

Reimplemented in sc_dt::sc_bitref< X >.

Definition at line 86 of file sc_bit_proxies.h.

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

template<class T>
sc_logic_value_t sc_dt::sc_bitref_r< T >::get_bit int    n const [inline]
 

Definition at line 1947 of file sc_bit_proxies.h.

References sc_dt::Log_0, sc_dt::sc_bitref_r< T >::m_index, sc_dt::sc_bitref_r< T >::m_obj, and SC_REPORT_ERROR.

Referenced by sc_dt::sc_bitref_r< T >::get_cword(), and sc_dt::sc_bitref_r< T >::get_word().

template<class T>
unsigned long sc_dt::sc_bitref_r< T >::get_cword int    i const [inline]
 

Definition at line 1976 of file sc_bit_proxies.h.

References sc_dt::sc_bitref_r< T >::get_bit(), SC_REPORT_ERROR, and sc_dt::UL_TWO.

template<class T>
unsigned long sc_dt::sc_bitref_r< T >::get_word int    i const [inline]
 

Definition at line 1962 of file sc_bit_proxies.h.

References sc_dt::sc_bitref_r< T >::get_bit(), SC_REPORT_ERROR, and sc_dt::UL_ONE.

template<class T>
bool sc_dt::sc_bitref_r< T >::is_01   const [inline]
 

Definition at line 110 of file sc_bit_proxies.h.

template<class T>
int sc_dt::sc_bitref_r< T >::length   const [inline]
 

Definition at line 122 of file sc_bit_proxies.h.

Referenced by sc_dt::sc_bitref_r< X >::size().

template<class T>
sc_dt::sc_bitref_r< T >::operator const sc_logic   const [inline]
 

Definition at line 100 of file sc_bit_proxies.h.

template<class T>
const sc_logic sc_dt::sc_bitref_r< T >::operator~   const [inline]
 

Definition at line 94 of file sc_bit_proxies.h.

template<class T>
void sc_dt::sc_bitref_r< T >::print ostream &    os = cout const [inline]
 

Definition at line 136 of file sc_bit_proxies.h.

template<class T>
int sc_dt::sc_bitref_r< T >::size   const [inline]
 

Definition at line 125 of file sc_bit_proxies.h.

template<class T>
bool sc_dt::sc_bitref_r< T >::to_bool   const [inline]
 

Definition at line 113 of file sc_bit_proxies.h.

template<class T>
char sc_dt::sc_bitref_r< T >::to_char   const [inline]
 

Definition at line 116 of file sc_bit_proxies.h.

Referenced by sc_dt::sc_bitref_r< X >::print().

template<class T>
sc_logic_value_t sc_dt::sc_bitref_r< T >::value   const [inline]
 

Definition at line 106 of file sc_bit_proxies.h.

Referenced by sc_dt::sc_bitref_r< X >::is_01(), sc_dt::operator &(), sc_dt::sc_bitref< X >::operator &=(), sc_dt::operator!=(), sc_dt::sc_bitref< X >::operator=(), sc_dt::operator==(), sc_dt::operator^(), sc_dt::sc_bitref< X >::operator^=(), sc_dt::operator|(), sc_dt::sc_bitref< X >::operator|=(), sc_dt::sc_bitref_r< X >::operator~(), sc_dt::sc_bitref_r< X >::to_bool(), and sc_dt::sc_bitref_r< X >::to_char().


Friends And Related Function Documentation

template<class T>
friend class sc_bv_base [friend]
 

Reimplemented in sc_dt::sc_bitref< X >.

Definition at line 65 of file sc_bit_proxies.h.

template<class T>
friend class sc_lv_base [friend]
 

Reimplemented in sc_dt::sc_bitref< X >.

Definition at line 66 of file sc_bit_proxies.h.


Member Data Documentation

template<class T>
int sc_dt::sc_bitref_r< T >::m_index [protected]
 

Definition at line 142 of file sc_bit_proxies.h.

Referenced by sc_dt::sc_bitref_r< T >::get_bit(), sc_dt::sc_bitref_r< X >::operator const sc_logic(), sc_dt::sc_bitref_r< X >::sc_bitref_r(), and sc_dt::sc_bitref_r< X >::value().

template<class T>
T& sc_dt::sc_bitref_r< T >::m_obj [protected]
 

Definition at line 141 of file sc_bit_proxies.h.

Referenced by sc_dt::sc_bitref_r< T >::get_bit(), sc_dt::sc_bitref_r< X >::operator const sc_logic(), sc_dt::sc_bitref_r< X >::sc_bitref_r(), and sc_dt::sc_bitref_r< X >::value().


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