Public Member Functions | Private Attributes | List of all members
TbbSinkNodeWrapper Class Reference
Inheritance diagram for TbbSinkNodeWrapper:
TbbNodeWrapper

Public Member Functions

 TbbSinkNodeWrapper (tbb::flow::graph &graph, mock_node_pointer wcnode)
 
virtual receiver_port_vector receiver_ports ()
 
- Public Member Functions inherited from TbbNodeWrapper
virtual ~TbbNodeWrapper ()
 
virtual sender_port_vector sender_ports ()
 
virtual void initialize ()
 

Private Attributes

std::shared_ptr< sink_nodem_tbbnode
 

Detailed Description

Definition at line 218 of file test_tbb_dfp_any.cxx.

Constructor & Destructor Documentation

TbbSinkNodeWrapper::TbbSinkNodeWrapper ( tbb::flow::graph &  graph,
mock_node_pointer  wcnode 
)
inline

Definition at line 220 of file test_tbb_dfp_any.cxx.

221  : m_tbbnode(new sink_node(graph, wcnode->concurrency(), TbbSinkBody(wcnode)))
222  { }
std::shared_ptr< sink_node > m_tbbnode
def graph(desc, maker=maker)
Definition: apa.py:294
tbb::flow::function_node< boost::any > sink_node

Member Function Documentation

virtual receiver_port_vector TbbSinkNodeWrapper::receiver_ports ( )
inlinevirtual

Reimplemented from TbbNodeWrapper.

Definition at line 224 of file test_tbb_dfp_any.cxx.

224  {
225  auto ptr = dynamic_pointer_cast< receiver_type >(m_tbbnode);
226  Assert(ptr);
227  return receiver_port_vector{ptr};
228  }
std::vector< receiver_port_pointer > receiver_port_vector
std::shared_ptr< sink_node > m_tbbnode
#define Assert
Definition: Testing.h:7
const void * ptr(const T *p)
Definition: format.h:3138
tbb::flow::receiver< boost::any > receiver_type

Member Data Documentation

std::shared_ptr<sink_node> TbbSinkNodeWrapper::m_tbbnode
private

Definition at line 230 of file test_tbb_dfp_any.cxx.


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