template<typename keyT, typename valueT>
class ttg::Edge< keyT, valueT >
Edge is used to connect In and Out terminals.
Edge objects can connect in a type-safe way one or more Out terminals to an In terminal or one Out terminal to one or more In terminals.
- Template Parameters
-
<keyT> | type of the destination task identifiers (keys) |
<valueT> | type of the data carried by the Edge. |
- Examples
- distributed.cc, iterative.cc, reducing.cc, and simple.cc.
Definition at line 25 of file edge.h.
|
| Edge (const std::string name="anonymous edge") |
|
| Edge (const std::string name, bool is_pull, ttg::detail::ContainerWrapper< keyT, valueT > c) |
|
template<typename... valuesT, typename = std::enable_if_t<(std::is_same_v<valuesT, valueT> && ...)>> |
| Edge (const Edge< keyT, valuesT > &...edges) |
| Edge carrying a tuple of values. More...
|
|
Edge< keyT, valueT > | edge () const |
|
bool | live () const |
| probes if this is already has at least one input received on the input terminal More...
|
|
bool | is_pull_edge () const |
|
void | set_in (Out< keyT, valueT > *in) const |
| Sets the output terminal that goes into this Edge. More...
|
|
void | set_out (TerminalBase *out) const |
| Sets the input terminal that this Edge goes into. More...
|
|
template<typename Key = keyT, typename Value = valueT> |
std::enable_if_t< ttg::meta::is_all_void_v< Key, Value > > | fire () const |
|
template<typename keyT , typename valueT >
template<typename... valuesT, typename = std::enable_if_t<(std::is_same_v<valuesT, valueT> && ...)>>
Edge carrying a tuple of values.
Definition at line 118 of file edge.h.