CMS 3D CMS Logo

Public Member Functions | Public Attributes

cond::TagMetadata Class Reference

#include <TagMetadata.h>

List of all members.

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<().

                              {
      boost::hash<std::string> hasher;
      std::size_t result=hasher(tag+pfn);
      return result;
    }
bool cond::TagMetadata::operator< ( const TagMetadata toCompare) const [inline]

Definition at line 18 of file TagMetadata.h.

References hashvalue().

                                                        {
      return this->hashvalue()<toCompare.hashvalue();
    }

Member Data Documentation