LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 53 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 263 of file IPRHelper.h.

267 {
268  data[data_index] = &assns.data(assns_index);
269 }
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 283 of file IPRHelper.h.

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

Definition at line 300 of file IPRHelper.h.

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

Definition at line 254 of file IPRHelper.h.

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

256 {
257  data.assign(size, 0);
258 }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:101
template<typename DATA >
void art::detail::DataCollHelper< DATA >::init ( size_t  size,
std::vector< std::vector< DATA const * >> &  data 
) const
inline

Definition at line 273 of file IPRHelper.h.

276 {
277  data.resize(size);
278 }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:101
template<typename DATA >
void art::detail::DataCollHelper< DATA >::init ( size_t  ,
IPRHelperDef  
) const
inline

Definition at line 294 of file IPRHelper.h.

295 {}

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