CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cond::GTEntry_t Class Reference

#include <Types.h>

Public Member Functions

 GTEntry_t ()
 
 GTEntry_t (const std::tuple< std::string, std::string, std::string > &gtEntryData)
 
 GTEntry_t (const GTEntry_t &rhs)
 
std::size_t hashvalue () const
 
bool operator< (const GTEntry_t &toCompare) const
 
GTEntry_toperator= (const GTEntry_t &rhs)
 
const std::string & recordLabel () const
 
const std::string & recordName () const
 
const std::string & tagName () const
 

Private Attributes

std::tuple< std::string, std::string, std::string > m_data
 

Detailed Description

Definition at line 113 of file Types.h.

Constructor & Destructor Documentation

cond::GTEntry_t::GTEntry_t ( )
inline

Definition at line 115 of file Types.h.

115  :
116  m_data(){
117  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:153
cond::GTEntry_t::GTEntry_t ( const std::tuple< std::string, std::string, std::string > &  gtEntryData)
inline

Definition at line 118 of file Types.h.

118  :
119  m_data( gtEntryData ){
120  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:153
cond::GTEntry_t::GTEntry_t ( const GTEntry_t rhs)
inline

Definition at line 121 of file Types.h.

121  :
122  m_data( rhs.m_data ){
123  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:153

Member Function Documentation

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

Definition at line 139 of file Types.h.

References relativeConstraints::empty, crabWrapper::key, candidateCombinedSecondaryVertexSoftLeptonCvsLComputer_cfi::recordLabel, align_cfg::recordName, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by operator<().

139  {
140  // Derived from CondDB v1 TagMetadata implementation.
141  // Unique Keys constructed with Record and Labels - allowing for multiple references of the same Tag in a GT
142  boost::hash<std::string> hasher;
144  if( !recordLabel().empty() ) key = key +"_"+recordLabel();
145  std::size_t result=hasher(key);
146  return result;
147  }
const std::string & recordLabel() const
Definition: Types.h:133
const std::string & recordName() const
Definition: Types.h:130
bool cond::GTEntry_t::operator< ( const GTEntry_t toCompare) const
inline

Definition at line 148 of file Types.h.

References hashvalue().

148  {
149  return this->hashvalue()<toCompare.hashvalue();
150  }
std::size_t hashvalue() const
Definition: Types.h:139
GTEntry_t& cond::GTEntry_t::operator= ( const GTEntry_t rhs)
inline

Definition at line 125 of file Types.h.

References m_data.

125  {
126  m_data = rhs.m_data;
127  return *this;
128  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:153
const std::string& cond::GTEntry_t::recordLabel ( ) const
inline

Definition at line 133 of file Types.h.

Referenced by CondDBESSource::fillTagCollectionFromDB().

133  {
134  return std::get<1>(m_data);
135  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:153
const std::string& cond::GTEntry_t::recordName ( ) const
inline

Definition at line 130 of file Types.h.

Referenced by CondDBESSource::fillTagCollectionFromDB().

130  {
131  return std::get<0>(m_data);
132  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:153
const std::string& cond::GTEntry_t::tagName ( ) const
inline

Definition at line 136 of file Types.h.

Referenced by CondDBESSource::fillTagCollectionFromDB().

136  {
137  return std::get<2>(m_data);
138  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:153

Member Data Documentation

std::tuple<std::string,std::string,std::string> cond::GTEntry_t::m_data
private

Definition at line 153 of file Types.h.

Referenced by operator=().