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

#include "/cvmfs/nova.opensciencegrid.org/externals/canvas/v3_06_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 50 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.

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

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

288 {
289  data[data_index].push_back(&assns.data(assns_index));
290 }
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 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 }
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 273 of file IPRHelper.h.

276 {
277  data.resize(size);
278 }
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 294 of file IPRHelper.h.

295 {}

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