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

#include <FunctionCat.h>

Inheritance diagram for WireCellTbb::FunctionWrapper:
WireCellTbb::NodeWrapper

Public Member Functions

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

Private Attributes

tbb::flow::graph_node * m_tbbnode
 

Detailed Description

Definition at line 33 of file FunctionCat.h.

Constructor & Destructor Documentation

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

Definition at line 38 of file FunctionCat.h.

39  : m_tbbnode(new function_node(graph, wcnode->concurrency(), FunctionBody(wcnode)))
40  {
41  }
#define FunctionBody
Definition: pyscanner.cpp:1856
def graph(desc, maker=maker)
Definition: apa.py:294
tbb::flow::graph_node * m_tbbnode
Definition: FunctionCat.h:34
tbb::flow::function_node< boost::any, boost::any > function_node
Definition: NodeWrapper.h:30

Member Function Documentation

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

Reimplemented from WireCellTbb::NodeWrapper.

Definition at line 43 of file FunctionCat.h.

43  {
44  return { dynamic_cast< receiver_type* >(m_tbbnode) };
45  }
tbb::flow::graph_node * m_tbbnode
Definition: FunctionCat.h:34
tbb::flow::receiver< boost::any > receiver_type
virtual sender_port_vector WireCellTbb::FunctionWrapper::sender_ports ( )
inlinevirtual

Reimplemented from WireCellTbb::NodeWrapper.

Definition at line 47 of file FunctionCat.h.

47  {
48  return { dynamic_cast< sender_type* >(m_tbbnode) };
49  }
tbb::flow::graph_node * m_tbbnode
Definition: FunctionCat.h:34
tbb::flow::sender< boost::any > sender_type

Member Data Documentation

tbb::flow::graph_node* WireCellTbb::FunctionWrapper::m_tbbnode
private

Definition at line 34 of file FunctionCat.h.


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