CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TagMetadata.h
Go to the documentation of this file.
1 #ifndef DBCommon_TagMetadata_h
2 #define DBCommon_TagMetadata_h
3 #include <string>
4 #include <boost/functional/hash.hpp>
5 namespace cond{
6  class TagMetadata{
7  public:
13  std::size_t hashvalue()const{
14  boost::hash<std::string> hasher;
15  std::size_t result=hasher(tag+pfn);
16  return result;
17  }
18  bool operator<(const TagMetadata& toCompare ) const {
19  return this->hashvalue()<toCompare.hashvalue();
20  }
21  };
22 }
23 #endif
std::string objectname
Definition: TagMetadata.h:12
std::string labelname
Definition: TagMetadata.h:11
std::string tag
Definition: TagMetadata.h:8
std::size_t hashvalue() const
Definition: TagMetadata.h:13
tuple result
Definition: query.py:137
std::string pfn
Definition: TagMetadata.h:9
bool operator<(const TagMetadata &toCompare) const
Definition: TagMetadata.h:18
std::string recordname
Definition: TagMetadata.h:10