◆ DFlib() [1/2]
Implementation of DFlib;.
Default constructor.
◆ DFlib() [2/2]
| DFlib::DFlib |
( |
const std::string & |
name | ) |
|
Constructor. It creates dataflow library from a file (dot format).
- Parameters
-
◆ add()
| bool DFlib::add |
( |
const std::string & |
filename | ) |
|
Adds new functions to the library.
- Parameters
-
| filename | Name of the file (dot format). |
- Returns
- True if successful, and false if an error is produced.
◆ getError()
| const string & DFlib::getError |
( |
| ) |
const |
- Returns
- The error message associated to the netlist.
◆ getFuncID()
| funcID DFlib::getFuncID |
( |
const std::string & |
fname | ) |
const |
Gets a funcID from a name function.
- Parameters
-
| fname | Name of the function. |
- Returns
- The funcID (invalidDataflowID if it does not exist).
◆ hasError()
| bool DFlib::hasError |
( |
| ) |
const |
Indicates whether there is an error.
- Returns
- True if there is an error and false otherwise.
◆ numFuncs()
| int DFlib::numFuncs |
( |
| ) |
const |
- Returns
- The number of functions of the library.
◆ operator[]() [1/4]
| DFnetlist & DFlib::operator[] |
( |
const std::string & |
fname | ) |
|
Returns a reference to the dataflow netlist of a function.
- Parameters
-
| fname | Name of the function. |
- Returns
- A reference to the dataflow netlist of the function.
◆ operator[]() [2/4]
| const DFnetlist & DFlib::operator[] |
( |
const std::string & |
fname | ) |
const |
Returns a const reference to the dataflow netlist of a function.
- Parameters
-
| fname | Name of the function. |
- Returns
- A const reference to the dataflow netlist of the function.
◆ operator[]() [3/4]
Returns a reference to the dataflow netlist of a function.
- Parameters
-
- Returns
- A reference to the dataflow netlist of the function.
◆ operator[]() [4/4]
| const DFnetlist & DFlib::operator[] |
( |
funcID |
id | ) |
const |
Returns a const reference to the dataflow netlist of a function.
- Parameters
-
- Returns
- A const reference to the dataflow netlist of the function.
◆ setError()
| void DFlib::setError |
( |
const std::string & |
err | ) |
|
Sets an error message for the library.
- Parameters
-
◆ writeDot()
| bool DFlib::writeDot |
( |
const std::string & |
filename = "" | ) |
|
Writes the dataflow library in dot format.
- Parameters
-
| filename | The name of the file. In case the filename is empty, it is written into cout. |
- Returns
- true if successful, and false otherwise.
The documentation for this class was generated from the following files:
- /home/dynamatic/Dynamatic/etc/dhls/Buffers/inc/Dataflow.h
- /home/dynamatic/Dynamatic/etc/dhls/Buffers/src/Dataflow.cpp