Template Class factory

Class Documentation

template<class ChildType, typename ...Args>
class ioh::common::factory

Public Functions

factory() = default
factory(const factory&) = delete
factory &operator=(const factory&) = delete
std::vector<std::string> keys()
void register_class(std::string id, std::shared_ptr<ChildType> (*func)(Args&&...))
std::shared_ptr<ChildType> create(std::string id, Args... params) const

Public Static Functions

factory<ChildType, Args...> &get()