Public Member Functions | Private Attributes | List of all members
TbbDepoSource Class Reference
Inheritance diagram for TbbDepoSource:
ITbbNode WireCell::INode WireCell::IComponent< INode > WireCell::Interface

Public Member Functions

 TbbDepoSource (IDepoSource::pointer src)
 
 TbbDepoSource (const TbbDepoSource &other)
 
virtual ~TbbDepoSource ()
 
void operator= (const TbbDepoSource &other)
 
bool operator() (IDepo::pointer &out)
 
tbb::flow::graph_node * tbb_node (tbb::flow::graph &graph)
 
virtual void connect (tbb::flow::graph_node &head, tbb::flow::graph_node &tail)
 
- Public Member Functions inherited from ITbbNode
virtual ~ITbbNode ()
 
- Public Member Functions inherited from WireCell::INode
virtual ~INode ()
 
virtual NodeCategory category ()=0
 Return the behavior category type. More...
 
virtual std::string signature ()=0
 
virtual int concurrency ()
 
virtual std::vector< std::stringinput_types ()
 
virtual std::vector< std::stringoutput_types ()
 
virtual void reset ()
 
- Public Member Functions inherited from WireCell::IComponent< INode >
virtual ~IComponent ()
 
- Public Member Functions inherited from WireCell::Interface
virtual ~Interface ()
 

Private Attributes

IDepoSource::pointer m_src
 

Additional Inherited Members

- Public Types inherited from WireCell::INode
enum  NodeCategory {
  unknown, sourceNode, sinkNode, functionNode,
  queuedoutNode, joinNode, splitNode, faninNode,
  fanoutNode, multioutNode, hydraNode
}
 
- Public Types inherited from WireCell::IComponent< INode >
typedef std::shared_ptr< INodepointer
 Access subclass facet by pointer. More...
 
typedef std::vector< pointervector
 Vector of shared pointers. More...
 
- Public Types inherited from WireCell::Interface
typedef std::shared_ptr< Interfacepointer
 

Detailed Description

Definition at line 60 of file _test_onion.cxx.

Constructor & Destructor Documentation

TbbDepoSource::TbbDepoSource ( IDepoSource::pointer  src)
inline

Definition at line 63 of file _test_onion.cxx.

63 : m_src(src) { }
IDepoSource::pointer m_src
Definition: _test_onion.cxx:61
TbbDepoSource::TbbDepoSource ( const TbbDepoSource other)
inline

Definition at line 64 of file _test_onion.cxx.

64 : m_src(other.m_src) {}
IDepoSource::pointer m_src
Definition: _test_onion.cxx:61
virtual TbbDepoSource::~TbbDepoSource ( )
inlinevirtual

Definition at line 65 of file _test_onion.cxx.

65 {}

Member Function Documentation

virtual void TbbDepoSource::connect ( tbb::flow::graph_node &  head,
tbb::flow::graph_node &  tail 
)
inlinevirtual

Definition at line 73 of file _test_onion.cxx.

73  {
74  tbb::flow::sender<IDepo::pointer>* myhead = dynamic_cast<tbb::flow::sender<IDepo::pointer>*>(&head);
75  Assert(myhead);
76  tbb::flow::receiver<IDepo::pointer>* mytail = dynamic_cast<tbb::flow::receiver<IDepo::pointer>*>(&tail);
77  Assert(mytail);
78  make_edge(*myhead, *mytail);
79  }
#define Assert
Definition: Testing.h:7
bool TbbDepoSource::operator() ( IDepo::pointer out)
inline

Definition at line 68 of file _test_onion.cxx.

68 { return (*m_src)(out); }
IDepoSource::pointer m_src
Definition: _test_onion.cxx:61
void TbbDepoSource::operator= ( const TbbDepoSource other)
inline

Definition at line 66 of file _test_onion.cxx.

66 { m_src = other.m_src; }
IDepoSource::pointer m_src
Definition: _test_onion.cxx:61
tbb::flow::graph_node* TbbDepoSource::tbb_node ( tbb::flow::graph &  graph)
inlinevirtual

Implements ITbbNode.

Definition at line 70 of file _test_onion.cxx.

70  {
71  return new tbb::flow::source_node<IDepo::pointer>(graph, *this, false);
72  }
def graph(desc, maker=maker)
Definition: apa.py:294

Member Data Documentation

IDepoSource::pointer TbbDepoSource::m_src
private

Definition at line 61 of file _test_onion.cxx.


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