|
typedef base::CreateFunction | CreateFunction |
|
typedef boost::signals2::signal< void(const std::string &, const CreateFunction &)> | ImplAddedSignal |
|
typedef boost::signals2::signal< void(const std::string &, const CreateFunction &)> | ImplRemovedSignal |
|
typedef FactoryBase< Key > | base |
|
typedef base::KeyType | KeyType |
|
typedef Interface | InterfaceType |
|
typedef boost::function1< InterfaceType *, const runtime::Properties & > | CreateFunction |
|
typedef std::map< Key, CreateFunction > | ImplMap |
|
typedef base::ImplMap | ImplMapBase |
|
typedef base::ImplMapProxy | ImplMapBaseProxy |
|
typedef Key | KeyType |
|
typedef boost::function1< void *, const runtime::Properties & > | CreateFunction |
|
typedef std::pair< const std::type_info *, void * > | type_and_storage |
|
typedef std::map< Key, CreateFunction > | ImplMap |
|
virtual | ~Singleton () |
|
ImplAddedSignal & | signalImplAdded () throw () |
| Return the "implementation added" signal. More...
|
|
ImplRemovedSignal & | signalImplRemoved () throw () |
| Return the "implementation removed" signal. More...
|
|
| Factory () |
|
virtual | ~Factory () |
|
const std::type_info & | GetInterfaceType () const throw () |
| Return the type information of the interface type of the factory. More...
|
|
const ImplMapBaseProxy & | implsBase () const throw () |
| Return a container-like object holding all registered implementations. More...
|
|
ImplMapProxy & | impls () throw () |
| Return a container-like object holding all registered implementations. More...
|
|
const ImplMapProxy & | impls () const throw () |
| Return a container-like object holding all registered implementations. More...
|
|
FactoryBase< Key >::type_and_storage | createBase (const Key &key, const runtime::Properties &properties_=runtime::Properties()) |
|
Interface * | createInst (const Key &key, const runtime::Properties &properties_=runtime::Properties()) |
| Create and return an instance of the implementation designated by key. More...
|
|
static ObservableSingletonFactory< Key, Interface > & | getInstance () |
| Retrieve the singleton instance, creating it if necessary. More...
|
|
static void | killInstance () |
| This function can be used to make sure the instance is deleted at a particular time. More...
|
|
typedef Factory< Key, Interface > | base |
|
typedef base::ImplMap | ImplMap |
|
void | register_ (const Key &key, const CreateFunction &create_function_) |
|
void | unregister (const Key &key) |
|
virtual void | register_ (const Key &key, const CreateFunction &create_function_) |
|
ImplAddedSignal | signal_impl_added_ |
|
ImplRemovedSignal | signal_impl_removed_ |
|
ImplMapBase | impl_map_base_ |
|
ImplMapBaseProxy | impl_map_base_proxy_ |
|
ImplMap | impl_map_ |
|
ImplMapProxy | impl_map_proxy_ |
|
template<typename Key, typename Interface>
class rsc::patterns::ObservableSingletonFactory< Key, Interface >
An observable factory of which at most one instance exists at any time.
Definition at line 87 of file ObservableFactory.h.