LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
art::detail::DataCollHelper< DATA > Class Template Reference

#include "IPRHelper.h"

Public Member Functions

void init (size_t size, std::vector< DATA const * > &data) const
 
template<typename ASSNS >
void fill (ptrdiff_t assns_index, ASSNS const &assns, size_t data_index, std::vector< DATA const * > &data) const
 
void init (size_t size, std::vector< std::vector< DATA const * >> &data) const
 
template<typename ASSNS >
void fill (ptrdiff_t assns_index, ASSNS const &assns, size_t data_index, std::vector< std::vector< DATA const * >> &data) const
 
void init (size_t, IPRHelperDef &) const
 
template<typename ASSNS >
void fill (ptrdiff_t, ASSNS const &, size_t, IPRHelperDef &) const
 

Detailed Description

template<typename DATA>
class art::detail::DataCollHelper< DATA >

Definition at line 51 of file IPRHelper.h.

Member Function Documentation

template<typename DATA >
template<typename ASSNS >
void art::detail::DataCollHelper< DATA >::fill ( ptrdiff_t  assns_index,
ASSNS const &  assns,
size_t  data_index,
std::vector< DATA const * > &  data 
) const
inline

Definition at line 264 of file IPRHelper.h.

Referenced by art::detail::IPRHelper< ProdA, ProdB, Data, DATACOLL, EVENT >::operator()().

268 {
269  data[data_index] = &assns.data(assns_index);
270 }
template<typename DATA >
template<typename ASSNS >
void art::detail::DataCollHelper< DATA >::fill ( ptrdiff_t  assns_index,
ASSNS const &  assns,
size_t  data_index,
std::vector< std::vector< DATA const * >> &  data 
) const
inline

Definition at line 284 of file IPRHelper.h.

289 {
290  data[data_index].push_back(&assns.data(assns_index));
291 }
template<typename DATA >
template<typename ASSNS >
void art::detail::DataCollHelper< DATA >::fill ( ptrdiff_t  ,
ASSNS const &  ,
size_t  ,
IPRHelperDef  
) const
inline

Definition at line 301 of file IPRHelper.h.

305 {}
template<typename DATA >
void art::detail::DataCollHelper< DATA >::init ( size_t  size,
std::vector< DATA const * > &  data 
) const
inline

Definition at line 255 of file IPRHelper.h.

Referenced by art::detail::IPRHelper< ProdA, ProdB, Data, DATACOLL, EVENT >::operator()().

257 {
258  data.assign(size, 0);
259 }
template<typename DATA >
void art::detail::DataCollHelper< DATA >::init ( size_t  size,
std::vector< std::vector< DATA const * >> &  data 
) const
inline

Definition at line 274 of file IPRHelper.h.

277 {
278  data.resize(size);
279 }
template<typename DATA >
void art::detail::DataCollHelper< DATA >::init ( size_t  ,
IPRHelperDef  
) const
inline

Definition at line 295 of file IPRHelper.h.

296 {}

The documentation for this class was generated from the following file: