Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
internal::multifunction_output< Output > Class Template Reference

#include <_flow_graph_node_impl.h>

Inheritance diagram for internal::multifunction_output< Output >:
Collaboration diagram for internal::multifunction_output< Output >:

Public Types

typedef Output output_type
 
typedef function_output
< output_type
base_type
 
- Public Types inherited from internal::function_output< Output >
typedef Output output_type
 
typedef sender< output_type >
::successor_type 
successor_type
 
typedef broadcast_cache
< output_type
broadcast_cache_type
 
- Public Types inherited from tbb::flow::interface11::internal::untyped_sender
typedef untyped_receiver successor_type
 The successor type for this node. More...
 

Public Member Functions

 multifunction_output (graph &g)
 
 multifunction_output (const multifunction_output &other)
 
bool try_put (const output_type &i)
 
- Public Member Functions inherited from internal::function_output< Output >
 function_output (graph &g)
 
 function_output (const function_output &other)
 
bool register_successor (successor_type &r) __TBB_override
 Adds a new successor to this node. More...
 
bool remove_successor (successor_type &r) __TBB_override
 Removes a successor from this node. More...
 
tasktry_put_task (const output_type &i)
 
broadcast_cache_typesuccessors ()
 
graph & graph_reference () const
 
- Public Member Functions inherited from tbb::flow::interface11::sender< Output >
virtual bool try_get (Output &)
 Request an item from the sender. More...
 
virtual bool try_reserve (Output &)
 Reserves an item in the sender. More...
 
- Public Member Functions inherited from tbb::flow::interface11::internal::untyped_sender
virtual ~untyped_sender ()
 
virtual bool try_release ()
 Releases the reserved item. More...
 
virtual bool try_consume ()
 Consumes the reserved item. More...
 

Protected Member Functions

tasktry_put_task (const output_type &i)
 
- Protected Member Functions inherited from tbb::flow::interface11::sender< Output >
virtual bool try_get_wrapper (void *p, bool is_async) __TBB_override
 
virtual bool try_reserve_wrapper (void *p, bool is_async) __TBB_override
 
- Protected Member Functions inherited from tbb::flow::interface11::internal::untyped_sender
template<typename X >
bool try_get (X &t)
 Request an item from the sender. More...
 
template<typename X >
bool try_reserve (X &t)
 Reserves an item in the sender. More...
 

Friends

template<int N>
struct emit_element
 

Additional Inherited Members

- Public Attributes inherited from tbb::flow::interface11::sender< Output >
__TBB_DEPRECATED typedef Output output_type
 The output type of this sender. More...
 
__TBB_DEPRECATED typedef
internal::async_helpers
< Output >::filtered_type 
filtered_type
 
- Protected Attributes inherited from internal::function_output< Output >
broadcast_cache_type my_successors
 
graph & my_graph_ref
 

Detailed Description

template<typename Output>
class internal::multifunction_output< Output >

Definition at line 925 of file _flow_graph_node_impl.h.

Member Typedef Documentation

template<typename Output >
typedef function_output<output_type> internal::multifunction_output< Output >::base_type

Definition at line 928 of file _flow_graph_node_impl.h.

template<typename Output >
typedef Output internal::multifunction_output< Output >::output_type

Definition at line 927 of file _flow_graph_node_impl.h.

Constructor & Destructor Documentation

template<typename Output >
internal::multifunction_output< Output >::multifunction_output ( graph &  g)
inline

Definition at line 931 of file _flow_graph_node_impl.h.

References internal::function_output< Output >::my_successors, and internal::successor_cache< T, M >::set_owner().

931 : base_type(g) {my_successors.set_owner(this);}
void set_owner(owner_type *owner)
function_output< output_type > base_type
broadcast_cache_type my_successors

Here is the call graph for this function:

template<typename Output >
internal::multifunction_output< Output >::multifunction_output ( const multifunction_output< Output > &  other)
inline

Definition at line 932 of file _flow_graph_node_impl.h.

References internal::function_output< Output >::my_successors, and internal::successor_cache< T, M >::set_owner().

932 : base_type(other.my_graph_ref) { my_successors.set_owner(this); }
void set_owner(owner_type *owner)
function_output< output_type > base_type
broadcast_cache_type my_successors

Here is the call graph for this function:

Member Function Documentation

template<typename Output >
bool internal::multifunction_output< Output >::try_put ( const output_type i)
inline

Definition at line 934 of file _flow_graph_node_impl.h.

References FLOW_SPAWN, tbb::flow::internal::SUCCESSFULLY_ENQUEUED, task, and internal::multifunction_output< Output >::try_put_task().

934  {
935  task *res = try_put_task(i);
936  if(!res) return false;
937  if(res != SUCCESSFULLY_ENQUEUED) {
938  FLOW_SPAWN(*res); // TODO: Spawn task inside arena
939  }
940  return true;
941  }
#define FLOW_SPAWN(a)
Definition: flow_graph.h:64
static tbb::task *const SUCCESSFULLY_ENQUEUED
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 * task
task * try_put_task(const output_type &i)

Here is the call graph for this function:

template<typename Output >
task* internal::multifunction_output< Output >::try_put_task ( const output_type i)
inlineprotected

Definition at line 947 of file _flow_graph_node_impl.h.

References internal::function_output< Output >::my_successors, and internal::broadcast_cache< T, M >::try_put_task().

Referenced by internal::multifunction_output< Output >::try_put().

947  {
948  return my_successors.try_put_task(i);
949  }
task * try_put_task(const T &t) __TBB_override
broadcast_cache_type my_successors

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

template<typename Output >
template<int N>
friend struct emit_element
friend

Definition at line 951 of file _flow_graph_node_impl.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.