Public Member Functions | List of all members
art::detail::DataCollHelper< DATA > Class Template Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/canvas/v3_09_01/source/canvas/Persistency/Common/detail/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 262 of file IPRHelper.h.

266 {
267  data[data_index] = &assns.data(assns_index);
268 }
const XML_Char const XML_Char * data
Definition: expat.h:268
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 282 of file IPRHelper.h.

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

Definition at line 299 of file IPRHelper.h.

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

Definition at line 253 of file IPRHelper.h.

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

255 {
256  data.assign(size, 0);
257 }
const XML_Char const XML_Char * data
Definition: expat.h:268
template<typename DATA >
void art::detail::DataCollHelper< DATA >::init ( size_t  size,
std::vector< std::vector< DATA const * >> &  data 
) const
inline

Definition at line 272 of file IPRHelper.h.

275 {
276  data.resize(size);
277 }
const XML_Char const XML_Char * data
Definition: expat.h:268
template<typename DATA >
void art::detail::DataCollHelper< DATA >::init ( size_t  ,
IPRHelperDef  
) const
inline

Definition at line 293 of file IPRHelper.h.

294 {}

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