Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Forwards messages of type T to all successors. More...
#include <flow_graph.h>
Public Types | |
typedef T | input_type |
typedef T | output_type |
typedef receiver< input_type >::predecessor_type | predecessor_type |
typedef sender< output_type >::successor_type | successor_type |
Public Member Functions | |
__TBB_NOINLINE_SYM | broadcast_node (graph &g) |
__TBB_NOINLINE_SYM | broadcast_node (const broadcast_node &src) |
bool | register_successor (successor_type &r) __TBB_override |
Adds a successor. More... | |
bool | remove_successor (successor_type &r) __TBB_override |
Removes s as a successor. More... | |
![]() | |
graph_node (graph &g) | |
virtual | ~graph_node () |
![]() | |
bool | try_put (const typename internal::async_helpers< T >::filtered_type &t) |
Put an item to the receiver. More... | |
bool | try_put (const typename internal::async_helpers< T >::async_type &t) |
![]() | |
virtual bool | try_get (T &) |
Request an item from the sender. More... | |
virtual bool | try_reserve (T &) |
Reserves an item in the sender. More... | |
Protected Member Functions | |
task * | try_put_task (const T &t) __TBB_override |
build a task to run the successor if possible. Default is old behavior. More... | |
graph & | graph_reference () const __TBB_override |
void | reset_receiver (reset_flags) __TBB_override |
void | reset_node (reset_flags f) __TBB_override |
![]() | |
virtual task * | try_put_task_wrapper (const void *p, bool is_async) __TBB_override |
![]() | |
virtual bool | try_get_wrapper (void *p, bool is_async) __TBB_override |
virtual bool | try_reserve_wrapper (void *p, bool is_async) __TBB_override |
Private Attributes | |
internal::broadcast_cache< input_type > | my_successors |
Friends | |
template<typename R , typename B > | |
class | run_and_put_task |
template<typename X , typename Y > | |
class | internal::broadcast_cache |
template<typename X , typename Y > | |
class | internal::round_robin_cache |
Additional Inherited Members | |
![]() | |
__TBB_DEPRECATED typedef T | input_type |
The input type of this receiver. More... | |
__TBB_DEPRECATED typedef internal::async_helpers< T >::filtered_type | filtered_type |
![]() | |
__TBB_DEPRECATED typedef T | output_type |
The output type of this sender. More... | |
__TBB_DEPRECATED typedef internal::async_helpers< T >::filtered_type | filtered_type |
![]() | |
graph & | my_graph |
graph_node * | next |
graph_node * | prev |
Forwards messages of type T to all successors.
Definition at line 1897 of file flow_graph.h.
typedef T tbb::flow::interface11::broadcast_node< T >::input_type |
Definition at line 1899 of file flow_graph.h.
typedef T tbb::flow::interface11::broadcast_node< T >::output_type |
Definition at line 1900 of file flow_graph.h.
typedef receiver<input_type>::predecessor_type tbb::flow::interface11::broadcast_node< T >::predecessor_type |
Definition at line 1901 of file flow_graph.h.
typedef sender<output_type>::successor_type tbb::flow::interface11::broadcast_node< T >::successor_type |
Definition at line 1902 of file flow_graph.h.
|
inlineexplicit |
Definition at line 1915 of file flow_graph.h.
References CODEPTR, tbb::internal::fgt_node(), tbb::flow::interface11::graph_node::my_graph, and tbb::flow::interface11::broadcast_node< T >::my_successors.
|
inline |
Definition at line 1929 of file flow_graph.h.
References CODEPTR, tbb::internal::fgt_node(), tbb::flow::interface11::graph_node::my_graph, and tbb::flow::interface11::broadcast_node< T >::my_successors.
|
inlineprotected |
Definition at line 2017 of file flow_graph.h.
References tbb::flow::interface11::graph_node::my_graph.
|
inline |
Adds a successor.
Definition at line 1944 of file flow_graph.h.
References tbb::flow::interface11::broadcast_node< T >::my_successors.
|
inline |
Removes s as a successor.
Definition at line 1950 of file flow_graph.h.
References tbb::flow::interface11::broadcast_node< T >::my_successors.
|
inlineprotectedvirtual |
Implements tbb::flow::interface11::graph_node.
Definition at line 2023 of file flow_graph.h.
References __TBB_ASSERT, tbb::flow::interface11::broadcast_node< T >::my_successors, and tbb::flow::interface11::rf_clear_edges.
|
inlineprotected |
Definition at line 2021 of file flow_graph.h.
|
inlineprotectedvirtual |
build a task to run the successor if possible. Default is old behavior.
Implements tbb::flow::interface11::receiver< T >.
Definition at line 2011 of file flow_graph.h.
References tbb::flow::interface11::broadcast_node< T >::my_successors, and tbb::flow::internal::SUCCESSFULLY_ENQUEUED.
|
friend |
Definition at line 2008 of file flow_graph.h.
|
friend |
Definition at line 2009 of file flow_graph.h.
Definition at line 2007 of file flow_graph.h.
|
private |
Definition at line 1908 of file flow_graph.h.
Referenced by tbb::flow::interface11::broadcast_node< T >::broadcast_node(), tbb::flow::interface11::broadcast_node< T >::register_successor(), tbb::flow::interface11::broadcast_node< T >::remove_successor(), tbb::flow::interface11::broadcast_node< T >::reset_node(), and tbb::flow::interface11::broadcast_node< T >::try_put_task().