SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_dt::sc_generic_base< T > Class Template Reference

Proxy class for user-defined value classes and other classes that. More...

#include <sysc/datatypes/misc/sc_value_base.h>

Public Member Functions

const T * operator-> () const
 
T * operator-> ()
 

Detailed Description

template<class T>
class sc_dt::sc_generic_base< T >

Proxy class for user-defined value classes and other classes that.

are defined outside of SystemC. The class is utilized as a base class for the arbitrary class:

 class my_class : public sc_generic_base<my_class>

The purpose of the class is to allow to_XXXX methods defined within that class so that assignments and casts from the arbitrary class to native SystemC types are possible. To interact correctly with the SystemC library the class derived from sc_generic_base must implement the following methods: (1) uint64 to_uint64() const (2) int64 to_int64() const (3) void to_sc_unsigned( sc_unsigned& ) const (4) void to_sc_signed( sc_signed& ) const

Definition at line 120 of file sc_value_base.h.

Member Function Documentation

◆ operator->() [1/2]

template<class T>
const T* sc_dt::sc_generic_base< T >::operator-> ( ) const
inline

Definition at line 122 of file sc_value_base.h.

◆ operator->() [2/2]

template<class T>
T* sc_dt::sc_generic_base< T >::operator-> ( )
inline

Definition at line 126 of file sc_value_base.h.


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