Public Member Functions | Private Attributes | List of all members
WireCell::Pgraph::Queuedout Class Reference

#include <Wrappers.h>

Inheritance diagram for WireCell::Pgraph::Queuedout:
WireCell::Pgraph::PortedNode WireCell::Pgraph::Node

Public Member Functions

 Queuedout (INode::pointer wcnode)
 
virtual ~Queuedout ()
 
virtual bool operator() ()
 
- Public Member Functions inherited from WireCell::Pgraph::PortedNode
 PortedNode (INode::pointer wcnode)
 
virtual std::string ident ()
 
- Public Member Functions inherited from WireCell::Pgraph::Node
 Node ()
 
virtual ~Node ()
 
Portiport (size_t ind=0)
 
Portoport (size_t ind=0)
 
PortListinput_ports ()
 
PortListoutput_ports ()
 
Portport (Port::Type type, size_t ind=0)
 
Portport (Port::Type type, const std::string &name)
 
bool connected ()
 

Private Attributes

IQueuedoutNodeBase::pointer m_wcnode
 

Additional Inherited Members

- Protected Attributes inherited from WireCell::Pgraph::Node
PortList m_ports [Port::ntypes]
 

Detailed Description

Definition at line 151 of file Wrappers.h.

Constructor & Destructor Documentation

WireCell::Pgraph::Queuedout::Queuedout ( INode::pointer  wcnode)
inline

Definition at line 154 of file Wrappers.h.

154  : PortedNode(wcnode) {
155  m_wcnode = std::dynamic_pointer_cast<IQueuedoutNodeBase>(wcnode);
156  }
IQueuedoutNodeBase::pointer m_wcnode
Definition: Wrappers.h:152
PortedNode(INode::pointer wcnode)
Definition: Wrappers.h:40
virtual WireCell::Pgraph::Queuedout::~Queuedout ( )
inlinevirtual

Definition at line 157 of file Wrappers.h.

157 {}

Member Function Documentation

virtual bool WireCell::Pgraph::Queuedout::operator() ( void  )
inlinevirtual

Implements WireCell::Pgraph::Node.

Definition at line 158 of file Wrappers.h.

158  {
159  Port& ip = iport();
160  if (ip.empty()) { return false; }
162  auto in = ip.get();
163  bool ok = (*m_wcnode)(in, outv);
164  if (!ok) return false;
165  for (auto out : outv) {
166  oport().put(out);
167  }
168  return true;
169  }
std::deque< boost::any > queuedany
Port & iport(size_t ind=0)
Definition: Node.h:22
virtual bool get(port_type &out) const
Definition: test_typeid.cxx:42
void put(Data &data)
Definition: Port.cxx:62
Port & oport(size_t ind=0)
Definition: Node.h:25

Member Data Documentation

IQueuedoutNodeBase::pointer WireCell::Pgraph::Queuedout::m_wcnode
private

Definition at line 152 of file Wrappers.h.


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