21 #ifndef __stir_FactoryRegistry_H__ 22 #define __stir_FactoryRegistry_H__ 51 template <
typename Key,
typename Factory,
typename Compare = std::less<Key>>
65 inline FactoryRegistry(
const Key& default_key,
const Factory& default_factory);
74 inline void add_to_registry(
const Key& key, Factory
const& factory);
77 inline void remove_from_registry(
const Key& key);
80 inline void list_keys(std::ostream& s)
const;
89 inline Factory
const& find_factory(
const Key& key)
const;
92 typedef std::map<Key, Factory, Compare> FactoryMap;
94 const bool has_defaults;
95 const Key default_key;
96 const Factory default_factory;
Inline implementations for stir::FactoryRegistry.
This class can be used to store 'factories' and their corresponding keys. It is essentially a map...
Definition: FactoryRegistry.h:52
basic configuration include file