CMS 3D CMS Logo

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

Constructor & Destructor Documentation

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

Definition at line 154 of file DbCore.h.

154  :
155  m_data(){
156  }
coral::AttributeList m_data
Definition: DbCore.h:176
template<typename... Columns>
template<typename P >
cond::persistency::RowBuffer< Columns >::RowBuffer ( const P params)
inlineexplicit

Definition at line 159 of file DbCore.h.

159  :
160  m_data() {
161  _set<P, 0, Columns...>(params);
162  }
void _set(const Params &params, bool init=true)
Definition: DbCore.h:144
#define P
coral::AttributeList m_data
Definition: DbCore.h:176

Member Function Documentation

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

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

144  {
145  f_add_column_data<T1>( m_data, std::get<n>( params ), init );
146  _set<Params, n+1, Ts...>(params, init);
147  }
void _set(const Params &params, bool init=true)
Definition: DbCore.h:144
int init
Definition: HydjetWrapper.h:67
coral::AttributeList m_data
Definition: DbCore.h:176
template<typename... Columns>
template<typename Params , int n>
void cond::persistency::RowBuffer< Columns >::_set ( const Params &  ,
bool   
)
inlineprivate

Definition at line 150 of file DbCore.h.

150  {
151  }
template<typename... Columns>
const coral::AttributeList& cond::persistency::RowBuffer< Columns >::get ( ) const
inline
template<typename... Columns>
template<typename P >
void cond::persistency::RowBuffer< Columns >::set ( const P params)
inline

Definition at line 165 of file DbCore.h.

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

165  {
166  bool init = (m_data.size()==0);
167  // 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
168  _set<P, 0, Columns...>(params, init);
169  }
void _set(const Params &params, bool init=true)
Definition: DbCore.h:144
int init
Definition: HydjetWrapper.h:67
#define P
coral::AttributeList m_data
Definition: DbCore.h:176

Member Data Documentation

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