FAST
3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
|
#include <ProcessObjectRegistry.hpp>
Public Types | |
using | ctor_t = std::function< std::shared_ptr< ProcessObject >()> |
using | map_t = std::unordered_map< std::string, ctor_t > |
Static Public Member Functions | |
static std::shared_ptr< ProcessObject > | create (const std::string &class_name) |
static bool | registerPO (const std::string &class_name, const ctor_t &ctor) |
static bool | isPORegistered (const std::string &class_name) |
static void | unregisterPO (const std::string &class_name) |
This class implements the C++ registry pattern which is used to keep a registry of process objects so that we can instantiate process objects using only a string of its name.
using fast::ProcessObjectRegistry::ctor_t = std::function<std::shared_ptr<ProcessObject>()> |
using fast::ProcessObjectRegistry::map_t = std::unordered_map<std::string, ctor_t> |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |