CMS 3D CMS Logo

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

#include <DbCore.h>

Public Member Functions

const coral::AttributeList & get () const
 
 RowBuffer ()
 
template<typename P >
 RowBuffer (const P &params)
 
template<typename P >
void set (const P &params)
 

Protected Attributes

coral::AttributeList m_data
 

Private Member Functions

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

Detailed Description

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

Definition at line 175 of file DbCore.h.

Constructor & Destructor Documentation

◆ RowBuffer() [1/2]

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

Definition at line 187 of file DbCore.h.

187 : m_data() {}
coral::AttributeList m_data
Definition: DbCore.h:204

◆ RowBuffer() [2/2]

template<typename... Columns>
template<typename P >
cond::persistency::RowBuffer< Columns >::RowBuffer ( const P params)
inlineexplicit

Definition at line 190 of file DbCore.h.

190  : m_data() {
191  _set<P, 0, Columns...>(params);
192  }
void _set(const Params &params, bool init=true)
Definition: DbCore.h:178
std::pair< OmniClusterRef, TrackingParticleRef > P
coral::AttributeList m_data
Definition: DbCore.h:204

Member Function Documentation

◆ _set() [1/2]

template<typename... Columns>
template<typename Params , int n, typename T1 , typename... Ts>
void cond::persistency::RowBuffer< Columns >::_set ( const Params &  params,
bool  init = true 
)
inlineprivate

Definition at line 178 of file DbCore.h.

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

178  {
179  f_add_column_data<T1>(m_data, std::get<n>(params), init);
180  _set<Params, n + 1, Ts...>(params, init);
181  }
void _set(const Params &params, bool init=true)
Definition: DbCore.h:178
int init
Definition: HydjetWrapper.h:66
Definition: init.py:1
coral::AttributeList m_data
Definition: DbCore.h:204

◆ _set() [2/2]

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

Definition at line 184 of file DbCore.h.

184 {}

◆ get()

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

Definition at line 201 of file DbCore.h.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), rrapi.RRApi::columns(), util.rrapi.RRApi::columns(), rrapi.RRApi::count(), util.rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), data_sources.json_list::first(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), data_sources.json_list::indices(), cond::persistency::O2O_RUN::Table::insert(), cond::persistency::GLOBAL_TAG::Table::insert(), cond::persistency::PAYLOAD::Table::insert(), cond::persistency::TAG_LOG::Table::insert(), cond::persistency::BulkInserter< Types >::insert(), cond::persistency::RUN_INFO::Table::insertOne(), cond::persistency::IOV::Table::insertOne(), data_sources.json_list::last(), rrapi.RRApi::report(), util.rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), cond::persistency::TAG_AUTHORIZATION::Table::setAccessPermission(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), util.rrapi.RRApi::tags(), rrapi.RRApi::tags(), util.rrapi.RRApi::templates(), rrapi.RRApi::templates(), rrapi.RRApi::workspaces(), and util.rrapi.RRApi::workspaces().

201 { return m_data; }
coral::AttributeList m_data
Definition: DbCore.h:204

◆ set()

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

Definition at line 195 of file DbCore.h.

Referenced by cond::persistency::BulkInserter< Types >::insert().

195  {
196  bool init = (m_data.size() == 0);
197  // 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
198  _set<P, 0, Columns...>(params, init);
199  }
void _set(const Params &params, bool init=true)
Definition: DbCore.h:178
int init
Definition: HydjetWrapper.h:66
Definition: init.py:1
std::pair< OmniClusterRef, TrackingParticleRef > P
coral::AttributeList m_data
Definition: DbCore.h:204

Member Data Documentation

◆ m_data

template<typename... Columns>
coral::AttributeList cond::persistency::RowBuffer< Columns >::m_data
protected