Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > > Class Template Reference

#include <flow_graph.h>

Inheritance diagram for tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >:
Collaboration diagram for tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >:

Public Types

typedef tbb::flow::tuple< receiver< InputTypes > &... > input_ports_type
 
typedef tbb::flow::tuple< sender< OutputTypes > &... > output_ports_type
 

Public Member Functions

 composite_node (graph &g)
 
template<typename T1 , typename T2 >
void set_external_ports (T1 &&input_ports_tuple, T2 &&output_ports_tuple)
 
template<typename... NodeTypes>
void add_visible_nodes (const NodeTypes &... n)
 
template<typename... NodeTypes>
void add_nodes (const NodeTypes &... n)
 
input_ports_typeinput_ports ()
 
output_ports_typeoutput_ports ()
 
- Public Member Functions inherited from tbb::flow::interface10::graph_node
 graph_node (graph &g)
 
virtual ~graph_node ()
 

Protected Member Functions

void reset_node (reset_flags) __TBB_override
 

Private Attributes

std::unique_ptr< input_ports_typemy_input_ports
 
std::unique_ptr< output_ports_typemy_output_ports
 

Static Private Attributes

static const size_t NUM_INPUTS = sizeof...(InputTypes)
 
static const size_t NUM_OUTPUTS = sizeof...(OutputTypes)
 

Additional Inherited Members

- Protected Attributes inherited from tbb::flow::interface10::graph_node
graphmy_graph
 
graph_nodenext
 
graph_nodeprev
 

Detailed Description

template<typename... InputTypes, typename... OutputTypes>
class tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >

Definition at line 3260 of file flow_graph.h.

Member Typedef Documentation

◆ input_ports_type

template<typename... InputTypes, typename... OutputTypes>
typedef tbb::flow::tuple< receiver<InputTypes>&... > tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::input_ports_type

Definition at line 3263 of file flow_graph.h.

◆ output_ports_type

template<typename... InputTypes, typename... OutputTypes>
typedef tbb::flow::tuple< sender<OutputTypes>&... > tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::output_ports_type

Definition at line 3264 of file flow_graph.h.

Constructor & Destructor Documentation

◆ composite_node()

template<typename... InputTypes, typename... OutputTypes>
tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::composite_node ( graph g)
inline

Definition at line 3283 of file flow_graph.h.

3283  : graph_node(g) {
3284  tbb::internal::fgt_multiinput_multioutput_node( tbb::internal::FLOW_COMPOSITE_NODE, this, &this->my_graph );
3285  }
static void fgt_multiinput_multioutput_node(string_index, void *, void *)

References tbb::internal::fgt_multiinput_multioutput_node().

Here is the call graph for this function:

Member Function Documentation

◆ add_nodes()

template<typename... InputTypes, typename... OutputTypes>
template<typename... NodeTypes>
void tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::add_nodes ( const NodeTypes &...  n)
inline

Definition at line 3303 of file flow_graph.h.

3303 { internal::add_nodes_impl(this, false, n...); }
void add_nodes_impl(CompositeType *, bool)
Definition: flow_graph.h:879

References tbb::flow::interface10::internal::add_nodes_impl().

Here is the call graph for this function:

◆ add_visible_nodes()

template<typename... InputTypes, typename... OutputTypes>
template<typename... NodeTypes>
void tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::add_visible_nodes ( const NodeTypes &...  n)
inline

Definition at line 3300 of file flow_graph.h.

3300 { internal::add_nodes_impl(this, true, n...); }
void add_nodes_impl(CompositeType *, bool)
Definition: flow_graph.h:879

References tbb::flow::interface10::internal::add_nodes_impl().

Here is the call graph for this function:

◆ input_ports()

template<typename... InputTypes, typename... OutputTypes>
input_ports_type& tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::input_ports ( )
inline

Definition at line 3311 of file flow_graph.h.

3311  {
3312  __TBB_ASSERT(my_input_ports, "input ports not set, call set_external_ports to set input ports");
3313  return *my_input_ports;
3314  }
#define __TBB_ASSERT(predicate, comment)
No-op version of __TBB_ASSERT.
Definition: tbb_stddef.h:165

References __TBB_ASSERT.

◆ output_ports()

template<typename... InputTypes, typename... OutputTypes>
output_ports_type& tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::output_ports ( )
inline

Definition at line 3316 of file flow_graph.h.

3316  {
3317  __TBB_ASSERT(my_output_ports, "output ports not set, call set_external_ports to set output ports");
3318  return *my_output_ports;
3319  }
#define __TBB_ASSERT(predicate, comment)
No-op version of __TBB_ASSERT.
Definition: tbb_stddef.h:165

References __TBB_ASSERT.

◆ reset_node()

template<typename... InputTypes, typename... OutputTypes>
void tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::reset_node ( reset_flags  )
inlineprotectedvirtual

Implements tbb::flow::interface10::graph_node.

Definition at line 3274 of file flow_graph.h.

3274 {}

◆ set_external_ports()

template<typename... InputTypes, typename... OutputTypes>
template<typename T1 , typename T2 >
void tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::set_external_ports ( T1 &&  input_ports_tuple,
T2 &&  output_ports_tuple 
)
inline

Definition at line 3289 of file flow_graph.h.

3289  {
3290  __TBB_STATIC_ASSERT(NUM_INPUTS == tbb::flow::tuple_size<input_ports_type>::value, "number of arguments does not match number of input ports");
3291  __TBB_STATIC_ASSERT(NUM_OUTPUTS == tbb::flow::tuple_size<output_ports_type>::value, "number of arguments does not match number of output ports");
3292  my_input_ports = tbb::internal::make_unique<input_ports_type>(std::forward<T1>(input_ports_tuple));
3293  my_output_ports = tbb::internal::make_unique<output_ports_type>(std::forward<T2>(output_ports_tuple));
3294 
3297  }
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long value
#define __TBB_STATIC_ASSERT(condition, msg)
Definition: tbb_stddef.h:532

References __TBB_STATIC_ASSERT, tbb::internal::fgt_internal_input_alias_helper< PortsTuple, N >::alias_port(), tbb::internal::fgt_internal_output_alias_helper< PortsTuple, N >::alias_port(), and value.

Here is the call graph for this function:

Member Data Documentation

◆ my_input_ports

template<typename... InputTypes, typename... OutputTypes>
std::unique_ptr<input_ports_type> tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::my_input_ports
private

Definition at line 3267 of file flow_graph.h.

◆ my_output_ports

template<typename... InputTypes, typename... OutputTypes>
std::unique_ptr<output_ports_type> tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::my_output_ports
private

Definition at line 3268 of file flow_graph.h.

◆ NUM_INPUTS

template<typename... InputTypes, typename... OutputTypes>
const size_t tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::NUM_INPUTS = sizeof...(InputTypes)
staticprivate

Definition at line 3270 of file flow_graph.h.

◆ NUM_OUTPUTS

template<typename... InputTypes, typename... OutputTypes>
const size_t tbb::flow::interface10::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple< OutputTypes... > >::NUM_OUTPUTS = sizeof...(OutputTypes)
staticprivate

Definition at line 3271 of file flow_graph.h.


The documentation for this class was generated from the following file:

Copyright © 2005-2019 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.