DART
6.7.3
|
Helper class to register a object creator function to the Singleton. More...
#include <Factory.hpp>
Public Types | |
using | This = FactoryRegistrar< KeyT, BaseT, DerivedT, HeldT > |
using | FactoryType = Factory< KeyT, BaseT, HeldT, Args... > |
using | SingletonFactory = Singleton< FactoryType > |
using | Creator = typename FactoryType::Creator |
Public Member Functions | |
FactoryRegistrar (const KeyT &key, Creator creator) | |
Constructor. More... | |
FactoryRegistrar (const KeyT &key) | |
Constructor. More... | |
Helper class to register a object creator function to the Singleton.
using dart::common::FactoryRegistrar< KeyT, BaseT, DerivedT, HeldT, Args >::Creator = typename FactoryType::Creator |
using dart::common::FactoryRegistrar< KeyT, BaseT, DerivedT, HeldT, Args >::FactoryType = Factory<KeyT, BaseT, HeldT, Args...> |
using dart::common::FactoryRegistrar< KeyT, BaseT, DerivedT, HeldT, Args >::SingletonFactory = Singleton<FactoryType> |
using dart::common::FactoryRegistrar< KeyT, BaseT, DerivedT, HeldT, Args >::This = FactoryRegistrar<KeyT, BaseT, DerivedT, HeldT> |
dart::common::FactoryRegistrar< KeyT, BaseT, DerivedT, HeldT, Args >::FactoryRegistrar | ( | const KeyT & | key, |
Creator | creator | ||
) |
Constructor.
Interanlly, this constructor registers Derived class with the key and the default creator function.
|
explicit |
Constructor.
Interanlly, this constructor registers Derived class with the key and the default creator function.