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 
10 using art::EDProduct;
11 
12 void const*
13 EDProduct::getElementAddress(std::type_info const& toType,
14  unsigned long const index) const
15 {
16  return do_getElementAddress(toType, index);
17 }
18 
19 std::vector<void const*>
20 EDProduct::getElementAddresses(std::type_info const& toType,
21  std::vector<unsigned long> const& indices) const
22 {
23  return do_getElementAddresses(toType, indices);
24 }
25 
26 // ======================================================================
virtual std::vector< void const * > do_getElementAddresses(std::type_info const &toType, std::vector< unsigned long > const &indices) const =0
constexpr std::array< std::size_t, geo::vect::dimension< Vector >)> indices()
Returns a sequence of indices valid for a vector of the specified type.
virtual void const * do_getElementAddress(std::type_info const &toType, unsigned long index) const =0
std::vector< void const * > getElementAddresses(std::type_info const &toType, std::vector< unsigned long > const &indices) const
Definition: EDProduct.cc:20