#include <Hash.h>
Public Types | |
typedef hash_detail::value_type | value_type |
Public Member Functions | |
value_type | compactForm () const |
Hash (value_type const &v) | |
Hash () | |
Hash (Hash< I > const &) | |
bool | isCompactForm () const |
bool | isValid () const |
bool | operator!= (Hash< I > const &other) const |
bool | operator< (Hash< I > const &other) const |
Hash< I > & | operator= (Hash< I > const &iRHS) |
bool | operator== (Hash< I > const &other) const |
bool | operator> (Hash< I > const &other) const |
std::ostream & | print (std::ostream &os) const |
void | reset () |
void | swap (Hash< I > &other) |
void | toDigest (cms::Digest &digest) const |
void | toString (std::string &result) const |
Static Public Member Functions | |
static short | Class_Version () |
Private Member Functions | |
template<typename Op > | |
bool | compareUsing (Hash< I > const &iOther, Op op) const |
void | throwIfIllFormed () const |
Private Attributes | |
value_type | hash_ |
typedef hash_detail::value_type edm::Hash< I >::value_type |
Definition at line 113 of file Hash.h.
: hash_(detail::InvalidHash()) {}
edm::Hash< I >::Hash | ( | value_type const & | v | ) | [explicit] |
Definition at line 123 of file Hash.h.
References edm::hash_detail::fixup_(), and edm::Hash< I >::hash_.
: hash_(iOther.hash_) { hash_detail::fixup_(hash_); }
static short edm::Hash< I >::Class_Version | ( | ) | [inline, static] |
Hash< I >::value_type edm::Hash< I >::compactForm | ( | ) | const [inline] |
Definition at line 209 of file Hash.h.
References edm::hash_detail::compactForm_().
Referenced by edm::StreamerOutputModuleBase::serializeRegistry().
{ return hash_detail::compactForm_(hash_); }
bool edm::Hash< I >::compareUsing | ( | Hash< I > const & | iOther, |
Op | op | ||
) | const [inline, private] |
Definition at line 86 of file Hash.h.
{ bool meCF = hash_detail::isCompactForm_(hash_); bool otherCF = hash_detail::isCompactForm_(iOther.hash_); if(meCF == otherCF) { return op(this->hash_,iOther.hash_); } //copy constructor will do compact form conversion if(meCF) { Hash<I> temp(iOther); return op(this->hash_,temp.hash_); } Hash<I> temp(*this); return op(temp.hash_,iOther.hash_); }
bool edm::Hash< I >::isCompactForm | ( | ) | const [inline] |
Definition at line 218 of file Hash.h.
References edm::hash_detail::isCompactForm_().
{ return hash_detail::isCompactForm_(hash_); }
bool edm::Hash< I >::isValid | ( | void | ) | const [inline] |
Definition at line 146 of file Hash.h.
References edm::hash_detail::isValid_().
Referenced by edm::HistoryAppender::appendToProcessHistory(), edm::Principal::fillPrincipal(), HLTConfigProvider::getDataFrom(), edm::pset::getProcessParameterSetID(), edm::ProcessConfiguration::isParameterSetValid(), edm::ParameterSet::isRegistered(), edm::BranchDescription::throwIfInvalid_(), edm::ParameterSetEntry::toDigest(), and edm::ParameterSetEntry::toString().
{ return hash_detail::isValid_(hash_); }
Definition at line 174 of file Hash.h.
{ return this->compareUsing(other, std::not_equal_to<std::string>()); }
Definition at line 153 of file Hash.h.
{ return this->compareUsing(other, std::less<std::string>()); }
Definition at line 130 of file Hash.h.
References edm::hash_detail::fixup_(), and edm::Hash< I >::hash_.
{ hash_ = iRHS.hash_; hash_detail::fixup_(hash_); return *this; }
Definition at line 167 of file Hash.h.
{ return this->compareUsing(other, std::equal_to<std::string>()); }
Definition at line 160 of file Hash.h.
{ return this->compareUsing(other, std::greater<std::string>()); }
std::ostream & edm::Hash< I >::print | ( | std::ostream & | os | ) | const [inline] |
Definition at line 181 of file Hash.h.
References edm::hash_detail::print_().
{ return hash_detail::print_(os, hash_); }
void edm::Hash< I >::reset | ( | void | ) | [inline] |
Definition at line 139 of file Hash.h.
References edm::detail::InvalidHash().
Referenced by edm::ProcessHistory::Transients::reset(), edm::Parentage::Transients::reset(), and edm::ProcessConfiguration::Transients::reset().
{ hash_ = detail::InvalidHash(); }
Definition at line 202 of file Hash.h.
References edm::Hash< I >::hash_.
Referenced by edm::ProcessHistory::id(), edm::Parentage::id(), edm::ProcessConfiguration::id(), edm::ParameterSetEntry::ParameterSetEntry(), edm::ParameterSet::swap(), edm::swap(), edm::TriggerResults::swap(), L1GlobalTriggerObjectMaps::swap(), edm::Parentage::swap(), and edm::ProcessHistory::swap().
{ hash_.swap(other.hash_); }
void edm::Hash< I >::throwIfIllFormed | ( | ) | const [private] |
Hexified version of data *must* contain a multiple of 2 bytes. If it does not, throw an exception.
void edm::Hash< I >::toDigest | ( | cms::Digest & | digest | ) | const [inline] |
Definition at line 195 of file Hash.h.
References edm::hash_detail::toDigest_().
Referenced by edm::ParameterSetEntry::toDigest().
{ hash_detail::toDigest_(digest, hash_); }
void edm::Hash< I >::toString | ( | std::string & | result | ) | const [inline] |
Definition at line 188 of file Hash.h.
References edm::hash_detail::toString_().
Referenced by edm::ParameterSetConverter::convertParameterSets(), and edm::ParameterSetEntry::toString().
{ hash_detail::toString_(result, hash_); }
value_type edm::Hash< I >::hash_ [private] |
Definition at line 101 of file Hash.h.
Referenced by edm::Hash< EntryDescriptionType >::compareUsing(), edm::Hash< I >::Hash(), edm::Hash< I >::operator=(), and edm::Hash< I >::swap().