LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
GetProduct.h
Go to the documentation of this file.
1 #ifndef canvas_Persistency_Common_GetProduct_h
2 #define canvas_Persistency_Common_GetProduct_h
3 
4 namespace art {
5  namespace detail {
6  template <typename COLLECTION>
7  struct GetProduct {
8  typedef typename COLLECTION::value_type element_type;
9  typedef typename COLLECTION::const_iterator iter;
10  static element_type const*
11  address(iter const& i)
12  {
13  return &*i;
14  }
15  static COLLECTION const*
16  product(COLLECTION const& coll)
17  {
18  return &coll;
19  }
20  };
21  }
22 }
23 
24 #endif /* canvas_Persistency_Common_GetProduct_h */
25 
26 // Local Variables:
27 // mode: c++
28 // End:
COLLECTION::const_iterator iter
Definition: GetProduct.h:9
COLLECTION::value_type element_type
Definition: GetProduct.h:8
static element_type const * address(iter const &i)
Definition: GetProduct.h:11
intermediate_table::const_iterator const_iterator
static COLLECTION const * product(COLLECTION const &coll)
Definition: GetProduct.h:16
HLT enums.