LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
EDProduct.cc
Go to the documentation of this file.
1 // ======================================================================
2 //
3 // EDProduct: The base class of each type that will be inserted into the
4 // Event.
5 //
6 // ======================================================================
7 
9 
11 
12 using art::EDProduct;
13 
14 void
15 EDProduct::setPtr(std::type_info const& toType,
16  unsigned long index,
17  void const*& ptr) const
18 {
19  do_setPtr(toType, index, ptr);
20 }
21 
22 void
23 EDProduct::getElementAddresses(std::type_info const& toType,
24  std::vector<unsigned long> const& indices,
25  std::vector<void const*>& ptr) const
26 {
27  do_getElementAddresses(toType, indices, ptr);
28 }
29 
30 // ======================================================================
virtual void do_setPtr(std::type_info const &toType, unsigned long index, void const *&ptr) const =0
void setPtr(COLLECTION const &coll, std::type_info const &iToType, unsigned long iIndex, void const *&oPtr)
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(std::type_info const &toType, std::vector< unsigned long > const &indices, std::vector< void const * > &ptr) const
Definition: EDProduct.cc:23
virtual void do_getElementAddresses(std::type_info const &toType, std::vector< unsigned long > const &indices, std::vector< void const * > &ptr) const =0