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

#include <flow_graph.h>

Inheritance diagram for tbb::flow::interface10::internal::decrementer< T, DecrementType, typename tbb::internal::enable_if< tbb::internal::is_integral< DecrementType >::value, void >::type >:
Collaboration diagram for tbb::flow::interface10::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...
 
graphgraph_reference () __TBB_override
 
void reset_receiver (reset_flags f) __TBB_override
 put receiver back in initial state More...
 
- 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 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 tbb::flow::interface10::internal::decrementer< T, DecrementType, typename tbb::internal::enable_if< tbb::internal::is_integral< DecrementType >::value, void >::type >

Definition at line 348 of file flow_graph.h.

Constructor & Destructor Documentation

◆ decrementer()

template<typename T , typename DecrementType >
tbb::flow::interface10::internal::decrementer< T, DecrementType, typename tbb::internal::enable_if< tbb::internal::is_integral< DecrementType >::value, void >::type >::decrementer ( )
inline

Definition at line 380 of file flow_graph.h.

390 { return false; }

Member Function Documentation

◆ graph_reference()

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

Implements tbb::flow::interface10::internal::untyped_receiver.

Definition at line 362 of file flow_graph.h.

364  { return false; }

◆ reset_receiver()

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

put receiver back in initial state

Implements tbb::flow::interface10::internal::untyped_receiver.

Definition at line 367 of file flow_graph.h.

375  :
376  template<typename X>

◆ set_owner()

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

Definition at line 381 of file flow_graph.h.

390 { return false; }

◆ try_put_task()

template<typename T , typename DecrementType >
task* tbb::flow::interface10::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 355 of file flow_graph.h.

361  { return false; }

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 366 of file flow_graph.h.

Member Data Documentation

◆ my_node

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

Definition at line 352 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.