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

#include <WireSource.h>

Inheritance diagram for WireCell::WireSource:
WireCell::IWireSource WireCell::IConfigurable WireCell::ISourceNode< IWire::vector > WireCell::IComponent< IConfigurable > WireCell::ISourceNodeBase WireCell::Interface WireCell::INode WireCell::IComponent< INode > WireCell::Interface

Public Member Functions

 WireSource ()
 
virtual ~WireSource ()
 
virtual bool operator() (output_pointer &wires)
 The calling signature: More...
 
virtual void configure (const WireCell::Configuration &config)
 
virtual WireCell::Configuration default_configuration () const
 Optional, override to return a hard-coded default configuration. More...
 
- Public Member Functions inherited from WireCell::IWireSource
virtual ~IWireSource ()
 
virtual std::string signature ()
 Set the signature for all subclasses. More...
 
- Public Member Functions inherited from WireCell::ISourceNode< IWire::vector >
virtual ~ISourceNode ()
 
virtual NodeCategory category ()
 Return the behavior category type. More...
 
virtual bool operator() (boost::any &anyout)
 
virtual std::vector< std::stringoutput_types ()
 
- Public Member Functions inherited from WireCell::ISourceNodeBase
virtual ~ISourceNodeBase ()
 
- Public Member Functions inherited from WireCell::INode
virtual ~INode ()
 
virtual int concurrency ()
 
virtual std::vector< std::stringinput_types ()
 
virtual void reset ()
 
- Public Member Functions inherited from WireCell::IComponent< INode >
virtual ~IComponent ()
 
- Public Member Functions inherited from WireCell::Interface
virtual ~Interface ()
 
- Public Member Functions inherited from WireCell::IConfigurable
virtual ~IConfigurable ()
 
- Public Member Functions inherited from WireCell::IComponent< IConfigurable >
virtual ~IComponent ()
 

Private Attributes

std::shared_ptr< WireParamsm_params
 
WireGenerator m_wiregen
 

Additional Inherited Members

- Public Types inherited from WireCell::ISourceNode< IWire::vector >
typedef IWire::vector output_type
 
typedef ISourceNode< IWire::vectorsignature_type
 
typedef std::shared_ptr< signature_typepointer
 
typedef std::shared_ptr< const IWire::vectoroutput_pointer
 
- Public Types inherited from WireCell::ISourceNodeBase
typedef std::shared_ptr< ISourceNodeBasepointer
 
- 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
 
- Public Types inherited from WireCell::IComponent< IConfigurable >
typedef std::shared_ptr< IConfigurablepointer
 Access subclass facet by pointer. More...
 
typedef std::vector< pointervector
 Vector of shared pointers. More...
 

Detailed Description

A WireCell::IWireSource facade in front of WireCell::WireParams and WireCell::WireGenerator.

Definition at line 15 of file WireSource.h.

Constructor & Destructor Documentation

WireSource::WireSource ( )

Definition at line 9 of file WireSource.cxx.

10  : m_params(new WireParams)
11  , m_wiregen()
12 {
13 }
std::shared_ptr< WireParams > m_params
Definition: WireSource.h:28
WireGenerator m_wiregen
Definition: WireSource.h:29
WireSource::~WireSource ( )
virtual

Definition at line 15 of file WireSource.cxx.

16 {
17 
18 }

Member Function Documentation

void WireSource::configure ( const WireCell::Configuration config)
virtual

Configurable interface.

Implements WireCell::IConfigurable.

Definition at line 24 of file WireSource.cxx.

25 {
26  m_params->configure(cfg);
27 }
std::shared_ptr< WireParams > m_params
Definition: WireSource.h:28
cfg
Definition: dbjson.py:29
Configuration WireSource::default_configuration ( ) const
virtual

Optional, override to return a hard-coded default configuration.

Reimplemented from WireCell::IConfigurable.

Definition at line 20 of file WireSource.cxx.

21 {
22  return m_params->default_configuration();
23 }
std::shared_ptr< WireParams > m_params
Definition: WireSource.h:28
bool WireSource::operator() ( output_pointer out)
virtual

The calling signature:

Implements WireCell::ISourceNode< IWire::vector >.

Definition at line 29 of file WireSource.cxx.

30 {
31  return m_wiregen(m_params, wires);
32 }
std::shared_ptr< WireParams > m_params
Definition: WireSource.h:28
WireGenerator m_wiregen
Definition: WireSource.h:29

Member Data Documentation

std::shared_ptr<WireParams> WireCell::WireSource::m_params
private

Definition at line 28 of file WireSource.h.

WireGenerator WireCell::WireSource::m_wiregen
private

Definition at line 29 of file WireSource.h.


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