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

#include <flow_graph.h>

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

Public Types

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

Public Member Functions

__TBB_NOINLINE_SYM composite_node (graph &g)
 
template<typename T >
void set_external_ports (T &&output_ports_tuple)
 
template<typename... NodeTypes>
void add_visible_nodes (const NodeTypes &... n)
 
template<typename... NodeTypes>
void add_nodes (const NodeTypes &... n)
 
output_ports_typeoutput_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
 
virtual void reset_node (reset_flags f=rf_reset_protocol)=0
 

Private Attributes

std::unique_ptr< output_ports_typemy_output_ports
 

Static Private Attributes

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

Additional Inherited Members

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

Detailed Description

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

Definition at line 4108 of file flow_graph.h.

Member Typedef Documentation

◆ output_ports_type

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

Definition at line 4110 of file flow_graph.h.

Constructor & Destructor Documentation

◆ composite_node()

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

Definition at line 4126 of file flow_graph.h.

4126 : graph_node(g) {
4128 }
#define CODEPTR()
static void fgt_composite(void *, void *, void *)

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

Here is the call graph for this function:

Member Function Documentation

◆ add_nodes()

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

Definition at line 4144 of file flow_graph.h.

4144{ internal::add_nodes_impl(this, false, n...); }
void add_nodes_impl(CompositeType *, bool)

References internal::add_nodes_impl().

Here is the call graph for this function:

◆ add_visible_nodes()

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

Definition at line 4141 of file flow_graph.h.

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

References internal::add_nodes_impl().

Here is the call graph for this function:

◆ output_ports()

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

Definition at line 4152 of file flow_graph.h.

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

References __TBB_ASSERT.

◆ reset_node()

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

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

Definition at line 4117 of file flow_graph.h.

4117{}

◆ set_external_ports()

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

Definition at line 4132 of file flow_graph.h.

4132 {
4133 __TBB_STATIC_ASSERT(NUM_OUTPUTS == tbb::flow::tuple_size<output_ports_type>::value, "number of arguments does not match number of output ports");
4134
4135 my_output_ports = tbb::internal::make_unique<output_ports_type>(std::forward<T>(output_ports_tuple));
4136
4137 tbb::internal::fgt_internal_output_alias_helper<T, NUM_OUTPUTS>::alias_port( this, std::forward<T>(output_ports_tuple));
4138 }
#define __TBB_STATIC_ASSERT(condition, msg)
Definition: tbb_stddef.h:553

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

Here is the call graph for this function:

Member Data Documentation

◆ my_output_ports

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

Definition at line 4113 of file flow_graph.h.

◆ NUM_OUTPUTS

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

Definition at line 4114 of file flow_graph.h.


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

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.