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, __TBB_DEFAULT_NODE_ALLOCATOR(T) > | class_type |
![]() | |
enum | buffer_item_state |
typedef T | item_type |
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_STATIC_ASSERT ((tbb::internal::is_same_type< __TBB_DEFAULT_NODE_ALLOCATOR(T), null_type >::value), "__TBB_DEFAULT_NODE_ALLOCATOR(T) template parameter for flow graph nodes is deprecated and will be removed. " "Specify TBB_DEPRECATED_FLOW_NODE_ALLOCATOR to temporary enable the deprecated interface.") | |
__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 () |
![]() | |
virtual | ~receiver () |
Destructor. More... | |
bool | try_put (const T &t) |
Put an item to the receiver. More... | |
virtual __TBB_DEPRECATED bool | register_predecessor (predecessor_type &) |
Add a predecessor to the node. More... | |
virtual __TBB_DEPRECATED bool | remove_predecessor (predecessor_type &) |
Remove a predecessor from the node. More... | |
![]() | |
virtual | ~sender () |
virtual __TBB_DEPRECATED bool | register_successor (successor_type &r)=0 |
Add a new successor to this node. More... | |
virtual __TBB_DEPRECATED bool | remove_successor (successor_type &r)=0 |
Removes a successor from this node. More... | |
Protected Types | |
typedef buffer_node< T, Allocator > | base_type |
typedef base_type::size_type | size_type |
typedef base_type::buffer_operation | queue_operation |
typedef queue_node | class_type |
![]() | |
enum | op_type |
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 tbb::internal::allocator_rebind< cache_aligned_allocator< T >, buffer_item_type >::type | allocator_type |
Private Member Functions | |
__TBB_STATIC_ASSERT ((tbb::internal::is_same_type< Allocator, null_type >::value), "Allocator template parameter for flow graph nodes is deprecated and will be removed. " "Specify TBB_DEPRECATED_FLOW_NODE_ALLOCATOR to temporary enable the deprecated interface.") | |
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 2560 of file flow_graph.h.
|
protected |
Definition at line 2569 of file flow_graph.h.
|
protected |
Definition at line 2572 of file flow_graph.h.
typedef T tbb::flow::interface11::queue_node< T, Allocator >::input_type |
Definition at line 2620 of file flow_graph.h.
typedef T tbb::flow::interface11::queue_node< T, Allocator >::output_type |
Definition at line 2621 of file flow_graph.h.
typedef receiver<input_type>::predecessor_type tbb::flow::interface11::queue_node< T, Allocator >::predecessor_type |
Definition at line 2622 of file flow_graph.h.
|
protected |
Definition at line 2571 of file flow_graph.h.
|
protected |
Definition at line 2570 of file flow_graph.h.
typedef sender<output_type>::successor_type tbb::flow::interface11::queue_node< T, Allocator >::successor_type |
Definition at line 2623 of file flow_graph.h.
|
inlineexplicit |
|
inline |
|
private |
|
inlineprotected |
Definition at line 2614 of file flow_graph.h.
|
inlineprotected |
Definition at line 2592 of file flow_graph.h.
|
inlineprotected |
Definition at line 2596 of file flow_graph.h.
|
inlineprotected |
Definition at line 2605 of file flow_graph.h.
|
inlineprivate |
Definition at line 2577 of file flow_graph.h.
|
inlineprotectedvirtual |
Implements tbb::flow::interface11::graph_node.
Definition at line 2653 of file flow_graph.h.
|
inlineprivate |
Definition at line 2581 of file flow_graph.h.
|
friend |
Definition at line 2575 of file flow_graph.h.