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

#include <SourceCat.h>

Inheritance diagram for WireCellTbb::SourceNodeWrapper:
WireCellTbb::NodeWrapper

Public Member Functions

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

Private Attributes

source_nodem_tbbnode
 

Detailed Description

Definition at line 27 of file SourceCat.h.

Constructor & Destructor Documentation

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

Definition at line 30 of file SourceCat.h.

31  : m_tbbnode(new source_node(graph, SourceBody(wcnode), false))
32  { }
def graph(desc, maker=maker)
Definition: apa.py:294
tbb::flow::source_node< boost::any > source_node
Types for TBB nodes.
Definition: NodeWrapper.h:28
WireCellTbb::SourceNodeWrapper::~SourceNodeWrapper ( )
inline

Definition at line 33 of file SourceCat.h.

33  {
34  delete m_tbbnode;
35  }

Member Function Documentation

virtual void WireCellTbb::SourceNodeWrapper::initialize ( )
inlinevirtual

Reimplemented from WireCellTbb::NodeWrapper.

Definition at line 36 of file SourceCat.h.

36  {
37  m_tbbnode->activate();
38  }
virtual sender_port_vector WireCellTbb::SourceNodeWrapper::sender_ports ( )
inlinevirtual

Reimplemented from WireCellTbb::NodeWrapper.

Definition at line 39 of file SourceCat.h.

39  {
40  auto ptr = dynamic_cast< sender_type* >(m_tbbnode);
41  return sender_port_vector{ptr};
42  }
std::vector< sender_port_pointer > sender_port_vector
const void * ptr(const T *p)
Definition: format.h:3138
tbb::flow::sender< boost::any > sender_type

Member Data Documentation

source_node* WireCellTbb::SourceNodeWrapper::m_tbbnode
private

Definition at line 28 of file SourceCat.h.


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