WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
WireCell::INamedFactory Class Referenceabstract

#include <IFactory.h>

Inheritance diagram for WireCell::INamedFactory:
Collaboration diagram for WireCell::INamedFactory:

Public Types

typedef std::shared_ptr< INamedFactorypointer
 
- Public Types inherited from WireCell::IComponent< IFactory >
typedef std::shared_ptr< IFactorypointer
 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 Member Functions

virtual ~INamedFactory ()
 
virtual void set_classname (const std::string &name)=0
 Set name of class this factory can make. More...
 
virtual const std::string & classname ()=0
 Access name of class this factory can make. More...
 
virtual Interface::pointer create (const std::string &name)=0
 Create an instance by name. More...
 
virtual Interface::pointer find (const std::string &name)=0
 Return existing instance or nullptr if not found. More...
 
- Public Member Functions inherited from WireCell::IFactory
virtual ~IFactory ()
 
virtual Interface::pointer create ()=0
 Create an instance of what we know how to create. More...
 
- Public Member Functions inherited from WireCell::IComponent< IFactory >
virtual ~IComponent ()
 
- Public Member Functions inherited from WireCell::Interface
virtual ~Interface ()
 

Detailed Description

Definition at line 19 of file IFactory.h.

Member Typedef Documentation

◆ pointer

Definition at line 22 of file IFactory.h.

Constructor & Destructor Documentation

◆ ~INamedFactory()

WireCell::INamedFactory::~INamedFactory ( )
virtual

Definition at line 8 of file WireCellUtil.cxx.

Member Function Documentation

◆ classname()

virtual const std::string& WireCell::INamedFactory::classname ( )
pure virtual

Access name of class this factory can make.

Implemented in WireCell::NamedFactory< Type >.

◆ create()

virtual Interface::pointer WireCell::INamedFactory::create ( const std::string &  name)
pure virtual

Create an instance by name.

Implemented in WireCell::NamedFactory< Type >.

Here is the caller graph for this function:

◆ find()

virtual Interface::pointer WireCell::INamedFactory::find ( const std::string &  name)
pure virtual

Return existing instance or nullptr if not found.

Implements WireCell::IFactory.

Implemented in WireCell::NamedFactory< Type >.

Here is the caller graph for this function:

◆ set_classname()

virtual void WireCell::INamedFactory::set_classname ( const std::string &  name)
pure virtual

Set name of class this factory can make.

Implemented in WireCell::NamedFactory< Type >.


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