ForSyDe::SY::receiver< T0 > Class Template Reference

Process constructor for a receiver process with one output. More...

#include <parallel_sim.hpp>

Inheritance diagram for ForSyDe::SY::receiver< T0 >:
Collaboration diagram for ForSyDe::SY::receiver< T0 >:

Public Member Functions

 receiver (sc_module_name _name, int source, int tag)
 The constructor requires the module name. More...
 
std::string forsyde_kind () const
 Specifying from which process constructor is the module built.
 
- Public Member Functions inherited from ForSyDe::process
 process (sc_module_name _name)
 The constructor requires the module name. More...
 

Public Attributes

SY_out< T0 > oport1
 port for the output channel
 

Additional Inherited Members

- Protected Member Functions inherited from ForSyDe::process
void end_of_simulation ()
 This hook is used to run the clean stage.
 

Detailed Description

template<typename T0>
class ForSyDe::SY::receiver< T0 >

Process constructor for a receiver process with one output.

This class is used to build a processes with one output. It receives non-absent events via MPI_recv command and writes them to its output signal.

Constructor & Destructor Documentation

template<typename T0 >
ForSyDe::SY::receiver< T0 >::receiver ( sc_module_name  _name,
int  source,
int  tag 
)
inline

The constructor requires the module name.

It creates an SC_THREAD which reads data from its input port, applies the user-imlpemented function to it and writes the results using the output port

Parameters
_nameprocess name
sourceMPI rank of the source process
tagMPI tag of the message

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