LArOpenCV
1
|
Factory class for instantiating algorithm instance by larcv::ImageClusterManager This factory class can instantiate a specified algorithm instance w/ provided instance name. More...
#include <ImageClusterFactory.h>
Public Member Functions | |
ImageClusterFactory () | |
Default ctor, shouldn't be used. More... | |
~ImageClusterFactory () | |
Default dtor. More... | |
void | add_factory (const std::string name, larcv::ImageClusterFactoryBase *factory) |
Factory registration method (should be called by global factory instance in algorithm header) More... | |
ImageClusterBase * | create (const std::string name, const std::string instance_name) |
Factory creation method (should be called by clients, possibly you!) More... | |
const larcv::logger & | logger () const |
Logger getter. More... | |
void | set_verbosity (::larcv::msg::Level_t level) |
Verbosity level. More... | |
Static Public Member Functions | |
static ImageClusterFactory & | get () |
Static sharable instance getter. More... | |
Private Attributes | |
std::map< std::string, larcv::ImageClusterFactoryBase * > | _factory_map |
Static factory container. More... | |
Static Private Attributes | |
static ImageClusterFactory * | _me = nullptr |
Static self. More... | |
Factory class for instantiating algorithm instance by larcv::ImageClusterManager This factory class can instantiate a specified algorithm instance w/ provided instance name.
The actual factory core (to which each algorithm must register creation factory instance) is
a static std::map. Use static method to get a static instance (larcv::ImageClusterFactory::get)
to access a factory.
Definition at line 47 of file ImageClusterFactory.h.
|
inline |
Default ctor, shouldn't be used.
Definition at line 51 of file ImageClusterFactory.h.
References LARCV_WARNING.
Referenced by get().
|
inline |
|
inline |
Factory registration method (should be called by global factory instance in algorithm header)
Definition at line 59 of file ImageClusterFactory.h.
References _factory_map.
Referenced by larcv::EmptyImageClusterFactory::EmptyImageClusterFactory(), larcv::SBClusterFactory::SBClusterFactory(), and larcv::ToyImageClusterFactory::ToyImageClusterFactory().
|
inline |
Factory creation method (should be called by clients, possibly you!)
Definition at line 62 of file ImageClusterFactory.h.
References _factory_map, and LARCV_ERROR.
|
inlinestatic |
Static sharable instance getter.
Definition at line 56 of file ImageClusterFactory.h.
References _me, and ImageClusterFactory().
Referenced by larcv::ImageClusterManager::Configure(), larcv::EmptyImageClusterFactory::EmptyImageClusterFactory(), larcv::SBClusterFactory::SBClusterFactory(), and larcv::ToyImageClusterFactory::ToyImageClusterFactory().
|
inlineinherited |
Logger getter.
Definition at line 43 of file laropencv_base.h.
References larcv::laropencv_base::_logger.
Referenced by larcv::ImageClusterManager::Configure().
|
inlineinherited |
Verbosity level.
Definition at line 47 of file laropencv_base.h.
References larcv::laropencv_base::_logger.
Referenced by larcv::ImageClusterBase::Configure(), and larcv::ImageClusterManager::Configure().
|
private |
Static factory container.
Definition at line 72 of file ImageClusterFactory.h.
Referenced by add_factory(), create(), and ~ImageClusterFactory().
|
staticprivate |