Template Class FactoryRegistry

template<typename ObjectReturnTypeT>
class FactoryRegistry

Public Static Functions

static inline bool contains(const std::string &name)

static inline std::vector<std::string> list()

static inline std::shared_ptr<ObjectReturnTypeT> create_object_from_factory(const std::string &name, nlohmann::json config = {})

static inline void register_factory_fn(const std::string &name, const std::function<std::shared_ptr<ObjectReturnTypeT>(nlohmann::json)> &loader_fn, bool throw_if_exists = true)

static inline void unregister_factory_fn(const std::string &name, bool throw_if_missing = true)

Previous Class DevMemInfo
Next Class FiberQueue
© Copyright 2023, NVIDIA. Last updated on Feb 2, 2024.