18#include <functional_dag/impl/dag_node_impl.hpp>
19#include <functional_dag/core/dag_utils.hpp>
28 template <
typename Type,
typename IDType>
72 if(!g_context.run_single_threaded) {
75 for(
auto it : m_children)
81 for(
auto it : m_children)
96 for(
auto child : m_children) {
97 *g_context.log <<
_indent <<
"->";
114 template <
typename In,
typename Out>
122 for(
auto child = m_children.cbegin();
child != m_children.cend();
child++) {
Internal node to take data from parent and run children.
Definition dag_fanout_impl.hpp:29
bool add_node_to_subdag(_internal_dag_node< In, Out, IDType > *_node_to_add, const IDType _onto, const IDType _parent_id)
Recursively adds a node to children.
Definition dag_fanout_impl.hpp:115
~dag_fanout_node()
Standard deconstructor.
Definition dag_fanout_impl.hpp:54
void print(string _indent)
Printing function
Definition dag_fanout_impl.hpp:94
dag_fanout_node(const _dag_context &_context)
This node uses data computed from the previous node to fan-out to it's children.
Definition dag_fanout_impl.hpp:50
void fan_out(Type *_data)
Function to do it's job.
Definition dag_fanout_impl.hpp:71
The main DAG function that encapulates generation and mapping of the data across the DAG.
Definition dag_impl.hpp:59
void print()
Simple print function to print the ID of this DAG and it's children.
Definition dag_impl.hpp:148
IDType get_id()
Simple getter for the ID of the DAG itself.
Definition dag_impl.hpp:102