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;
66 for (
unsigned int const num :
id_) {
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
QTextStream & hex(QTextStream &s)
std::array< uchar, digest_sz > digest_t
void swap(Handle< T > &a, Handle< T > &b)
static constexpr std::size_t max_str_size() noexcept
bool operator<(ParameterSetID const &) const noexcept
static constexpr double ps
bool is_valid() const noexcept
bool operator<=(ParameterSetID const &) const noexcept
Q_EXPORT QTSManip setw(int w)
constexpr sha1::digest_t invalid_id
void reset(ParameterSet const &)
void invalidate() noexcept
std::ostream & operator<<(std::ostream &, ParameterSetID const &)
Q_EXPORT QTSManip setfill(int f)
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