Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Forwards messages in FIFO order. 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 |
![]() | |
typedef T | input_type |
typedef T | output_type |
typedef receiver< input_type >::predecessor_type | predecessor_type |
typedef sender< output_type >::successor_type | successor_type |
typedef buffer_node< T, A > | class_type |
![]() | |
enum | buffer_item_state { no_item =0, has_item =1, reserved_item =2 } |
typedef T | item_type |
![]() | |
typedef untyped_sender | predecessor_type |
The predecessor type for this node. More... | |
![]() | |
typedef untyped_receiver | successor_type |
The successor type for this node. More... | |
Public Member Functions | |
__TBB_NOINLINE_SYM | queue_node (graph &g) |
Constructor. More... | |
__TBB_NOINLINE_SYM | queue_node (const queue_node &src) |
Copy constructor. More... | |
![]() | |
__TBB_NOINLINE_SYM | buffer_node (graph &g) |
Constructor. More... | |
__TBB_NOINLINE_SYM | 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... | |
![]() | |
graph_node (graph &g) | |
virtual | ~graph_node () |
![]() | |
reservable_item_buffer () | |
void | reset () |
![]() | |
item_buffer () | |
Constructor. More... | |
~item_buffer () | |
void | reset () |
![]() | |
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 | ~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... | |
![]() | |
virtual | ~untyped_sender () |
Protected Types | |
typedef buffer_node< T, A > | base_type |
typedef base_type::size_type | size_type |
typedef base_type::buffer_operation | queue_operation |
typedef queue_node | class_type |
![]() | |
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 |
![]() | |
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 |
Private Member Functions | |
bool | is_item_valid () |
void | try_put_and_add_task (task *&last_task) |
Friends | |
template<typename , typename > | |
class | buffer_node |
Forwards messages in FIFO order.
Definition at line 2206 of file flow_graph.h.
|
protected |
Definition at line 2208 of file flow_graph.h.
|
protected |
Definition at line 2211 of file flow_graph.h.
typedef T tbb::flow::interface11::queue_node< T, A >::input_type |
Definition at line 2259 of file flow_graph.h.
typedef T tbb::flow::interface11::queue_node< T, A >::output_type |
Definition at line 2260 of file flow_graph.h.
typedef receiver<input_type>::predecessor_type tbb::flow::interface11::queue_node< T, A >::predecessor_type |
Definition at line 2261 of file flow_graph.h.
|
protected |
Definition at line 2210 of file flow_graph.h.
|
protected |
Definition at line 2209 of file flow_graph.h.
typedef sender<output_type>::successor_type tbb::flow::interface11::queue_node< T, A >::successor_type |
Definition at line 2262 of file flow_graph.h.
|
inlineexplicit |
Constructor.
Definition at line 2265 of file flow_graph.h.
References CODEPTR, tbb::internal::fgt_node(), and tbb::flow::interface11::graph_node::my_graph.
|
inline |
Copy constructor.
Definition at line 2279 of file flow_graph.h.
References CODEPTR, tbb::internal::fgt_node(), and tbb::flow::interface11::graph_node::my_graph.
|
inlineprotectedvirtual |
Reimplemented from tbb::flow::interface11::buffer_node< T, A >.
Definition at line 2253 of file flow_graph.h.
References tbb::internal::__TBB_store_with_release(), internal::reservable_item_buffer< T, A >::consume_front(), and internal::SUCCEEDED.
|
inlineprotectedvirtual |
Tries to forward valid items to successors.
Reimplemented from tbb::flow::interface11::buffer_node< T, A >.
Definition at line 2231 of file flow_graph.h.
References tbb::flow::interface11::buffer_node< T, A >::internal_forward_task_impl().
|
inlineprotectedvirtual |
Reimplemented from tbb::flow::interface11::buffer_node< T, A >.
Definition at line 2235 of file flow_graph.h.
References tbb::internal::__TBB_store_with_release(), internal::FAILED, internal::item_buffer< T, A >::my_head, internal::item_buffer< T, A >::my_item_valid(), internal::reservable_item_buffer< T, A >::my_reserved, internal::item_buffer< T, A >::pop_front(), and internal::SUCCEEDED.
|
inlineprotectedvirtual |
Reimplemented from tbb::flow::interface11::buffer_node< T, A >.
Definition at line 2244 of file flow_graph.h.
References tbb::internal::__TBB_store_with_release(), internal::FAILED, internal::item_buffer< T, A >::my_head, internal::item_buffer< T, A >::my_item_valid(), internal::reservable_item_buffer< T, A >::my_reserved, internal::reservable_item_buffer< T, A >::reserve_front(), and internal::SUCCEEDED.
|
inlineprivate |
Definition at line 2216 of file flow_graph.h.
References internal::item_buffer< T, A >::my_head, and internal::item_buffer< T, A >::my_item_valid().
|
inlineprotectedvirtual |
Reimplemented from tbb::flow::interface11::buffer_node< T, A >.
Definition at line 2292 of file flow_graph.h.
References tbb::flow::interface11::buffer_node< T, A >::reset_node().
|
inlineprivate |
Definition at line 2220 of file flow_graph.h.
References tbb::flow::interface11::combine_tasks(), internal::item_buffer< T, A >::destroy_front(), internal::item_buffer< T, A >::front(), and tbb::flow::interface11::buffer_node< T, A >::graph_reference().
|
friend |
Definition at line 2214 of file flow_graph.h.