|
Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Forwards messages in arbitrary order. More...
#include <flow_graph.h>
Classes | |
| class | buffer_operation |
Public Member Functions | |
| buffer_node (graph &g) | |
| Constructor. More... | |
| buffer_node (const buffer_node &src) | |
| Copy constructor. More... | |
| bool | register_successor (successor_type &r) __TBB_override |
| Adds a new successor. More... | |
| bool | remove_successor (successor_type &r) __TBB_override |
| Removes a successor. More... | |
| bool | try_get (T &v) __TBB_override |
| Request an item from the buffer_node. More... | |
| bool | try_reserve (T &v) __TBB_override |
| Reserves an item. More... | |
| bool | try_release () __TBB_override |
| Release a reserved item. More... | |
| bool | try_consume () __TBB_override |
| Consumes a reserved item. More... | |
Public Member Functions inherited from tbb::flow::interface10::graph_node | |
| graph_node (graph &g) | |
| virtual | ~graph_node () |
Public Member Functions inherited from tbb::flow::interface10::internal::reservable_item_buffer< T, A > | |
| reservable_item_buffer () | |
| void | reset () |
Public Member Functions inherited from tbb::flow::interface10::internal::item_buffer< T, A > | |
| item_buffer () | |
| Constructor. More... | |
| ~item_buffer () | |
| void | reset () |
Public Member Functions inherited from tbb::flow::interface10::receiver< T > | |
| 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) |
Public Member Functions inherited from tbb::flow::interface10::internal::untyped_receiver | |
| virtual | ~untyped_receiver () |
| Destructor. More... | |
| template<typename X > | |
| bool | try_put (const X &t) |
| Put an item to the receiver. More... | |
| virtual bool | register_predecessor (predecessor_type &) |
| Add a predecessor to the node. More... | |
| virtual bool | remove_predecessor (predecessor_type &) |
| Remove a predecessor from the node. More... | |
Public Member Functions inherited from tbb::flow::interface10::internal::untyped_sender | |
| virtual | ~untyped_sender () |
Protected Types | |
| enum | op_type { reg_succ, rem_succ, req_item, res_item, rel_res, con_res, put_item, try_fwd_task } |
| typedef size_t | size_type |
| typedef internal::aggregating_functor< class_type, buffer_operation > | handler_type |
Protected Types inherited from tbb::flow::interface10::internal::item_buffer< T, A > | |
| typedef size_t | size_type |
| typedef aligned_pair< item_type, buffer_item_state >::type | buffer_item_type |
| typedef A::template rebind< buffer_item_type >::other | allocator_type |
Protected Attributes | |
| internal::round_robin_cache< T, null_rw_mutex > | my_successors |
| bool | forwarder_busy |
| internal::aggregator< handler_type, buffer_operation > | my_aggregator |
Protected Attributes inherited from tbb::flow::interface10::graph_node | |
| graph & | my_graph |
| graph_node * | next |
| graph_node * | prev |
Protected Attributes inherited from tbb::flow::interface10::internal::reservable_item_buffer< T, A > | |
| bool | my_reserved |
Protected Attributes inherited from tbb::flow::interface10::internal::item_buffer< T, A > | |
| buffer_item_type * | my_array |
| size_type | my_array_size |
| size_type | my_head |
| size_type | my_tail |
Private Member Functions | |
| void | order () |
| bool | is_item_valid () |
| void | try_put_and_add_task (task *&last_task) |
Friends | |
| class | internal::forward_task_bypass< buffer_node< T, A > > |
| class | internal::aggregating_functor< class_type, buffer_operation > |
| 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 | |
Static Protected Attributes inherited from tbb::flow::interface10::internal::item_buffer< T, A > | |
| static const size_type | initial_buffer_size = 4 |
Forwards messages in arbitrary order.
Definition at line 1541 of file flow_graph.h.
| typedef buffer_node<T, A> tbb::flow::interface10::buffer_node< T, A >::class_type |
Definition at line 1547 of file flow_graph.h.
|
protected |
Definition at line 1602 of file flow_graph.h.
| typedef T tbb::flow::interface10::buffer_node< T, A >::input_type |
Definition at line 1543 of file flow_graph.h.
| typedef T tbb::flow::interface10::buffer_node< T, A >::output_type |
Definition at line 1544 of file flow_graph.h.
| typedef receiver<input_type>::predecessor_type tbb::flow::interface10::buffer_node< T, A >::predecessor_type |
Definition at line 1545 of file flow_graph.h.
|
protected |
Definition at line 1553 of file flow_graph.h.
| typedef sender<output_type>::successor_type tbb::flow::interface10::buffer_node< T, A >::successor_type |
Definition at line 1546 of file flow_graph.h.
|
protected |
| Enumerator | |
|---|---|
| reg_succ | |
| rem_succ | |
| req_item | |
| res_item | |
| rel_res | |
| con_res | |
| put_item | |
| try_fwd_task | |
Definition at line 1562 of file flow_graph.h.
|
inlineexplicit |
Constructor.
Definition at line 1837 of file flow_graph.h.
|
inline |
Copy constructor.
Definition at line 1846 of file flow_graph.h.
References tbb::flow::interface10::internal::successor_cache< T, M >::set_owner().
|
inlineprotected |
Definition at line 1664 of file flow_graph.h.
References tbb::flow::interface10::internal::key_matching_port< TraitsType >::graph_reference(), and tbb::flow::interface10::internal::spawn_in_graph_arena().
|
inlineprotectedvirtual |
This is executed by an enqueued task, the "forwarder".
Definition at line 1674 of file flow_graph.h.
|
inlineprotected |
Definition at line 1660 of file flow_graph.h.
|
inlineprotectedvirtual |
Implements tbb::flow::interface10::internal::untyped_receiver.
Definition at line 2006 of file flow_graph.h.
|
inlineprotectedvirtual |
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >.
Definition at line 1606 of file flow_graph.h.
|
inlineprotected |
Definition at line 1611 of file flow_graph.h.
|
inlineprotectedvirtual |
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >, and tbb::flow::interface10::queue_node< T, A >.
Definition at line 1825 of file flow_graph.h.
References tbb::internal::__TBB_store_with_release(), and tbb::flow::interface10::internal::SUCCEEDED.
|
inlineprotectedvirtual |
Tries to forward valid items to successors.
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >, and tbb::flow::interface10::queue_node< T, A >.
Definition at line 1772 of file flow_graph.h.
|
inlineprotected |
Definition at line 1777 of file flow_graph.h.
|
inlineprotectedvirtual |
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >, and tbb::flow::interface10::queue_node< T, A >.
Definition at line 1807 of file flow_graph.h.
|
inlineprotectedvirtual |
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >, and tbb::flow::interface10::sequencer_node< T, A >.
Definition at line 1801 of file flow_graph.h.
|
inlineprotectedvirtual |
Register successor.
Definition at line 1691 of file flow_graph.h.
|
inlineprotectedvirtual |
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >.
Definition at line 1830 of file flow_graph.h.
References tbb::internal::__TBB_store_with_release(), and tbb::flow::interface10::internal::SUCCEEDED.
|
inlineprotectedvirtual |
Remove successor.
Definition at line 1697 of file flow_graph.h.
|
inlineprotectedvirtual |
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >, and tbb::flow::interface10::queue_node< T, A >.
Definition at line 1816 of file flow_graph.h.
|
inlineprivate |
Definition at line 1756 of file flow_graph.h.
|
inlineprivate |
Definition at line 1754 of file flow_graph.h.
|
inlinevirtual |
Adds a new successor.
Adds successor r to the list of successors; may forward tasks.
Implements tbb::flow::interface10::internal::untyped_sender.
Definition at line 1867 of file flow_graph.h.
|
inlinevirtual |
Removes a successor.
Removes successor r from the list of successors. It also calls r.remove_predecessor(*this) to remove this node as a predecessor.
Implements tbb::flow::interface10::internal::untyped_sender.
Definition at line 1929 of file flow_graph.h.
|
inlineprotectedvirtual |
Implements tbb::flow::interface10::graph_node.
Reimplemented in tbb::flow::interface10::priority_queue_node< T, Compare, A >, and tbb::flow::interface10::queue_node< T, A >.
Definition at line 2021 of file flow_graph.h.
References tbb::flow::interface10::internal::successor_cache< T, M >::clear(), and tbb::flow::interface10::internal::reservable_item_buffer< T, A >::reset().
|
inlineprotectedvirtual |
put receiver back in initial state
Implements tbb::flow::interface10::internal::untyped_receiver.
Definition at line 2010 of file flow_graph.h.
References __TBB_override.
|
inlinevirtual |
Consumes a reserved item.
true = item is removed from sender and reservation removed
Reimplemented from tbb::flow::interface10::internal::untyped_sender.
Definition at line 1974 of file flow_graph.h.
References void.
|
inlinevirtual |
Request an item from the buffer_node.
true = v contains the returned item
false = no item has been returned
Reimplemented from tbb::flow::interface10::sender< T >.
Definition at line 1944 of file flow_graph.h.
|
inlineprivate |
Definition at line 1760 of file flow_graph.h.
|
inlineprotectedvirtual |
receive an item, return a task *if possible
Implements tbb::flow::interface10::receiver< T >.
Definition at line 1987 of file flow_graph.h.
|
inlinevirtual |
Release a reserved item.
true = item has been released and so remains in sender
Reimplemented from tbb::flow::interface10::internal::untyped_sender.
Definition at line 1965 of file flow_graph.h.
|
inlinevirtual |
Reserves an item.
false = no item can be reserved
true = an item is reserved
Reimplemented from tbb::flow::interface10::sender< T >.
Definition at line 1955 of file flow_graph.h.
References tbb::flow::interface10::internal::SUCCEEDED, and void.
|
friend |
Definition at line 1603 of file flow_graph.h.
|
friend |
Definition at line 1984 of file flow_graph.h.
|
friend |
Definition at line 1560 of file flow_graph.h.
|
friend |
Definition at line 1985 of file flow_graph.h.
|
friend |
Definition at line 1983 of file flow_graph.h.
|
protected |
Definition at line 1601 of file flow_graph.h.
|
protected |
Definition at line 1604 of file flow_graph.h.
|
protected |
Definition at line 1554 of file flow_graph.h.