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, typename T1 , typename... Ts>
void _set (const Params &params)
 
template<typename Params , int n>
void _set (const 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() {}
coral::AttributeList m_data
Definition: DbCore.h:240

Member Function Documentation

◆ _set() [1/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.

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

211  {
212  f_add_condition_data<T1>(m_data, m_clause, std::get<n>(params));
213  _set<Params, n + 1, Ts...>(params);
214  }
coral::AttributeList m_data
Definition: DbCore.h:240
void _set(const Params &params)
Definition: DbCore.h:211

◆ _set() [2/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 {}

◆ addStaticCondition()

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

Definition at line 228 of file DbCore.h.

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

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

◆ 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.

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

237 { return m_clause; }

◆ 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.

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

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  }
std::pair< OmniClusterRef, TrackingParticleRef > P
void _set(const Params &params)
Definition: DbCore.h:211

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