Public Member Functions | Private Attributes | List of all members
WireCellTbb::SinkNodeWrapper Class Reference

#include <SinkCat.h>

Inheritance diagram for WireCellTbb::SinkNodeWrapper:
WireCellTbb::NodeWrapper

Public Member Functions

 SinkNodeWrapper (tbb::flow::graph &graph, WireCell::INode::pointer wcnode)
 
 ~SinkNodeWrapper ()
 
virtual receiver_port_vector receiver_ports ()
 
- Public Member Functions inherited from WireCellTbb::NodeWrapper
virtual ~NodeWrapper ()
 
virtual sender_port_vector sender_ports ()
 
virtual void initialize ()
 

Private Attributes

sink_nodem_tbbnode
 

Detailed Description

Definition at line 26 of file SinkCat.h.

Constructor & Destructor Documentation

WireCellTbb::SinkNodeWrapper::SinkNodeWrapper ( tbb::flow::graph &  graph,
WireCell::INode::pointer  wcnode 
)
inline

Definition at line 29 of file SinkCat.h.

29  :
30  m_tbbnode(new sink_node(graph, wcnode->concurrency(), SinkBody(wcnode))) { }
def graph(desc, maker=maker)
Definition: apa.py:294
tbb::flow::function_node< boost::any > sink_node
Definition: NodeWrapper.h:29
WireCellTbb::SinkNodeWrapper::~SinkNodeWrapper ( )
inline

Definition at line 31 of file SinkCat.h.

31  {
32  delete m_tbbnode;
33  }

Member Function Documentation

virtual receiver_port_vector WireCellTbb::SinkNodeWrapper::receiver_ports ( )
inlinevirtual

Reimplemented from WireCellTbb::NodeWrapper.

Definition at line 34 of file SinkCat.h.

34  {
35  auto ptr = dynamic_cast< receiver_type* >(m_tbbnode);
36  return receiver_port_vector{ptr};
37  }
std::vector< receiver_port_pointer > receiver_port_vector
const void * ptr(const T *p)
Definition: format.h:3138
tbb::flow::receiver< boost::any > receiver_type

Member Data Documentation

sink_node* WireCellTbb::SinkNodeWrapper::m_tbbnode
private

Definition at line 27 of file SinkCat.h.


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