rc_port_traits Class Template Reference
[Generic port traits]

#include <rc_port_traits.h>

List of all members.


Detailed Description

template<class PORT>
class ReChannel::rc_port_traits< PORT >

generic port traits template

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

Member Typedef Documentation

type

The type of PORT.

Definition at line 91 of file rc_port_traits.h.

if_type

The interface type of PORT.

Definition at line 92 of file rc_port_traits.h.


Member Function Documentation

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


The documentation for this class was generated from the following file:
Generated on Tue Jan 1 23:14:15 2008 for ReChannel by  doxygen 1.5.3