12 using namespace boost;
14 using namespace fhicl;
23 ParameterSetID::ParameterSetID() noexcept : valid_{
false}, id_{
invalid_id} {}
34 for (
size_t i = 0,
e =
id_.size(); i !=
e; ++i) {
35 id_[i] = std::stoi(
id.substr(i * 2, 2),
nullptr, 16);
39 <<
"ParameterSetID construction failure: " <<
id 42 }
else if (
id.
empty()) {
46 <<
"Attempt to construct ParameterSetID from inappropriate input: " <<
id 62 std::ostringstream oss;
63 oss << std::hex << std::setfill(
'0');
66 for (
unsigned int const num :
id_) {
67 oss << std::setw(2) << num;
85 sha1 sha{hash.c_str()};
void swap(ParameterSetID &)
std::string to_string() const
bool operator>(ParameterSetID const &) const noexcept
bool operator>=(ParameterSetID const &) const noexcept
bool operator!=(ParameterSetID const &) const noexcept
static constexpr std::size_t max_str_size() noexcept
bool operator<(ParameterSetID const &) const noexcept
bool is_valid() const noexcept
bool operator<=(ParameterSetID const &) const noexcept
constexpr sha1::digest_t invalid_id
void reset(ParameterSet const &)
void swap(lar::deep_const_fwd_iterator_nested< CITER, INNERCONTEXTRACT > &a, lar::deep_const_fwd_iterator_nested< CITER, INNERCONTEXTRACT > &b)
void invalidate() noexcept
std::ostream & operator<<(std::ostream &, ParameterSetID const &)
bool operator==(ParameterSetID const &) const noexcept
cet::coded_exception< error, detail::translate > exception
decltype(auto) constexpr empty(T &&obj)
ADL-aware version of std::empty.
ParameterSetID() noexcept
std::string to_string() const