ForSyDe::SY::file_sink< T > Class Template Reference
  Process constructor for a file_sink process. More...
#include <sy_process_constructors.hpp>
Inheritance diagram for ForSyDe::SY::file_sink< T >:

Collaboration diagram for ForSyDe::SY::file_sink< T >:

| Public Types | |
| typedef std::function< void(std::string &, const abst_ext< T > &)> | functype | 
| Type of the function to be passed to the process constructor. | |
| Public Member Functions | |
| file_sink (sc_module_name _name, functype _func, std::string file_name) | |
| 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_in< T > | iport1 | 
| port for the input 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<class T>
class ForSyDe::SY::file_sink< T >
Process constructor for a file_sink process.
This class is used to build a file_sink process which only has an input. Its main purpose is to be used in test-benches. The process repeatedly passes the current input to a given function to generate a string and write the string to a new line of an output file.
Constructor & Destructor Documentation
template<class T> 
| 
 | inline | 
The constructor requires the module name.
It creates an SC_THREAD which runs the user-imlpemented function in each cycle.
- Parameters
- 
  _name process name _func function to be passed file_name the file name 
The documentation for this class was generated from the following file:
- src/forsyde/sy_process_constructors.hpp
Generated by Doxygen 1.8.11
 
          
          