CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Private Member Functions
cond::persistency::ConditionBuffer< Columns > Class Template Reference

#include <DbCore.h>

Public Member Functions

void addStaticCondition (const std::string &condition)
 
 ConditionBuffer ()
 
const coral::AttributeList & get () const
 
const std::string & getClause () const
 
template<typename P >
void set (const P &params)
 

Protected Attributes

std::string m_clause
 
coral::AttributeList m_data
 

Private Member Functions

template<typename Params , int n>
void _set (const Params &)
 
template<typename Params , int n, typename T1 , typename... Ts>
void _set (const Params &params)
 

Detailed Description

template<typename... Columns>
class cond::persistency::ConditionBuffer< Columns >

Definition at line 207 of file DbCore.h.

Constructor & Destructor Documentation

◆ ConditionBuffer()

template<typename... Columns>
cond::persistency::ConditionBuffer< Columns >::ConditionBuffer ( )
inline

Definition at line 219 of file DbCore.h.

219 : m_data(), m_clause() {}

Member Function Documentation

◆ _set() [1/2]

template<typename... Columns>
template<typename Params , int n>
void cond::persistency::ConditionBuffer< Columns >::_set ( const Params &  )
inlineprivate

Definition at line 216 of file DbCore.h.

216 {}

◆ _set() [2/2]

template<typename... Columns>
template<typename Params , int n, typename T1 , typename... Ts>
void cond::persistency::ConditionBuffer< Columns >::_set ( const Params &  params)
inlineprivate

Definition at line 210 of file DbCore.h.

210  {
211  f_add_condition_data<T1>(m_data, m_clause, std::get<n>(params));
212  _set<Params, n + 1, Ts...>(params);
213  }

Referenced by cond::persistency::ConditionBuffer< Types... >::_set(), and cond::persistency::ConditionBuffer< Types... >::set().

◆ addStaticCondition()

template<typename... Columns>
void cond::persistency::ConditionBuffer< Columns >::addStaticCondition ( const std::string &  condition)
inline

Definition at line 227 of file DbCore.h.

227  {
228  if (!m_clause.empty()) {
229  m_clause += " AND ";
230  }
231  m_clause += condition;
232  }

Referenced by cond::persistency::BulkDeleter< Types >::addStaticCondition().

◆ get()

template<typename... Columns>
const coral::AttributeList& cond::persistency::ConditionBuffer< Columns >::get ( ) const
inline

◆ getClause()

template<typename... Columns>
const std::string& cond::persistency::ConditionBuffer< Columns >::getClause ( ) const
inline

Definition at line 236 of file DbCore.h.

236 { return m_clause; }

Referenced by cond::persistency::BulkDeleter< Types >::erase().

◆ set()

template<typename... Columns>
template<typename P >
void cond::persistency::ConditionBuffer< Columns >::set ( const P params)
inline

Definition at line 222 of file DbCore.h.

222  {
223  // if RowBuffer becames a single type, we need to run either the equivalent of _RowBuffer ( having addAttribute ) when m_data.size()=0, or _set in all other cases
224  _set<P, 0, Columns...>(params);
225  }

Referenced by cond::persistency::BulkDeleter< Types >::erase().

Member Data Documentation

◆ m_clause

template<typename... Columns>
std::string cond::persistency::ConditionBuffer< Columns >::m_clause
protected

◆ m_data

template<typename... Columns>
coral::AttributeList cond::persistency::ConditionBuffer< Columns >::m_data
protected
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
cond::persistency::ConditionBuffer::m_data
coral::AttributeList m_data
Definition: DbCore.h:239
goodZToMuMu_cfi.condition
condition
Definition: goodZToMuMu_cfi.py:37
cond::persistency::ConditionBuffer::_set
void _set(const Params &params)
Definition: DbCore.h:210
cond::persistency::ConditionBuffer::m_clause
std::string m_clause
Definition: DbCore.h:240
P
std::pair< OmniClusterRef, TrackingParticleRef > P
Definition: BDHadronTrackMonitoringAnalyzer.cc:202