CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/Common/src/EDProduct.cc

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