CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GetProduct.h
Go to the documentation of this file.
1 #ifndef DataFormats_Common_GetProduct_h
2 #define DataFormats_Common_GetProduct_h
3 // -*- C++ -*-
4 //
5 // Package: Common
6 // Class : GetProduct
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Sat Oct 20 10:20:20 EDT 2007
19 // $Id: GetProduct.h,v 1.1 2007/10/22 18:43:05 chrjones Exp $
20 //
21 
22 // system include files
23 
24 // user include files
25 
26 // forward declarations
27 
28 namespace edm {
29  namespace detail {
30  template<typename COLLECTION>
31  struct GetProduct {
33  typedef typename COLLECTION::const_iterator iter;
34  static const element_type * address( const iter & i ) {
35  return &*i;
36  }
37  static const COLLECTION * product( const COLLECTION & coll ) {
38  return & coll;
39  }
40  };
41  }
42 }
43 
44 #endif
COLLECTION::const_iterator iter
Definition: GetProduct.h:33
int i
Definition: DBlmapReader.cc:9
static const element_type * address(const iter &i)
Definition: GetProduct.h:34
static const COLLECTION * product(const COLLECTION &coll)
Definition: GetProduct.h:37
COLLECTION::value_type element_type
Definition: GetProduct.h:32
Container::value_type value_type
JetCorrectorParametersCollection coll
Definition: classes.h:16