Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
internal::decrementer< T, DecrementType, typename tbb::internal::enable_if< tbb::internal::is_integral< DecrementType >::value, void >::type > Class Template Reference

#include <_flow_graph_body_impl.h>

Inheritance diagram for internal::decrementer< T, DecrementType, typename tbb::internal::enable_if< tbb::internal::is_integral< DecrementType >::value, void >::type >:
Collaboration diagram for internal::decrementer< T, DecrementType, typename tbb::internal::enable_if< tbb::internal::is_integral< DecrementType >::value, void >::type >:

Public Member Functions

 decrementer ()
 
void set_owner (T *node)
 
- Public Member Functions inherited from tbb::flow::interface10::receiver< DecrementType >
bool try_put (const typename internal::async_helpers< DecrementType >::filtered_type &t)
 Put an item to the receiver. More...
 
bool try_put (const typename internal::async_helpers< DecrementType >::async_type &t)
 
- Public Member Functions inherited from tbb::flow::interface10::internal::untyped_receiver
virtual ~untyped_receiver ()
 Destructor. More...
 
template<typename X >
bool try_put (const X &t)
 Put an item to the receiver. More...
 
virtual bool register_predecessor (predecessor_type &)
 Add a predecessor to the node. More...
 
virtual bool remove_predecessor (predecessor_type &)
 Remove a predecessor from the node. More...
 

Protected Member Functions

tasktry_put_task (const DecrementType &value) __TBB_override
 Put item to successor; return task to run the successor if possible. More...
 
graph & graph_reference () __TBB_override
 
void reset_receiver (reset_flags f) __TBB_override
 
- Protected Member Functions inherited from tbb::flow::interface10::receiver< DecrementType >
virtual tasktry_put_task_wrapper (const void *p, bool is_async) __TBB_override
 
- Protected Member Functions inherited from tbb::flow::interface10::internal::untyped_receiver
template<typename X >
tasktry_put_task (const X &t)
 
virtual void reset_receiver (reset_flags f=rf_reset_protocol)=0
 put receiver back in initial state More...
 
virtual bool is_continue_receiver ()
 

Private Attributes

T * my_node
 

Friends

template<typename U , typename V >
class tbb::flow::interface11::limiter_node
 

Additional Inherited Members

- Public Types inherited from tbb::flow::interface10::receiver< DecrementType >
typedef DecrementType input_type
 The input type of this receiver. More...
 
typedef internal::async_helpers< DecrementType >::filtered_type filtered_type
 
- Public Types inherited from tbb::flow::interface10::internal::untyped_receiver
typedef untyped_sender predecessor_type
 The predecessor type for this node. More...
 
- Private Member Functions inherited from tbb::internal::no_copy
 no_copy ()
 Allow default construction. More...
 

Detailed Description

template<typename T, typename DecrementType>
class internal::decrementer< T, DecrementType, typename tbb::internal::enable_if< tbb::internal::is_integral< DecrementType >::value, void >::type >

Definition at line 347 of file _flow_graph_body_impl.h.

Constructor & Destructor Documentation

◆ decrementer()

Member Function Documentation

◆ graph_reference()

template<typename T , typename DecrementType >
graph& internal::decrementer< T, DecrementType, typename tbb::internal::enable_if< tbb::internal::is_integral< DecrementType >::value, void >::type >::graph_reference ( )
inlineprotectedvirtual

◆ reset_receiver()

template<typename T , typename DecrementType >
void internal::decrementer< T, DecrementType, typename tbb::internal::enable_if< tbb::internal::is_integral< DecrementType >::value, void >::type >::reset_receiver ( reset_flags  f)
inlineprotected

Definition at line 366 of file _flow_graph_body_impl.h.

366  {
367 #if TBB_DEPRECATED_FLOW_NODE_EXTRACTION
368  if (f & rf_clear_edges)
369  my_built_predecessors.clear();
370 #else
372 #endif
373  }
void suppress_unused_warning(const T1 &)
Utility template function to prevent "unused" warnings by various compilers.
Definition: tbb_stddef.h:377

References tbb::flow::interface10::rf_clear_edges, and tbb::internal::suppress_unused_warning().

Here is the call graph for this function:

◆ set_owner()

template<typename T , typename DecrementType >
void internal::decrementer< T, DecrementType, typename tbb::internal::enable_if< tbb::internal::is_integral< DecrementType >::value, void >::type >::set_owner ( T *  node)
inline

◆ try_put_task()

template<typename T , typename DecrementType >
task* internal::decrementer< T, DecrementType, typename tbb::internal::enable_if< tbb::internal::is_integral< DecrementType >::value, void >::type >::try_put_task ( const DecrementType &  t)
inlineprotectedvirtual

Put item to successor; return task to run the successor if possible.

Implements tbb::flow::interface10::receiver< DecrementType >.

Definition at line 354 of file _flow_graph_body_impl.h.

354  {
355  task* result = my_node->decrement_counter( value );
356  if( !result )
357  result = SUCCESSFULLY_ENQUEUED;
358  return result;
359  }
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 __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
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

References tbb::flow::internal::SUCCESSFULLY_ENQUEUED, task, and value.

Friends And Related Function Documentation

◆ tbb::flow::interface11::limiter_node

template<typename T , typename DecrementType >
template<typename U , typename V >
friend class tbb::flow::interface11::limiter_node
friend

Definition at line 365 of file _flow_graph_body_impl.h.

Member Data Documentation

◆ my_node

template<typename T , typename DecrementType >
T* internal::decrementer< T, DecrementType, typename tbb::internal::enable_if< tbb::internal::is_integral< DecrementType >::value, void >::type >::my_node
private

Definition at line 351 of file _flow_graph_body_impl.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.