CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 101 of file Types.h.

Constructor & Destructor Documentation

cond::GTEntry_t::GTEntry_t ( )
inline

Definition at line 103 of file Types.h.

103  :
104  m_data(){
105  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:139
cond::GTEntry_t::GTEntry_t ( const std::tuple< std::string, std::string, std::string > &  gtEntryData)
inline

Definition at line 106 of file Types.h.

106  :
107  m_data( gtEntryData ){
108  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:139
cond::GTEntry_t::GTEntry_t ( const GTEntry_t rhs)
inline

Definition at line 109 of file Types.h.

109  :
110  m_data( rhs.m_data ){
111  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:139

Member Function Documentation

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

Definition at line 127 of file Types.h.

References query::result, and tagName().

Referenced by operator<().

127  {
128  // taken from TagMetadata existing implementation.
129  // Is it correct ordering by tag? Tags are not unique in a GT, while record+label are...
130  boost::hash<std::string> hasher;
131  std::size_t result=hasher(tagName());
132  return result;
133  }
tuple result
Definition: query.py:137
const std::string & tagName() const
Definition: Types.h:124
bool cond::GTEntry_t::operator< ( const GTEntry_t toCompare) const
inline

Definition at line 134 of file Types.h.

References hashvalue().

134  {
135  return this->hashvalue()<toCompare.hashvalue();
136  }
std::size_t hashvalue() const
Definition: Types.h:127
GTEntry_t& cond::GTEntry_t::operator= ( const GTEntry_t rhs)
inline

Definition at line 113 of file Types.h.

References m_data.

113  {
114  m_data = rhs.m_data;
115  return *this;
116  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:139
const std::string& cond::GTEntry_t::recordLabel ( ) const
inline

Definition at line 121 of file Types.h.

References m_data.

Referenced by CondDBESSource::fillTagCollectionFromDB().

121  {
122  return std::get<1>(m_data);
123  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:139
const std::string& cond::GTEntry_t::recordName ( ) const
inline

Definition at line 118 of file Types.h.

References m_data.

Referenced by CondDBESSource::fillTagCollectionFromDB().

118  {
119  return std::get<0>(m_data);
120  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:139
const std::string& cond::GTEntry_t::tagName ( ) const
inline

Definition at line 124 of file Types.h.

References m_data.

Referenced by CondDBESSource::fillTagCollectionFromDB(), and hashvalue().

124  {
125  return std::get<2>(m_data);
126  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:139

Member Data Documentation

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

Definition at line 139 of file Types.h.

Referenced by operator=(), recordLabel(), recordName(), and tagName().