CMS 3D CMS Logo

WrapperBase.cc
Go to the documentation of this file.
1 /*----------------------------------------------------------------------
2 
3 ----------------------------------------------------------------------*/
4 
7 #include <cassert>
8 
9 namespace edm {
11 
13 
15  std::vector<void const*>& pointers,
17  // This should never be called with non-empty arguments, or an
18  // invalid ID; any attempt to do so is an indication of a coding
19  // error.
20  assert(id.isValid());
21  assert(pointers.empty());
22  assert(helpers.empty());
23 
24  do_fillView(id, pointers, helpers);
25  }
26 
27  void WrapperBase::setPtr(std::type_info const& iToType,
28  unsigned long iIndex,
29  void const*& oPtr) const {
30  do_setPtr(iToType, iIndex, oPtr);
31  }
32 
33  void
34  WrapperBase::fillPtrVector(std::type_info const& iToType,
35  std::vector<unsigned long> const& iIndicies,
36  std::vector<void const*>& oPtr) const {
37  do_fillPtrVector(iToType, iIndicies, oPtr);
38  }
39 
40 }
virtual void do_fillView(ProductID const &id, std::vector< void const * > &pointers, FillViewHelperVector &helpers) const =0
void setPtr(std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) const
Definition: WrapperBase.cc:27
virtual void do_setPtr(std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) const =0
void fillView(ProductID const &id, std::vector< void const * > &view, FillViewHelperVector &helpers) const
Definition: WrapperBase.cc:14
~WrapperBase() override
Definition: WrapperBase.cc:12
void fillPtrVector(std::type_info const &iToType, std::vector< unsigned long > const &iIndicies, std::vector< void const * > &oPtr) const
Definition: WrapperBase.cc:34
virtual void do_fillPtrVector(std::type_info const &iToType, std::vector< unsigned long > const &iIndicies, std::vector< void const * > &oPtr) const =0
HLT enums.
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector