1 #ifndef cetlib_registry_h 2 #define cetlib_registry_h 10 #include "cetlib_except/exception.h" 16 template <
class K,
class V>
22 template <
class K,
class V>
30 typedef std::map<K const, V>
reg_t;
31 typedef typename reg_t::const_iterator
iter_t;
60 static V
const&
get(
K const&
key);
61 static bool get(
K const&
key, V&
value)
throw();
68 static reg_t the_registry;
76 template <
class K,
class V>
83 template <
class K,
class V>
90 <<
"Key \"" << key <<
"\" not found in registry";
94 template <
class K,
class V>
static void put(K const &key, V const &value)
static reg_t & the_registry_()
::xsd::cxx::tree::exception< char > exception
std::pair< Spectrum *, CheatDecomp * > make_pair(SpectrumLoaderBase &loader_data, SpectrumLoaderBase &loader_mc, HistAxis *axis, Cut *cut, const SystShifts &shift, const Var &wei)
std::map< K const, V > reg_t
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic >::Index size_type
static reg_t::size_type size()
const XML_Char int const XML_Char * value
void operator=(registry const &)=delete
static const_iterator begin()
static const_iterator end()
static V const & get(K const &key)
reg_t::const_iterator iter_t