CMS 3D CMS Logo

Static Public Member Functions

edm::refitem::GetPtrImpl< C, T, F, KEY > Struct Template Reference

#include <RefItemGet.h>

List of all members.

Static Public Member Functions

static T const * getPtr_ (RefCore const &product, KEY const &key)

Detailed Description

template<typename C, typename T, typename F, typename KEY>
struct edm::refitem::GetPtrImpl< C, T, F, KEY >

Definition at line 18 of file RefItemGet.h.


Member Function Documentation

template<typename C , typename T , typename F , typename KEY >
static T const* edm::refitem::GetPtrImpl< C, T, F, KEY >::getPtr_ ( RefCore const &  product,
KEY const &  key 
) [inline, static]

Definition at line 19 of file RefItemGet.h.

References funct::C, L1TEmulatorMonitor_cff::p, parseEventContent::prod, and svgfig::template().

Referenced by edm::getPtr(), and edm::getPtr_().

                                                                      {
        C const* prod = edm::template getProduct<C>(product);
        /*
        typename C::const_iterator it = prod->begin();
         std::advance(it, item.key());
         T const* p = it.operator->();
        */
        F func;
        T const* p = func(*prod, key);
        return p;
      }