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

#include <FunctionCat.h>

Public Member Functions

 FunctionBody (WireCell::INode::pointer wcnode)
 
virtual ~FunctionBody ()
 
boost::any operator() (const boost::any &in) const
 

Private Attributes

WireCell::IFunctionNodeBase::pointer m_wcnode
 

Detailed Description

Definition at line 13 of file FunctionCat.h.

Constructor & Destructor Documentation

WireCellTbb::FunctionBody::FunctionBody ( WireCell::INode::pointer  wcnode)
inline

Definition at line 16 of file FunctionCat.h.

16  {
17  m_wcnode = std::dynamic_pointer_cast<WireCell::IFunctionNodeBase>(wcnode);
18  }
WireCell::IFunctionNodeBase::pointer m_wcnode
Definition: FunctionCat.h:14
virtual WireCellTbb::FunctionBody::~FunctionBody ( )
inlinevirtual

Definition at line 19 of file FunctionCat.h.

19 {}

Member Function Documentation

boost::any WireCellTbb::FunctionBody::operator() ( const boost::any &  in) const
inline

Definition at line 21 of file FunctionCat.h.

21  {
22  boost::any ret;
23  bool ok = (*m_wcnode)(in, ret); // fixme: don't ignore the error code!
24  if (!ok) {
25  std::cerr << "I'm ignoring the error code!\n";
26  }
27  return ret;
28  }

Member Data Documentation

WireCell::IFunctionNodeBase::pointer WireCellTbb::FunctionBody::m_wcnode
private

Definition at line 14 of file FunctionCat.h.


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