CMS 3D CMS Logo

EDProduct.cc

Go to the documentation of this file.
00001 /*----------------------------------------------------------------------
00002   
00003 $Id: EDProduct.cc,v 1.9 2007/11/06 20:15:51 chrjones Exp $
00004 
00005 ----------------------------------------------------------------------*/
00006 
00007 #include "DataFormats/Common/interface/EDProduct.h"
00008 #include "DataFormats/Provenance/interface/ProductID.h"
00009 
00010 namespace edm {
00011   EDProduct::EDProduct() {}
00012 
00013   EDProduct::~EDProduct() {}
00014 
00015   void EDProduct::fillView(ProductID const& id,
00016                            std::vector<void const*>& pointers,
00017                            helper_vector_ptr& helpers) const
00018   {
00019     // This should never be called with non-empty arguments, or an
00020     // invalid ID; any attempt to do so is an indication of a coding
00021     // error.
00022     assert(id.isValid());
00023     assert(pointers.empty());
00024     assert(helpers.get() == 0);
00025 
00026     do_fillView(id, pointers, helpers);
00027   }
00028   
00029   void EDProduct::setPtr(const std::type_info& iToType,
00030                          unsigned long iIndex,
00031                          void const*& oPtr) const
00032   {
00033     do_setPtr(iToType, iIndex, oPtr);
00034   }
00035   
00036   void 
00037   EDProduct::fillPtrVector(const std::type_info& iToType,
00038                               const std::vector<unsigned long>& iIndicies,
00039                               std::vector<void const*>& oPtr) const
00040   {
00041     do_fillPtrVector(iToType, iIndicies, oPtr);
00042   }
00043   
00044 }

Generated on Tue Jun 9 17:30:40 2009 for CMSSW by  doxygen 1.5.4