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

#include <flow_graph.h>

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

Public Types

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

Public Member Functions

 composite_node (graph &g)
 
template<typename T >
void set_external_ports (T &&input_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 ()
 
- Public Member Functions inherited from tbb::flow::interface11::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
 

Static Private Attributes

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

Additional Inherited Members

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

Detailed Description

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

Definition at line 4041 of file flow_graph.h.

Member Typedef Documentation

◆ input_ports_type

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

Definition at line 4043 of file flow_graph.h.

Constructor & Destructor Documentation

◆ composite_node()

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

Definition at line 4059 of file flow_graph.h.

4059  : graph_node(g) {
4060  tbb::internal::fgt_composite( CODEPTR(), this, &g );
4061  }

References CODEPTR, and tbb::internal::fgt_composite().

Here is the call graph for this function:

Member Function Documentation

◆ add_nodes()

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

Definition at line 4077 of file flow_graph.h.

4077 { internal::add_nodes_impl(this, false, n...); }

References internal::add_nodes_impl().

Here is the call graph for this function:

◆ add_visible_nodes()

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

Definition at line 4074 of file flow_graph.h.

4074 { internal::add_nodes_impl(this, true, n...); }

References internal::add_nodes_impl().

Here is the call graph for this function:

◆ input_ports()

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

Definition at line 4085 of file flow_graph.h.

4085  {
4086  __TBB_ASSERT(my_input_ports, "input ports not set, call set_external_ports to set input ports");
4087  return *my_input_ports;
4088  }

References __TBB_ASSERT.

◆ reset_node()

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

Implements tbb::flow::interface11::graph_node.

Definition at line 4050 of file flow_graph.h.

4050 {}

◆ set_external_ports()

template<typename... InputTypes>
template<typename T >
void tbb::flow::interface11::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple<> >::set_external_ports ( T &&  input_ports_tuple)
inline

Definition at line 4065 of file flow_graph.h.

4065  {
4066  __TBB_STATIC_ASSERT(NUM_INPUTS == tbb::flow::tuple_size<input_ports_type>::value, "number of arguments does not match number of input ports");
4067 
4068  my_input_ports = tbb::internal::make_unique<input_ports_type>(std::forward<T>(input_ports_tuple));
4069 
4070  tbb::internal::fgt_internal_input_alias_helper<T, NUM_INPUTS>::alias_port( this, std::forward<T>(input_ports_tuple));
4071  }

References __TBB_STATIC_ASSERT, tbb::internal::fgt_internal_input_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>
std::unique_ptr<input_ports_type> tbb::flow::interface11::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple<> >::my_input_ports
private

Definition at line 4046 of file flow_graph.h.

◆ NUM_INPUTS

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

Definition at line 4047 of file flow_graph.h.


The documentation for this class was generated from the following file:
tbb::internal::fgt_internal_input_alias_helper::alias_port
static void alias_port(void *, PortsTuple &)
Definition: _flow_graph_trace_impl.h:351
tbb::internal::fgt_composite
static void fgt_composite(void *, void *, void *)
Definition: _flow_graph_trace_impl.h:301
CODEPTR
#define CODEPTR()
Definition: _flow_graph_trace_impl.h:297
__TBB_ASSERT
#define __TBB_ASSERT(predicate, comment)
No-op version of __TBB_ASSERT.
Definition: tbb_stddef.h:165
__TBB_STATIC_ASSERT
#define __TBB_STATIC_ASSERT(condition, msg)
Definition: tbb_stddef.h:553
internal::add_nodes_impl
void add_nodes_impl(CompositeType *, bool)
Definition: _flow_graph_node_impl.h:958
tbb::flow::interface11::graph_node::graph_node
graph_node(graph &g)
Definition: flow_graph.h:887
tbb::flow::interface11::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple<> >::my_input_ports
std::unique_ptr< input_ports_type > my_input_ports
Definition: flow_graph.h:4046
value
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
Definition: ittnotify_static.h:192
tbb::flow::interface11::composite_node< tbb::flow::tuple< InputTypes... >, tbb::flow::tuple<> >::NUM_INPUTS
static const size_t NUM_INPUTS
Definition: flow_graph.h:4047

Copyright © 2005-2020 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.