#include <rc_port_traits.h>
Class rc_port_traits is used to determine the interface type from a port type. The SystemC language lacks a way to do this. If no appropriate rc_port_traits is available for a custom port it has to be defined by the designer. However, for all build-in SystemC ports as well as for all custom ports that provide the typedef if_type, no additional rc_port_traits is needed.
Definition at line 78 of file rc_port_traits.h.
Public Types | |
typedef PORT | type |
The type of PORT. | |
typedef PORT::if_type | if_type |
The interface type of PORT. | |
Public Member Functions | |
RC_STATIC_ASSERT_T (port_type_validity_check,(boost::is_base_of< sc_port_base, PORT >::value &&!boost::is_same< sc_port_base, PORT >::value)) | |
checks if PORT is a valid port class | |
RC_STATIC_ASSERT_T (interface_typedef_availability_check,(boost::is_base_of< sc_interface, typename PORT::if_type >::value)) | |
checks if typedef PORT::if_type does exist |
RC_STATIC_ASSERT_T | ( | port_type_validity_check | , | |
(boost::is_base_of< sc_port_base, PORT >::value &&!boost::is_same< sc_port_base, PORT >::value) | ||||
) |
checks if PORT is a valid port class
RC_STATIC_ASSERT_T | ( | interface_typedef_availability_check | , | |
(boost::is_base_of< sc_interface, typename PORT::if_type >::value) | ||||
) |
checks if typedef PORT::if_type does exist