|
functional-dag
|
Interface for all external "mapping" lambdas. More...
#include <dag_interface.hpp>
Public Member Functions | |
| virtual | ~dag_node ()=default |
| Default constructor. | |
| virtual unique_ptr< Out > | update (const In *const _data)=0 |
| Translator function. | |
Interface for all external "mapping" lambdas.
All nodes simply "translate" input data to output data.
Note: Do not try to manage the output data. Since it is a pointer, it is passed between nodes and then deleted by the dag manager.
|
pure virtual |
Translator function.
This function translates the input data to the output data. The pointer data should be on the heap and should be allocated with new.
| _data | The data to use to generate the output data |