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

Public Member Functions

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

Private Attributes

std::shared_ptr< source_nodem_tbbnode
 

Detailed Description

Definition at line 160 of file test_tbb_dfp_any.cxx.

Constructor & Destructor Documentation

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

Definition at line 162 of file test_tbb_dfp_any.cxx.

163  : m_tbbnode(new source_node(graph, TbbSourceBody(wcnode), false))
164  { }
def graph(desc, maker=maker)
Definition: apa.py:294
std::shared_ptr< source_node > m_tbbnode
tbb::flow::source_node< boost::any > source_node

Member Function Documentation

virtual void TbbSourceNodeWrapper::initialize ( )
inlinevirtual

Reimplemented from TbbNodeWrapper.

Definition at line 166 of file test_tbb_dfp_any.cxx.

166  {
167  cerr << "Activating source node\n";
168  m_tbbnode->activate();
169  }
std::shared_ptr< source_node > m_tbbnode
virtual sender_port_vector TbbSourceNodeWrapper::sender_ports ( )
inlinevirtual

Reimplemented from TbbNodeWrapper.

Definition at line 171 of file test_tbb_dfp_any.cxx.

171  {
172  auto ptr = dynamic_pointer_cast< sender_type >(m_tbbnode);
173  Assert(ptr);
174  return sender_port_vector{ptr};
175  }
std::vector< sender_port_pointer > sender_port_vector
std::shared_ptr< source_node > m_tbbnode
#define Assert
Definition: Testing.h:7
const void * ptr(const T *p)
Definition: format.h:3138
tbb::flow::sender< boost::any > sender_type

Member Data Documentation

std::shared_ptr<source_node> TbbSourceNodeWrapper::m_tbbnode
private

Definition at line 177 of file test_tbb_dfp_any.cxx.


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