broadcast.h
Go to the documentation of this file.
28 class BinaryTreeBroadcast : public TT<int, std::tuple<Out<int, Value>, Out<int, Value>, Out<OutKey, Value>>,
33 BinaryTreeBroadcast(Edge<int, Value> &in, Edge<OutKey, Value> &out, std::vector<OutKey> local_keys, int root = 0,
46 if (children.first != -1) send<0>(children.first, this->template get<0, const Value &>(indata), outdata);
47 if (children.second != -1) send<1>(children.second, this->template get<0, const Value &>(indata), outdata);
a binary spanning tree of integers in the [0,size) interval
Definition: tree.h:17
std::pair< int, int > child_keys(const int parent_key) const
Definition: tree.h:40
generic binary broadcast of a value to a set of {key,value} pairs
Definition: broadcast.h:29
void op(const int &key, typename baseT::input_values_tuple_type &&indata, std::tuple< Out< int, Value >, Out< int, Value >, Out< int, Value >> &outdata)
Definition: broadcast.h:41
BinaryTreeBroadcast(Edge< int, Value > &in, Edge< OutKey, Value > &out, std::vector< OutKey > local_keys, int root=0, World world=ttg::default_execution_context(), int max_key=-1, Edge< int, Value > inout_l=Edge< int, Value >{}, Edge< int, Value > inout_r=Edge< int, Value >{})
Definition: broadcast.h:33
Definition: terminal.h:429
Definition: world.h:17
Definition: ttg.h:1184
std::tuple_element_t< i, input_terminals_type > * in()
Definition: ttg.h:4205
TT ttT
Definition: ttg.h:1250
ttg::World get_world() const override final
Definition: ttg.h:1351
std::tuple_element_t< i, std::tuple< Out< int, Value >, Out< int, Value >, Out< int, Value > > > * out()
Definition: ttg.h:4212
auto fuse(const Edge< keyT, valuesT > &...args)
Fuse edges into one This allows receiving one data from either of the combined edges.
Definition: func.h:137
World default_execution_context()
Accesses the default backend's default execution context.
Definition: run.h:68