LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
art::DoSetPtr< T > Struct Template Reference

#include "Wrapper.h"

Public Member Functions

void operator() (T const &obj, std::type_info const &toType, unsigned long index, void const *&ptr) const
 
void operator() (T const &obj, std::type_info const &toType, std::vector< unsigned long > const &index, std::vector< void const * > &ptrs) const
 

Detailed Description

template<typename T>
struct art::DoSetPtr< T >

Definition at line 70 of file Wrapper.h.

Member Function Documentation

template<typename T >
void art::DoSetPtr< T >::operator() ( T const &  obj,
std::type_info const &  toType,
unsigned long  index,
void const *&  ptr 
) const

Definition at line 386 of file Wrapper.h.

References art::EDProduct::setPtr().

390  {
391  // setPtr is the name of an overload set; each concrete collection
392  // T should supply a setPtr function, in the same namespace at
393  // that in which T is defined, or in the 'art' namespace.
394  setPtr(obj, toType, index, ptr);
395  }
void setPtr(COLLECTION const &coll, std::type_info const &iToType, unsigned long iIndex, void const *&oPtr)
template<typename T >
void art::DoSetPtr< T >::operator() ( T const &  obj,
std::type_info const &  toType,
std::vector< unsigned long > const &  index,
std::vector< void const * > &  ptrs 
) const

Definition at line 399 of file Wrapper.h.

References art::EDProduct::getElementAddresses().

403  {
404  // getElementAddresses is the name of an overload set; each
405  // concrete collection T should supply a getElementAddresses
406  // function, in the same namespace at that in which T is
407  // defined, or in the 'art' namespace.
408  getElementAddresses(obj, toType, indices, ptr);
409  }
constexpr std::array< std::size_t, geo::vect::dimension< Vector >)> indices()
Returns a sequence of indices valid for a vector of the specified type.
void getElementAddresses(COLLECTION const &coll, const std::type_info &iToType, const std::vector< unsigned long > &iIndices, std::vector< void const * > &oPtr)

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