Public Types | Public Member Functions | Private Attributes | List of all members
WireCell::SinkNodeProc Class Reference

#include <GenPipeline.h>

Inheritance diagram for WireCell::SinkNodeProc:
WireCell::SinkProc WireCell::Proc

Public Types

typedef WireCell::ISinkNodeBase node_t
 
typedef std::shared_ptr< node_tnode_pointer_t
 

Public Member Functions

 SinkNodeProc (node_pointer_t node)
 
virtual ~SinkNodeProc ()
 
virtual Pipeinput_pipe ()
 
virtual bool operator() ()
 
- Public Member Functions inherited from WireCell::SinkProc
virtual ~SinkProc ()
 
- Public Member Functions inherited from WireCell::Proc
virtual ~Proc ()
 

Private Attributes

Pipe iq
 
node_pointer_t node
 

Detailed Description

Definition at line 156 of file GenPipeline.h.

Member Typedef Documentation

Definition at line 159 of file GenPipeline.h.

Definition at line 158 of file GenPipeline.h.

Constructor & Destructor Documentation

WireCell::SinkNodeProc::SinkNodeProc ( node_pointer_t  node)
inline

Definition at line 161 of file GenPipeline.h.

161 : node(node) {}
node_pointer_t node
Definition: GenPipeline.h:178
virtual WireCell::SinkNodeProc::~SinkNodeProc ( )
inlinevirtual

Definition at line 162 of file GenPipeline.h.

162 {}

Member Function Documentation

virtual Pipe& WireCell::SinkNodeProc::input_pipe ( )
inlinevirtual

Implements WireCell::SinkProc.

Definition at line 164 of file GenPipeline.h.

164  {
165  return iq;
166  }
virtual bool WireCell::SinkNodeProc::operator() ( void  )
inlinevirtual

Implements WireCell::Proc.

Definition at line 168 of file GenPipeline.h.

168  {
169  if (iq.empty()) { return false; }
170  bool ok = (*node)(iq.front());
171  if (!ok) return false;
172  iq.pop();
173  return true;
174  }

Member Data Documentation

Pipe WireCell::SinkNodeProc::iq
private

Definition at line 177 of file GenPipeline.h.

node_pointer_t WireCell::SinkNodeProc::node
private

Definition at line 178 of file GenPipeline.h.


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