Public Member Functions | List of all members
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 262 of file IPRHelper.h.

266 {
267  data[data_index] = &assns.data(assns_index);
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 }
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.

255 {
256  data.assign(size, 0);
257 }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
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 }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
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: