LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
art::detail::ItemGetter< T, C > Class Template Reference

#include "Ptr.h"

Public Member Functions

T const * operator() (C const *product, typename Ptr< T >::key_type iKey) const
 

Detailed Description

template<typename T, typename C>
class art::detail::ItemGetter< T, C >

Definition at line 184 of file Ptr.h.

Member Function Documentation

template<typename T , typename C >
std::pair< cet::map_vector_key, T > const * art::detail::ItemGetter< T >::operator() ( C const *  product,
typename Ptr< T >::key_type  iKey 
) const
inline

Definition at line 200 of file Ptr.h.

References art::detail::GetProduct< COLLECTION >::address().

202 {
203  assert(product != nullptr);
204  auto it = product->begin();
205  advance(it, iKey);
206  T const* address = detail::GetProduct<C>::address(it);
207  return address;
208 }
static element_type const * address(iter const &i)
Definition: GetProduct.h:11

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