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 208 of file DbCore.h.

Constructor & Destructor Documentation

◆ ConditionBuffer()

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

Definition at line 220 of file DbCore.h.

220 : 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 217 of file DbCore.h.

217 {}

◆ _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 211 of file DbCore.h.

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

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 228 of file DbCore.h.

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

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 237 of file DbCore.h.

237 { 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 223 of file DbCore.h.

223  {
224  // 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
225  _set<P, 0, Columns...>(params);
226  }

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:240
cond::persistency::ConditionBuffer::_set
void _set(const Params &params)
Definition: DbCore.h:211
cond::persistency::ConditionBuffer::m_clause
std::string m_clause
Definition: DbCore.h:241
P
std::pair< OmniClusterRef, TrackingParticleRef > P
Definition: BDHadronTrackMonitoringAnalyzer.cc:202