SystemC  Recoding Infrastructure for SystemC v0.6.2 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
sc_dt::sc_bitref_r< X > Class Template Reference

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

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

Public Types

typedef T::traits_type traits_type
 
typedef traits_type::bit_type bit_type
 

Public Member Functions

 sc_bitref_r (const T &obj_, int index_)
 
 sc_bitref_r (const sc_bitref_r< T > &a)
 
sc_bitref_r< T > * clone () const
 
const bit_type operator~ () const
 
 operator const bit_type () 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
 
sc_digit get_word (int i) const
 
sc_digit get_cword (int i) const
 
void print (::std::ostream &os=::std::cout) const
 

Protected Attributes

T & m_obj
 
int m_index
 

Friends

class sc_bv_base
 
class sc_lv_base
 

Detailed Description

template<class X>
class sc_dt::sc_bitref_r< X >

Definition at line 39 of file sc_bit_proxies.h.

Member Typedef Documentation

template<class X>
typedef traits_type::bit_type sc_dt::sc_bitref_r< X >::bit_type

Definition at line 64 of file sc_bit_proxies.h.

template<class X>
typedef T::traits_type sc_dt::sc_bitref_r< X >::traits_type

Definition at line 63 of file sc_bit_proxies.h.

Constructor & Destructor Documentation

template<class X>
sc_dt::sc_bitref_r< X >::sc_bitref_r ( const T &  obj_,
int  index_ 
)
inline

Definition at line 68 of file sc_bit_proxies.h.

template<class X>
sc_dt::sc_bitref_r< X >::sc_bitref_r ( const sc_bitref_r< T > &  a)
inline

Definition at line 75 of file sc_bit_proxies.h.

Member Function Documentation

template<class X>
sc_bitref_r<T>* sc_dt::sc_bitref_r< X >::clone ( ) const
inline

Definition at line 81 of file sc_bit_proxies.h.

template<class T >
sc_logic_value_t sc_dt::sc_bitref_r< T >::get_bit ( int  n) const
inline

Definition at line 1942 of file sc_bit_proxies.h.

template<class T >
sc_digit sc_dt::sc_bitref_r< T >::get_cword ( int  i) const
inline

Definition at line 1971 of file sc_bit_proxies.h.

template<class T >
sc_digit sc_dt::sc_bitref_r< T >::get_word ( int  i) const
inline

Definition at line 1957 of file sc_bit_proxies.h.

template<class X>
bool sc_dt::sc_bitref_r< X >::is_01 ( ) const
inline

Definition at line 105 of file sc_bit_proxies.h.

template<class X>
int sc_dt::sc_bitref_r< X >::length ( ) const
inline

Definition at line 117 of file sc_bit_proxies.h.

template<class X>
sc_dt::sc_bitref_r< X >::operator const bit_type ( ) const
inline

Definition at line 95 of file sc_bit_proxies.h.

template<class X>
const bit_type sc_dt::sc_bitref_r< X >::operator~ ( ) const
inline

Definition at line 89 of file sc_bit_proxies.h.

template<class X>
void sc_dt::sc_bitref_r< X >::print ( ::std::ostream &  os = ::std::cout) const
inline

Definition at line 131 of file sc_bit_proxies.h.

template<class X>
int sc_dt::sc_bitref_r< X >::size ( ) const
inline

Definition at line 120 of file sc_bit_proxies.h.

template<class X>
bool sc_dt::sc_bitref_r< X >::to_bool ( ) const
inline

Definition at line 108 of file sc_bit_proxies.h.

template<class X>
char sc_dt::sc_bitref_r< X >::to_char ( ) const
inline

Definition at line 111 of file sc_bit_proxies.h.

template<class X>
sc_logic_value_t sc_dt::sc_bitref_r< X >::value ( ) const
inline

Definition at line 101 of file sc_bit_proxies.h.

Friends And Related Function Documentation

template<class X>
friend class sc_bv_base
friend

Definition at line 56 of file sc_bit_proxies.h.

template<class X>
friend class sc_lv_base
friend

Definition at line 57 of file sc_bit_proxies.h.

Member Data Documentation

template<class X>
int sc_dt::sc_bitref_r< X >::m_index
protected

Definition at line 137 of file sc_bit_proxies.h.

template<class X>
T& sc_dt::sc_bitref_r< X >::m_obj
protected

Definition at line 136 of file sc_bit_proxies.h.


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