CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
cond::TagMetadata Class Reference

#include <TagMetadata.h>

Public Member Functions

std::size_t hashvalue () const
 
bool operator< (const TagMetadata &toCompare) const
 

Public Attributes

std::string labelname
 
std::string objectname
 
std::string pfn
 
std::string recordname
 
std::string tag
 

Detailed Description

Definition at line 6 of file TagMetadata.h.

Member Function Documentation

std::size_t cond::TagMetadata::hashvalue ( ) const
inline

Definition at line 13 of file TagMetadata.h.

References pfn, query::result, and tag.

Referenced by operator<().

13  {
14  boost::hash<std::string> hasher;
15  std::size_t result=hasher(tag+pfn);
16  return result;
17  }
std::string tag
Definition: TagMetadata.h:8
tuple result
Definition: query.py:137
std::string pfn
Definition: TagMetadata.h:9
bool cond::TagMetadata::operator< ( const TagMetadata toCompare) const
inline

Definition at line 18 of file TagMetadata.h.

References hashvalue().

18  {
19  return this->hashvalue()<toCompare.hashvalue();
20  }
std::size_t hashvalue() const
Definition: TagMetadata.h:13

Member Data Documentation

std::string cond::TagMetadata::labelname
std::string cond::TagMetadata::objectname
std::string cond::TagMetadata::pfn
std::string cond::TagMetadata::recordname
std::string cond::TagMetadata::tag