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

#include <GenPipeline.h>

Inheritance diagram for WireCell::ShuntProc:
WireCell::FilterProc WireCell::SourceProc WireCell::SinkProc WireCell::Proc WireCell::Proc

Public Member Functions

 ShuntProc (Pipe &iq, Pipe &oq)
 
virtual ~ShuntProc ()
 
virtual bool operator() ()
 
virtual Pipeinput_pipe ()
 
virtual Pipeoutput_pipe ()
 
- Public Member Functions inherited from WireCell::FilterProc
virtual ~FilterProc ()
 
- Public Member Functions inherited from WireCell::SourceProc
virtual ~SourceProc ()
 
- Public Member Functions inherited from WireCell::Proc
virtual ~Proc ()
 
- Public Member Functions inherited from WireCell::SinkProc
virtual ~SinkProc ()
 

Private Attributes

Pipeiq
 
Pipeoq
 

Detailed Description

Definition at line 58 of file GenPipeline.h.

Constructor & Destructor Documentation

WireCell::ShuntProc::ShuntProc ( Pipe iq,
Pipe oq 
)
inline

Definition at line 61 of file GenPipeline.h.

61 :iq(iq), oq(oq) {}
virtual WireCell::ShuntProc::~ShuntProc ( )
inlinevirtual

Definition at line 62 of file GenPipeline.h.

62 {}

Member Function Documentation

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

Implements WireCell::SinkProc.

Definition at line 70 of file GenPipeline.h.

70 { return iq; }
virtual bool WireCell::ShuntProc::operator() ( void  )
inlinevirtual

Implements WireCell::Proc.

Definition at line 64 of file GenPipeline.h.

64  {
65  if (iq.empty()) { return false; }
66  oq.push(iq.front());
67  iq.pop();
68  return true;
69  }
virtual Pipe& WireCell::ShuntProc::output_pipe ( )
inlinevirtual

Implements WireCell::SourceProc.

Definition at line 71 of file GenPipeline.h.

71 { return oq; }

Member Data Documentation

Pipe& WireCell::ShuntProc::iq
private

Definition at line 74 of file GenPipeline.h.

Pipe& WireCell::ShuntProc::oq
private

Definition at line 75 of file GenPipeline.h.


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