functional-dag
|
Interface for all external "mapping" lambdas. More...
#include <dag_interface.hpp>
Inherited by fn_dag::__dag_node< In, Out >.
Public Member Functions | |
virtual | ~dag_node ()=default |
Default constructor. | |
virtual Out * | update (const In *_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.
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 |