Template Class RegistrationFactory

Class Documentation

template<typename Base, typename ...Args>
class regbox::RegistrationFactory

Public Members

friend Base

Public Static Functions

template<typename ...T>
static inline std::shared_ptr<Base> make(std::string &&s, T&&... args)
template<typename ...T>
static inline std::shared_ptr<Base> make(const std::string &s, T&&... args)
template<typename ...T>
static inline std::shared_ptr<Base> make(Aligner aligner, T&&... args)

Protected Types

using FuncType = std::shared_ptr<Base> (*)(Args...)

Protected Functions

RegistrationFactory() = default

Protected Static Functions

static inline auto &data()
class Key
template<typename T>
struct Registrar : public Base

Public Members

friend T

Public Static Functions

static inline bool registerT()

Public Static Attributes

static bool registered = RegistrationFactory<Base, T_Args...>::Registrar<T>::registerT()