LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "ParameterSetRegistry.h"
Public Types | |
using | collection_type = std::unordered_map< ParameterSetID, ParameterSet, detail::HashParameterSetID > |
using | key_type = collection_type::key_type |
using | mapped_type = collection_type::mapped_type |
using | value_type = collection_type::value_type |
using | size_type = collection_type::size_type |
using | const_iterator = collection_type::const_iterator |
Public Member Functions | |
ParameterSetRegistry (ParameterSet const &)=delete | |
ParameterSetRegistry (ParameterSet &&)=delete | |
ParameterSetRegistry & | operator= (ParameterSet const &)=delete |
ParameterSetRegistry & | operator= (ParameterSet &&)=delete |
~ParameterSetRegistry () | |
template<class FwdIt > | |
auto | put (FwdIt b, FwdIt const e) -> std::enable_if_t< std::is_same_v< typename std::iterator_traits< FwdIt >::value_type, mapped_type >> |
Static Public Member Functions | |
static void | importFrom (sqlite3 *db) |
static void | exportTo (sqlite3 *db) |
static void | stageIn () |
static bool | empty () |
static size_type | size () |
static ParameterSetID const & | put (ParameterSet const &ps) |
template<class FwdIt > | |
static std::enable_if_t< std::is_same_v< typename std::iterator_traits< FwdIt >::value_type, mapped_type > > | put (FwdIt begin, FwdIt end) |
template<class FwdIt > | |
static std::enable_if_t< std::is_same_v< typename std::iterator_traits< FwdIt >::value_type, value_type > > | put (FwdIt begin, FwdIt end) |
static void | put (collection_type const &c) |
static collection_type const & | get () noexcept |
static ParameterSet const & | get (ParameterSetID const &id) |
static bool | get (ParameterSetID const &id, ParameterSet &ps) |
static bool | has (ParameterSetID const &id) |
Private Member Functions | |
ParameterSetRegistry () | |
const_iterator | find_ (ParameterSetID const &id) |
Static Private Member Functions | |
static ParameterSetRegistry & | instance_ () |
Private Attributes | |
sqlite3 * | primaryDB_ |
sqlite3_stmt * | stmt_ {nullptr} |
collection_type | registry_ {} |
Static Private Attributes | |
static std::recursive_mutex | mutex_ {} |
Definition at line 40 of file ParameterSetRegistry.h.
using fhicl::ParameterSetRegistry::collection_type = std:: unordered_map<ParameterSetID, ParameterSet, detail::HashParameterSetID> |
Definition at line 50 of file ParameterSetRegistry.h.
using fhicl::ParameterSetRegistry::const_iterator = collection_type::const_iterator |
Definition at line 55 of file ParameterSetRegistry.h.
using fhicl::ParameterSetRegistry::key_type = collection_type::key_type |
Definition at line 51 of file ParameterSetRegistry.h.
using fhicl::ParameterSetRegistry::mapped_type = collection_type::mapped_type |
Definition at line 52 of file ParameterSetRegistry.h.
using fhicl::ParameterSetRegistry::size_type = collection_type::size_type |
Definition at line 54 of file ParameterSetRegistry.h.
using fhicl::ParameterSetRegistry::value_type = collection_type::value_type |
Definition at line 53 of file ParameterSetRegistry.h.
|
delete |
|
delete |
fhicl::ParameterSetRegistry::~ParameterSetRegistry | ( | ) |
Definition at line 65 of file ParameterSetRegistry.cc.
References e, and fhicl::detail::throwOnSQLiteFailure().
|
private |
Definition at line 224 of file ParameterSetRegistry.cc.
|
inlinestatic |
Definition at line 104 of file ParameterSetRegistry.h.
|
static |
Definition at line 127 of file ParameterSetRegistry.cc.
References util::begin(), util::end(), util::size(), and fhicl::detail::throwOnSQLiteFailure().
Referenced by fhicl::parse_file_and_fill_db().
|
private |
Definition at line 229 of file ParameterSetRegistry.cc.
References fhicl::ParameterSet::make(), primaryDB_, registry_, stmt_, and fhicl::detail::throwOnSQLiteFailure().
|
inlinestaticnoexcept |
Definition at line 159 of file ParameterSetRegistry.h.
Referenced by art::EventSelector::data_for(), fhicl::detail::encode(), art::ProductRetriever::getProcessParameterSet(), art::OutputWorker::OutputWorker(), art::Provenance::parameterSet(), art::TriggerNamesService::pathResults(), and fhicl::ParameterSet::stringify_().
|
inlinestatic |
Definition at line 166 of file ParameterSetRegistry.h.
References fhicl::cant_find.
|
inlinestatic |
Definition at line 179 of file ParameterSetRegistry.h.
|
inlinestatic |
Definition at line 192 of file ParameterSetRegistry.h.
|
static |
Definition at line 83 of file ParameterSetRegistry.cc.
References fhicl::detail::throwOnSQLiteFailure().
|
inlinestaticprivate |
Definition at line 200 of file ParameterSetRegistry.h.
|
delete |
|
delete |
|
inlinestatic |
Definition at line 119 of file ParameterSetRegistry.h.
Referenced by fhicl::detail::encode(), fhicl::parse_file_and_fill_db(), art::PathManager::PathManager(), put(), and art::run_art().
|
static |
|
static |
|
inlinestatic |
Definition at line 152 of file ParameterSetRegistry.h.
|
inline |
Definition at line 129 of file ParameterSetRegistry.h.
|
inlinestatic |
Definition at line 111 of file ParameterSetRegistry.h.
|
static |
Definition at line 205 of file ParameterSetRegistry.cc.
References util::begin(), and art::InputSourceFactory::make().
|
staticprivate |
Definition at line 100 of file ParameterSetRegistry.h.
|
private |
Definition at line 97 of file ParameterSetRegistry.h.
Referenced by find_().
|
private |
Definition at line 99 of file ParameterSetRegistry.h.
Referenced by find_().
|
private |
Definition at line 98 of file ParameterSetRegistry.h.
Referenced by find_().