Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::flow::interface11::internal::untyped_sender Class Referenceabstract

#include <flow_graph.h>

Inheritance diagram for tbb::flow::interface11::internal::untyped_sender:
Collaboration diagram for tbb::flow::interface11::internal::untyped_sender:

Public Types

typedef untyped_receiver successor_type
 The successor type for this node. More...
 

Public Member Functions

virtual ~untyped_sender ()
 
virtual bool register_successor (successor_type &r)=0
 Add a new successor to this node. More...
 
virtual bool remove_successor (successor_type &r)=0
 Removes a successor from this node. More...
 
virtual bool try_release ()
 Releases the reserved item. More...
 
virtual bool try_consume ()
 Consumes the reserved item. More...
 

Protected Member Functions

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...
 
virtual bool try_get_wrapper (void *p, bool is_async)=0
 
virtual bool try_reserve_wrapper (void *p, bool is_async)=0
 

Friends

template<typename , typename >
class internal::predecessor_cache
 
template<typename , typename >
class internal::reservable_predecessor_cache
 

Detailed Description

Definition at line 298 of file flow_graph.h.

Member Typedef Documentation

◆ successor_type

The successor type for this node.

Definition at line 303 of file flow_graph.h.

Constructor & Destructor Documentation

◆ ~untyped_sender()

virtual tbb::flow::interface11::internal::untyped_sender::~untyped_sender ( )
inlinevirtual

Definition at line 305 of file flow_graph.h.

305 {}

Member Function Documentation

◆ register_successor()

◆ remove_successor()

◆ try_consume()

virtual bool tbb::flow::interface11::internal::untyped_sender::try_consume ( )
inlinevirtual

Consumes the reserved item.

Reimplemented in tbb::flow::interface11::overwrite_node< T >, tbb::flow::interface11::buffer_node< T, A >, and tbb::flow::interface11::source_node< Output >.

Definition at line 321 of file flow_graph.h.

321 { return false; }

◆ try_get()

template<typename X >
bool tbb::flow::interface11::internal::untyped_sender::try_get ( X &  t)
inlineprotected

Request an item from the sender.

Definition at line 336 of file flow_graph.h.

References try_get_wrapper().

Here is the call graph for this function:

◆ try_get_wrapper()

virtual bool tbb::flow::interface11::internal::untyped_sender::try_get_wrapper ( void p,
bool  is_async 
)
protectedpure virtual

Implemented in tbb::flow::interface11::sender< T >, and tbb::flow::interface11::sender< Output >.

Referenced by try_get().

Here is the caller graph for this function:

◆ try_release()

virtual bool tbb::flow::interface11::internal::untyped_sender::try_release ( )
inlinevirtual

Releases the reserved item.

Reimplemented in tbb::flow::interface11::overwrite_node< T >, tbb::flow::interface11::buffer_node< T, A >, and tbb::flow::interface11::source_node< Output >.

Definition at line 318 of file flow_graph.h.

318 { return false; }

◆ try_reserve()

template<typename X >
bool tbb::flow::interface11::internal::untyped_sender::try_reserve ( X &  t)
inlineprotected

Reserves an item in the sender.

Definition at line 342 of file flow_graph.h.

References try_reserve_wrapper().

Here is the call graph for this function:

◆ try_reserve_wrapper()

virtual bool tbb::flow::interface11::internal::untyped_sender::try_reserve_wrapper ( void p,
bool  is_async 
)
protectedpure virtual

Implemented in tbb::flow::interface11::sender< T >, and tbb::flow::interface11::sender< Output >.

Referenced by try_reserve().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ internal::predecessor_cache

template<typename , typename >
friend class internal::predecessor_cache
friend

Definition at line 299 of file flow_graph.h.

◆ internal::reservable_predecessor_cache

template<typename , typename >
friend class internal::reservable_predecessor_cache
friend

Definition at line 300 of file flow_graph.h.


The documentation for this class was generated from the following file:
tbb::flow::interface11::internal::untyped_sender::try_get_wrapper
virtual bool try_get_wrapper(void *p, bool is_async)=0
tbb::flow::interface11::internal::async_helpers::is_async_type
static const bool is_async_type
Definition: flow_graph.h:219
tbb::flow::interface11::internal::untyped_sender::try_reserve_wrapper
virtual bool try_reserve_wrapper(void *p, bool is_async)=0
tbb::flow::interface11::internal::async_helpers::to_void_ptr
static const void * to_void_ptr(const T &t)
Definition: flow_graph.h:221

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.