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

scv_expression.h File Reference

#include "scv/scv_object_if.h"
#include "scv/scv_shared_ptr.h"
#include <list>

Include dependency graph for scv_expression.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  _scv_expression_error
class  scv_expression
class  scv_expression_core
class  scv_expression_core_base
class  scv_expression_core_signal

Defines

#define _SCV_GET_CONSTANT_VALUE()
#define _SCV_GET_CONSTANT_ERROR(type_name)
#define _SCV_GET_SC_VAL(type_name, method)

Functions

template<typename T> scv_extensions< T > scv_get_extensions (T &d)
template<typename T> const scv_extensions< T > scv_get_const_extensions (const T &d)
template<class T> scv_expression _scv_create_expression (sc_signal_in_if< T > &s)
template<int W> scv_expression _scv_create_expression (const sc_int< W > &v)
template<int W> scv_expression _scv_create_expression (const sc_uint< W > &v)
template<int W> scv_expression _scv_create_expression (const sc_bigint< W > &v)
template<int W> scv_expression _scv_create_expression (const sc_biguint< W > &v)
template<int W> scv_expression _scv_create_expression (const sc_bv< W > &v)


Define Documentation

#define _SCV_GET_CONSTANT_ERROR type_name   
 

Value:

} else {                                                         \
    _scv_expression_error::illegalAccess("get_value(#type_name&)");\
    return ;                                                       \
  }

Definition at line 399 of file scv_expression.h.

Referenced by scv_expression_core::get_value().

 
#define _SCV_GET_CONSTANT_VALUE  
 

Value:

if (_operator == scv_expression::BOOLEAN_CONSTANT) {             \
    val =  _value._boolValue;                                      \
  } else if (_operator == scv_expression::INT_CONSTANT) {          \
    val = _value._intValue;                                        \
  } else if (_operator == scv_expression::UNSIGNED_CONSTANT) {     \
    val = _value._unsignedValue;                                   \
  } else if (_operator == scv_expression::SC_BIGINT_CONSTANT ||    \
    _operator == scv_expression::SC_BIGUINT_CONSTANT ||            \
    _operator == scv_expression::SC_BV_CONSTANT ) {                \
    sc_signed value(_bit_width);                                   \
    value = (*_data);

Definition at line 386 of file scv_expression.h.

Referenced by scv_expression_core::get_value().

#define _SCV_GET_SC_VAL type_name,
method   
 

Value:

_SCV_GET_CONSTANT_VALUE();                                        \
  val = (type_name)value.method();                                 \
  _SCV_GET_CONSTANT_ERROR(type_name);                               \

Definition at line 405 of file scv_expression.h.

Referenced by scv_expression_core::get_value().


Function Documentation

template<int W>
scv_expression _scv_create_expression const sc_bv< W > &    v [inline]
 

Definition at line 443 of file scv_expression.h.

Referenced by scv_expression::create(), scv_expression::create_constant(), and scv_expression::create_reference().

template<int W>
scv_expression _scv_create_expression const sc_biguint< W > &    v [inline]
 

Definition at line 437 of file scv_expression.h.

template<int W>
scv_expression _scv_create_expression const sc_bigint< W > &    v [inline]
 

Definition at line 431 of file scv_expression.h.

template<int W>
scv_expression _scv_create_expression const sc_uint< W > &    v [inline]
 

Definition at line 425 of file scv_expression.h.

template<int W>
scv_expression _scv_create_expression const sc_int< W > &    v [inline]
 

Definition at line 419 of file scv_expression.h.

template<class T>
scv_expression _scv_create_expression sc_signal_in_if< T > &    s [inline]
 

Definition at line 413 of file scv_expression.h.

References s.

template<typename T>
const scv_extensions<T> scv_get_const_extensions const T &    d
 

Definition at line 51 of file _scv_smart_ptr.h.

template<typename T>
scv_extensions<T> scv_get_extensions T &    d
 

Definition at line 44 of file _scv_smart_ptr.h.


Generated on Sun Dec 12 19:22:21 2004 for SystemC2.0.1(excludingMSLib)(IncludingSCV) by doxygen1.2.18